How to tell which Facebook Page my Page Tab App is installed on [duplicate]

孤人 提交于 2019-12-30 14:09:32

问题


Possible Duplicate:
How can I find out what Page has installed 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?


回答1:


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/



来源:https://stackoverflow.com/questions/7623848/how-to-tell-which-facebook-page-my-page-tab-app-is-installed-on

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!