Find out Page Tab URL from Page ID and application ID

15,100

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/-/[page_id]?sk=app_[app_id]

Share:
15,100
julien_c
Author by

julien_c

Updated on July 27, 2022

Comments

  • julien_c
    julien_c almost 2 years

    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?

  • Peter Gombos
    Peter Gombos over 10 years
    good stuff man, I've been looking for this for along time! :)
  • steve
    steve over 10 years
    @PepeGombos really glad this is still coming in handy - if only Facebook documentation had these kind of hints easily accessible.
  • Johnny Oshika
    Johnny Oshika over 8 years
    Wow, is this documented anywhere? The previous URL format that I had been applying stopped working recently in certain scenarios, but this solution works all of the time.
  • steve
    steve over 8 years
    @JohnnyOshika I've not seen it documented ever, but it does seem to keep on working through various Facebook changes.
  • Johnny Oshika
    Johnny Oshika over 8 years
    Well it seems like this url format is broken now. :-( I can't come up with a solid way of link to my application tab on a Facebook Page. I'm not sure why Facebook doesn't provide this to us so that we can get rid of the guessing game.
  • Johnny Oshika
    Johnny Oshika over 8 years
    The problem I'm encountering may be a temporary bug: developers.facebook.com/bugs/408615369335909
  • ericraio
    ericraio over 8 years
    @JohnnyOshika Just came across this issue too, :/
  • steve
    steve over 8 years
    Yes - seems they've broken it properly at the moment. Annoying :(