我无法从群组墙上读取内容
我可以阅读用户的提要或帖子,
https://developers.facebook.com/tools/explorer?method=GET&path=me%2Fposts
但当我尝试访问群组提要或帖子时,却无法阅读。我添加了 auth 部分,但它返回空 JSON。在我尝试过的组中,有一个是封闭组,另外两个是开放组。
https://graph.facebook.com/228955270470492
上面的内容返回:
{
"id": "228955270470492",
...
"name": "ADI BİLİM",
"privacy": "OPEN",
...
}
请求此提要
https://graph.facebook.com/228955270470492/feed?access_token=AAACEdEose0cBAACgceqTZCBg0YA7MifDP02MKVXpZCipHJNHmHqK5OTzDvJaNke2JDxhOxKOTFl6bPOoZCZAdUZAQFFV6lD8GCMTxQHigUQZDZD
结果为空:
{
"data": [
]
}
我做错了什么?
I can read users feeds or posts
https://developers.facebook.com/tools/explorer?method=GET&path=me%2Fposts
but when I try to reach a groups feed or posts, I can't. I added auth part but it returns empty JSON. From the groups I tried, one was closed and 2 other are open groups.
https://graph.facebook.com/228955270470492
The above returns this:
{
"id": "228955270470492",
...
"name": "ADI BİLİM",
"privacy": "OPEN",
...
}
Requesting this feed
https://graph.facebook.com/228955270470492/feed?access_token=AAACEdEose0cBAACgceqTZCBg0YA7MifDP02MKVXpZCipHJNHmHqK5OTzDvJaNke2JDxhOxKOTFl6bPOoZCZAdUZAQFFV6lD8GCMTxQHigUQZDZD
results in empty:
{
"data": [
]
}
What I am doing wrong?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这对我来说工作正常,您的访问令牌是该组成员的用户的吗?
如果没有,该组需要具有可见性
OPEN
。您可能还需要用户的user_groups
权限,但我猜如果您正在访问用户的组列表,您已经拥有该权限This is working fine for me, is your access token for a user who's a member of the group?
If not, the group needs to have visiblity
OPEN
. You may also needuser_groups
permission for the user, but I'm guessing you already have that if you're accessing the user's list of groups即使这个组是公共的,我也需要通过扩展权限对应用程序“read_stream”进行身份验证。现在我可以看到提要了:)
Even this group is public I need to auth app "read_stream" from extended permissions. Now I can see feeds :)