Reputation: 501
I am using static html to use an iframe to embed my site.
<iframe frameborder="0" width="810px" height="2200px" src="http://domain" style="overflow-x:hidden;overflow-y:scroll;" ></iframe>
Something like that. In my code, I am using
FB.init({appId: "00000000", status: true, cookie: true}); FB.Canvas.scrollTo(0,300)
However, it doesn't work. Seems that it does not take any effect. Any advice?
Upvotes: 0
Views: 302
Reputation: 338
You need to call FB.init asynchronously, like this:
window.fbAsyncInit = function() {
FB.init({
appId: param('facebook_app_id'),
frictionlessRequests: true,
oauth: true,
channelUrl: site_url('/channel.html')
})
}
Also for improve scrolling in canvas use the following:
FB.Canvas.setAutoGrow(10);
Upvotes: 1