私はアプリで次の宝石を使用しています-
https://github.com/dekart/facebooker2
サーバーにデプロイしたときとは異なるjavascriptをローカルマシンでレンダリングしているようです-
私のローカルバージョンは次のようになります-
window.fbAsyncInit = function() {
FB.init({
appId : 'MYAPPID',
status : true, // check login status
cookie : true, // enable cookies to allow the server to access the session
xfbml : true, // parse XFBML
channelUrl : 'http://MYLOCALURL.local/channel.html'
});
herokuのバージョンは次のようになります-
window.fbAsyncInit = function() {
FB.init({
appId : 'MYAPPID',
status : true, // check login status
cookie : true, // enable cookies to allow the server to access the session
xfbml : true // parse XFBML - NO COMMA HERE CAUSING JS BUG
channelUrl : 'https://MYLIVEURL.heroku.com/channel.html'
});
herokuバージョンでは、javascriptにカンマがないため、ログインボタンの表示が停止するバグが発生します。
このようにgemファイルにgemを含めました-
gem 'facebooker2', :git=>"https://github.com/dekart/facebooker2.git"
なぜこの違いがあるのか、何か考えはありますか?