Facebook App Iframe 设置自动增长
我们在应用程序中的 body 标记结束之前调用 FB.Canvas.setAutoGrow() 。但它不起作用。我们应该把自动增长放在哪里以确保它被调用
We are calling FB.Canvas.setAutoGrow() before end of the body tag in our app. But it is not working. Where should we put the autogrow to make sure it gets called
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我通常把它放在调用 FB.init() 函数之后。这通常位于 fbAsyncInit 函数内部。
Just after you call the FB.init() function is where I usually put it. That's usually inside of the fbAsyncInit function.
它应该包含在此区域之后:
如果您认为所有设置都正确但仍然无法正常工作,请确保您设置了正确的文档类型。这可能会导致它无法在 IE 版本中运行。
示例:
希望有帮助...
It should be included after this area:
If you believe you have everything set up correctly and it still isn't working, make sure you have the correct doctype set. That can cause it not to work in versions of IE.
Example:
Hope that helps...