Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 1st, 2012  |  syntax: None  |  size: 1.52 KB  |  hits: 22  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Horizontal disabled scrollbar in Facebook Canvas with Firefox
  2. $(function(){
  3.     window.fbAsyncInit  = function()
  4.     {
  5.         // fixes the HTTPS issue
  6.         // _https: (window.name.indexOf('_fb_https') > -1),
  7.         // @version /*1328456404,169895806,JIT Construction: v505175,en_US*/
  8.         FB._https           = true;
  9.  
  10.         // fix for all.js
  11.         // the following line enforces using non-secure URL (why Facebook?)
  12.         // FB.getDomain((c?'https_':'')+'staticfb',true)
  13.         // @version /*1328456404,169895806,JIT Construction: v505175,en_US*/
  14.  
  15.         FB._domain.api      = 'https://api-read.facebook.com/';
  16.         FB._domain.cdn      = 'https://s-static.ak.fbcdn.net/';
  17.         FB._domain.staticfb = 'https://s-static.ak.facebook.com/';
  18.         FB._domain.www      = 'https://www.facebook.com/';
  19.         FB._domain.m        = 'https://m.facebook.com/';
  20.  
  21.         FB.init({appId: [app id], channelUrl: '[domain]/channel.php', status: true, cookie: true, oauth: true, xfbml: true});
  22.  
  23.         FB.Canvas.setAutoGrow(91);
  24.         // it is good idea to ensure that page will always open top-most view when navigated internally
  25.         FB.Canvas.scrollTo(0,0);
  26.     };
  27.  
  28.     // Load the SDK Asynchronously after the DOM is loaded
  29.     (function(d){
  30.         var js, id = 'facebook-jssdk'; if (d.getElementById(id)) {return;}
  31.         js = d.createElement('script'); js.id = id; js.async = true;
  32.         js.src = "https://connect.facebook.net/en_US/all.js";
  33.  
  34.         d.getElementsByTagName('head')[0].appendChild(js);
  35.     }(document));
  36. });