Question:

While Facebook is moving away from FBML canvas app, I am migrating my application as an iFrame canvas app. Most of the migration is done (i.e. most of the pages of my application can be ran properly as an iframe canvas app). However, there is a page that I don't know how to migrate it.

So, if I change my application type to "iframe" in Facebook's application settings page, is there a way for me to run that particular app page as a FBML page?

 

 

 

Answer:

Appreciate if you can like this page if you find it useful! - Click "Like"

If you want to have a particular page of your iFrame canvas application to be rendered by using FBML, you can use the "fb_force_mode" query string parameter.

For example, if the link to your "FBML page" is http://apps.facebook.com/myapp/fbmlpage.php, then make it as

http://apps.facebook.com/myiframeapp/fbmlpage.php?fb_force_mode=fbml

 

Similarly, if you have a FBML app but want a particular page to be render as "iFrame canvas page", make the href as

http://apps.facebook.com/myfbmlapp/iframepage.php?fb_force_mode=iframe

 

 

Find my FAQ on Facebook Development useful? Download the PDF for all the FAQs HERE!