简体   繁体   English

使用Graph API访问Facebook私人论坛的帖子

[英]Access private facebook group's posts using Graph API

I've been trying (with little success) for a while now to get all the posts from a private group that I am in and display them on our website so that the people with out Facebook can still see them. 我已经尝试了一段时间(但收效甚微),从我所在的私人团体中获取所有帖子,并将它们显示在我们的网站上,以便没有Facebook的人仍然可以看到它们。 I know this is possible with a public group (which our group cannot be), but is it possible with a private group? 我知道公共团体(我们的团体不能)是可能的,但是私人团体可以吗?

I've tried access tokens on the Graph API Explorer, but that just returns: 我已经尝试在Graph API Explorer上访问访问令牌,但这只会返回:

{
  "data": [
  ]
}

I also read that to access private groups the user needs to log in as a user in that group. 我还读到要访问私有组,用户需要以该组中的用户身份登录。 However, this would be pointless as the whole point in trying to do this is to allow people without facebook to see the group's posts. 但是,这毫无意义,因为这样做的重点是允许没有Facebook的人看到该论坛的帖子。

Thank you all 谢谢你们

Ben

The whole point of a "private" group is that only logged in group members can see the feed. “私有”组的全部意义在于,只有已登录的组成员才能看到源。

That being said, you can only use the permission user_managed_groups to get the group feed with the /group-id/feed endpoint. 话虽如此,您只能使用权限user_managed_groups来获取具有/group-id/feed端点的/group-id/feed You need to use a User Access Token for this, with the correct permission, and this only works as group admin. 为此,您需要使用用户访问令牌,并具有正确的权限,并且该令牌只能作为组管理员使用。 You can't read the feed of a group just because the user is a member of the group - at least not anymore. 您不能仅因为用户是该组的成员而阅读该组的供稿-至少现在不再。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM