Search code examples
facebookfacebook-iframe

Direct links to pages in Facebook iFrame application?


Is it possible to link directly to inner pages in a Facebook iFrame app?

For example, say my app lives at http://www.example.com/app. Can I have a link like http://apps.facebook.com/my_app/?id=256 which will navigate to somewhere like http://www.example.com/app/id/256 in my app that lives in the Facebook canvas?

I did a quick search around but didn't find anything, so if there's something already out there, please point me to it!


Solution

  • If your callback URL is set to http://fb.domain.com/ and your canvas URL to http://apps.facebook.com/domain_app/, navigating to http://apps.facebook.com/domain_app/hello will load http://fb.domain.com/hello. This holds true for querystring parameters as well.