How to tell which Facebook Page my Page Tab App is installed on [duplicate]
Possible Duplicate:
How can I find out what Page has insta开发者_JAVA百科lled my Facebook Canvas App?
I have a facebook app and I have installed this app to a page tab through the graph api. It worked fine so far.
Once this app may be installed to a lot of pages, what do I need is, within my app, to be able to get the ID of the page whom is holding the app.
Is it possible?
it is passed as a part of a signed_request to your app, it is called "page":
A JSON object containing the page id string, the liked boolean if the user has liked the page, the admin boolean if the user is an admin. Only available if your app is an iframe loaded in a Page tab.
https://developers.facebook.com/docs/authentication/signed_request/
精彩评论