其他网站上的 Facebook 群组墙

发布于 2024-12-25 22:39:58 字数 145 浏览 2 评论 0原文

我制作了一个在其他网站上显示 Facebook 群组墙的应用程序。我想知道访问此其他网站的用户是否可以不必授予其权限。 Facebook 群组是公开的,无需任何特殊许可即可共享所有内容。还想知道是否可以在没有用户登录的情况下显示群组墙源?

你有什么解决办法吗?

I made a application which shows facebook group wall on the other website. I would like to know if it is possible that users which comes to this other website don't have to grant their permissions. The facebook group is public and everything is shared without any special permissions. Also would like to know if it is possible to show group wall feed without user logged in?

Do you have any solutions?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

俯瞰星空 2025-01-01 22:39:58

“Facebook 群组是公开的,所有内容都可以共享,无需任何特殊许可。”

关于 Graph API 的一个奇怪的事情是,要从其中获取大部分公共信息,将需要访问令牌,即使该信息是“公共”的。我已经为此绞尽脑汁很长时间了,除了“API 是由 Facebook 提供的,我们在他们的沙箱中必须遵守他们的规则”之外,没有想出任何其他答案。

因此,您需要从至少一个人那里获取访​​问令牌才能执行您所请求的操作。 (至少您不必询问每个用户!)

您需要向用户询问 user_group 访问权限,然后您就可以获取 {group_id}/feed。您可能想要做的是通过请求 offline_access 从原始成员之一甚至您自己那里获取未过期的令牌。然后始终使用该令牌来获取提要。 (请记住,当您更改密码时,offline_access 令牌将失效,需要获取新的令牌)。

"The facebook group is public and everything is shared without any special permissions."

One of the strange things about the Graph API, to get public information from much of it, will require an access token, even though that information is "public". I've scratched my head about that for a long time, and haven't come up with any other answer than "the API is provided by Facebook and we must play by their rules when in their sandbox".

So, you will need to get an access token from at least one person to do what you are requesting. (At least you wouldn't have to ask every user!)

You will need to ask your user for user_group access and then you can grab {group_id}/feed. What you might want to do is get a non-expiring token from one of the original members or even yourself by requesting offline_access. Then always use that token to get the feed. (Remember, when you change your password, the offline_access token will be invalidated and will need to get a new one).

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文