开发者

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

I want to create an Iframe within a Tab on a facebook profile. Are there any tag restrictions inside of a Ta开发者_运维技巧b or on a Profile Page?

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


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)


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


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜