
Untitled
By: a guest on
May 1st, 2012 | syntax:
None | size: 1.52 KB | hits: 22 | expires: Never
Horizontal disabled scrollbar in Facebook Canvas with Firefox
$(function(){
window.fbAsyncInit = function()
{
// fixes the HTTPS issue
// _https: (window.name.indexOf('_fb_https') > -1),
// @version /*1328456404,169895806,JIT Construction: v505175,en_US*/
FB._https = true;
// fix for all.js
// the following line enforces using non-secure URL (why Facebook?)
// FB.getDomain((c?'https_':'')+'staticfb',true)
// @version /*1328456404,169895806,JIT Construction: v505175,en_US*/
FB._domain.api = 'https://api-read.facebook.com/';
FB._domain.cdn = 'https://s-static.ak.fbcdn.net/';
FB._domain.staticfb = 'https://s-static.ak.facebook.com/';
FB._domain.www = 'https://www.facebook.com/';
FB._domain.m = 'https://m.facebook.com/';
FB.init({appId: [app id], channelUrl: '[domain]/channel.php', status: true, cookie: true, oauth: true, xfbml: true});
FB.Canvas.setAutoGrow(91);
// it is good idea to ensure that page will always open top-most view when navigated internally
FB.Canvas.scrollTo(0,0);
};
// Load the SDK Asynchronously after the DOM is loaded
(function(d){
var js, id = 'facebook-jssdk'; if (d.getElementById(id)) {return;}
js = d.createElement('script'); js.id = id; js.async = true;
js.src = "https://connect.facebook.net/en_US/all.js";
d.getElementsByTagName('head')[0].appendChild(js);
}(document));
});