如何确定哪个Facebook页面已安装我的“页面”选项卡 [英] How to tell which Facebook Page my Page Tab App is installed on
问题描述
我有一个Facebook应用程序,我已经通过图形API安装了这个应用程序到一个页面选项卡。到目前为止,它工作得很好。
I have a facebook app and I have installed this app to a page tab through the graph api. It worked fine so far.
一旦这个应用程序可能安装到很多页面,我需要的是,在我的应用程序中,可以获取ID持有该应用程序的页面。
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.
可以吗?
推荐答案
它作为signed_request的一部分传递给您的应用程序,它被称为页面:
it is passed as a part of a signed_request to your app, it is called "page":
页面id字符串,如果
用户喜欢该页面,则喜欢的布尔值,如果用户是管理员,则为布尔值。
仅当您的应用程序是在页面选项卡中加载的iframe时才可用。
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/
这篇关于如何确定哪个Facebook页面已安装我的“页面”选项卡的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!