English 中文(简体)
FB.Canvas.setSize(未参加)
原标题:FB.Canvas.setSize() not working on IE

How can I resolve the resize of facebook app on IE ? the FB.Canvas.setSize() is not working.

感谢!

最佳回答

由于你的问题几乎没有进展。 没有任何实例,没有法律实例。 我只能猜测。 因此,这里要开始。

(1) 确保将Javascript SDK纳入文字标签。

<script>
  // Load the SDK Asynchronously
  (function(d){
     var js, id =  facebook-jssdk ; if (d.getElementById(id)) {return;}
     js = d.createElement( script ); js.id = id; js.async = true;
     js.src = "//connect.facebook.net/en_US/all.js";
     d.getElementsByTagName( head )[0].appendChild(js);
   }(document));
</script>

2) 保证在身体内添加碎片。

<body>
    <div id="fb-root"></div>
    ...your html here...
</body>

3) 在Kjavascript SDK有机会装载后,确保FB.init()和FB.Canvas.setSize()。 在你的窗户内做事。

  window.fbAsyncInit = function() {
    FB.init({
      appId      :  YOUR_APP_ID , // App ID
      channelUrl :  //WWW.YOUR_DOMAIN.COM/channel.html , // Channel File
      status     : true, // check login status
      cookie     : true, // enable cookies to allow the server to access the session
      xfbml      : true  // parse XFBML
    });
  };

4) 确保你指定了您的“助老会”和“有效通道”的正确地点

问题回答

暂无回答




相关问题
Facebook Connect login dialog not working

I am using Facebook Connect for iPhone and following the official instructions. I use the following code to display the login dialog: FBLoginDialog* dialog = [[[FBLoginDialog alloc] initWithSession:...

Facebook App Profile Tab is Empty ... No Content Displayed?

I can view my application via the http://apps.facebook.com/myapplication/ link and the content shows up correctly. I also added the application as a tab to a facebook page. However, when viewing the ...

Facebook Platform error: "Object cannot be liked"

I m working on a Facebook Application that generates wall posts. In testing these posts, I ve discovered that the Facebook Platform action of "liking" a post is failing. The specific error message ...

how to call showPermissionsDialog() in php (facebook api)?

I was reading over the documentation yet I could not figure out how to call Facebook.showPermissionsDialog() in php include_once ./facebook-platform/php/facebook.php ; $facebook = new Facebook(my ...

Facebook connect

If I plug in the facebook connect into my website, How can I prevent double signups? Lets say I have a user that s already signed up to my site but he clicked the connect with facebook, is there a ...

热门标签