如何从 Facebook 群组检索用户评论和帖子
我阅读了很多有关 FQL 的文档(太棒了!),最后我找到了两个很棒的参考资料,它们适合从 Facebook 群组检索所有帖子:
http://developers.facebook.com/docs/reference/fql/stream/
好吧,现在我有另一个问题:我需要向我的应用程序授予检索秘密组帖子的权限(我是该组的所有者)。
我如何向我的应用程序授予此权限?群组所有者(在本例中是我)是否要做某事?
谢谢
I've read a lot of documentation about FQL (awesome!) and finally I've found two great references which are suitable to retrieve all the posts from a Facebook group:
http://developers.facebook.com/docs/reference/fql/stream/
Retrieving posts and comments from a Facebook page
Well, now I have another problem: I need to give to my application the permission for retrieving the posts of a secret group (I am the owner of this group).
How can I give this permission to my application? Has the group owner (that is me in this case) to do something?
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
问题是您无法让您的应用程序直接访问该组。您,组所有者,必须充当权限的中间人。您必须在应用程序中请求 user_groups 权限,将应用程序添加到您的个人资料中并允许 user_groups 权限。然后你必须从你的用户那里获得一个令牌,然后一切都会正常。
长话短说:您的应用程序可以访问您的组,并且您是该组的所有者,因此您的应用程序可以访问您的组。但请注意,必须使用 user-token 而不是 app-token。有道理吗?
The thing is you can't give your application direct access to the group. You, the group-owner, must act as the middle man for the permissions. You must ask for user_groups permission in your app, add your app to your profile and allow the user_groups permission. Then you must get a token from your user and tah-dah, everything is gonna work.
Long story short: Your app can have access to your groups, and you are the owner of the group, therefore your app has access to your group. But pay attention that you must use a user-token instead of app-token. Makes sense?