When accessing the app through Facebook, HTTPS is used to securely transfer data. However, Chrome blocks content delivered over HTTP and requires everything to be transferred securely, unlike Firefox which is more lenient.
Here's what you'll see in Chrome's Console:
[blocked] The page at https://salty-shelf-6707.herokuapp.com/
ran insecure content from http://www.google.com/jsapi.
Uncaught ReferenceError: google is not defined
The JavaScript API from Google has been blocked, causing the JavaScript code to fail to run.
(There are also unrelated errors indicating some resources were not found.)
The app functions properly when accessed via , but not through
To resolve this issue, try using the following script to load the API:
<script type="text/javascript" src="//www.google.com/jsapi"></script>
By including the //
at the beginning of the source URL, it becomes protocol-relative or scheme-relative, as Paul Irish explains in his post on his website.