申请Facebook页面 [英] Applications for a Facebook page
问题描述
- 我拥有一个页面
- 我拥有一个应用程序
- 我在页面上添加了应用程序它不会显示在页面的应用程序列表中:/ /
是否可以访问该页面的完整Feed并发布消息应用程序使用GraphAPI与我的应用程序的令牌?
Is it possible to access the page's full feed and post messages from the application using the GraphAPI with the token of my application ?
当我使用我的用户的令牌时,我有完全访问此页面。
I have full access to this page when using my user's token though.
我正在使用考拉(在Ruby中)。以下是我使用的代码段:
I'm using Koala (in Ruby). Here's the snippet I'm using:
oauth = Koala::Facebook::OAuth.new(FACEBOOK_APP_ID, FACEBOOK_APP_SECRET)
token = oauth.get_app_access_token
graph = Koala::Facebook::GraphAPI.new(token)
pp graph.get_connections(ENTRY_ID, "comments")
有了这个,我没有收到关于ENTRY_ID的所有评论。
With this, I do not get all the comments on the ENTRY_ID.
推荐答案
您的应用程序必须被授予admin访问页面。更具体的是manage_pages特权。作为页面的管理员,您可以授予应用程序相应的权限。
Your application has to be granted "admin" access to the page. More specifically the "manage_pages" privilege. As an admin of the page, you could grant the app the appropriate privileges.
向下滚动到此页面上的页面登录部分。
http://developers.facebook.com/docs/authentication/
Scroll down to the "Page Login" section on this page. http://developers.facebook.com/docs/authentication/
这篇关于申请Facebook页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!