Facebook / FBML - Can I create an Iframe, using FBML, in a Tab on a Profile Page?

隐身守侯 提交于 2019-12-24 20:54:29

问题


I want to create an Iframe within a Tab on a facebook profile. Are there any tag restrictions inside of a Tab or on a Profile Page?

Example profile/tag setup: http://www.facebook.com/#!/AvonProductsInc?v=app_10442206389&ref=ts


回答1:


Unfortunately, there are restrictions on what FMBL you can include on a profile page. One of these restrictions is no iframes on profile pages.

http://developers.facebook.com/docs/reference/fbml/iframe

[fb:iframe] inserts an tag into an application canvas page; you cannot use the tag on the profile page (that is, application tabs and profile boxes)




回答2:


Good news - iFrames are now supported on tabs. In fact, it looks like FBML will be disallowed on new tabs after March 11, 2011.

http://developers.facebook.com/blog/post/462




回答3:


As Jason mentioned, you can now use iFrames in your Page Tabs. But, in order to work around the issue user613346 mentioned you have to "upgrade" your page.

To upgrade your page, view the page when you're logged in as a page admin. You should see a button at the top that prompts you to preview or upgrade the page.

Upgrading the page switches to the new layout which moves the nav to the left side (and a few other minor things). It also lets iFrames work inside your tabs.

This isn't very well documented. Hope is saves someone else from pulling their hair out.



来源:https://stackoverflow.com/questions/2915267/facebook-fbml-can-i-create-an-iframe-using-fbml-in-a-tab-on-a-profile-page

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!