如何判断我的页面标签应用程序安装在哪个 Facebook 页面上 [英] How to tell which Facebook Page my Page Tab App is installed on

查看:26
本文介绍了如何判断我的页面标签应用程序安装在哪个 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.

有可能吗?

推荐答案

它作为签名请求的一部分传递给你的应用,它被称为页面":

it is passed as a part of a signed_request to your app, it is called "page":

包含页面 id 字符串的 JSON 对象,如果用户喜欢该页面,如果用户是管理员,则为管理员布尔值.仅当您的应用是加载在页面"选项卡中的 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天全站免登陆