I’m building a Facebook app that can be installed on Pages (a Page Tab app), and would like to redirect my users to their Page Tabs, knowing only the app ID, and the Page ID.
Let’s say for example that my app is installed on this page:
http://www.facebook.com/coldplay whose ID is 15253175252, and my app ID is 174314562666399.
I know I can access the Page using only its numerical ID: http://facebook.com/15253175252 redirects to the Coldplay page.
And I can access the Page Tab with this URL: http://www.facebook.com/coldplay/app_174314562666399. Is there a way to get Facebook to redirect me to this Page Tab using only the Page ID and app ID?
You can pass in the APP ID with the sk=app_app_id parameter, but you’ll lose it when using the Page ID instead of the Pagename – it’s not redirected along with the request.
There’s a workaround I’ve used before though: you’ll need to write a FB redirect proof URL from the information you have.
So:
http://facebook.com/pages/-/15253175252?sk=app_174314562666399
That is:
http://facebook.com/pages/-/%5Bpage_id%5D?sk=app_%5Bapp_id%5D