如何确定哪个Facebook页面已安装我的“页面”选项卡 [英] How to tell which Facebook Page my Page Tab App is installed on

查看:147
本文介绍了如何确定哪个Facebook页面已安装我的“页面”选项卡的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


可能重复:

如何找到什么页面已经安装了我的Facebook Canvas应用程序?

我有一个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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆