如何获取应用程序所拥有的所有打开的图形页面? [英] How can I get all open graph pages owned by an application?
问题描述
我正在尝试获取应用程序拥有的所有打开的图表页面。
I am trying to get all open graph pages owned by an application.
我尝试过这个查询,但是它返回了一个空数据集。我想尝试这个应用程序代码,而不知道是否有办法。
I tried this query, but it returned an empty data set. I want to try this with the app id instead and wondering if there is a way to do that.
https://graph.facebook.com/fql?q=SELECT page_id,从page_admin输入WHERE uid = me()& access_token = {token}
https://graph.facebook.com/fql?q=SELECT page_id, type from page_admin WHERE uid=me()&access_token={token}
推荐答案
我没有找到一种方法来获取应用程序拥有的页面。但是有一种方法来获取用户拥有的页面:
https:// graph.facebook.com/USER_ID/accounts?access_token=ACESS_TOKEN
I haven't found a way to get the pages owned by an application. But there is a way to get pages owned by a user: https://graph.facebook.com/USER_ID/accounts?access_token=ACESS_TOKEN
要执行此请求,用户应该允许使用manage_pages权限访问您的应用程序。
To perform this request user should allow access to your app with manage_pages privilege.
这篇关于如何获取应用程序所拥有的所有打开的图形页面?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!