gpt4 book ai didi

Facebook API - 如何在开发者模式下将应用程序添加到组

转载 作者:行者123 更新时间:2023-12-01 10:21:12 25 4
gpt4 key购买 nike

我无法将我的应用程序添加到任何测试用户的组中。
我创建了两个测试用户,其中一个有组,他是那里的管理员,我将这些用户包装到测试应用程序中。

我为组添加了两个权限(groups_access_member_info、publish_to_groups)。在用户设置中,我看到了我的应用程序,但在组设置中,我无法添加我的应用程序。

我需要这个,因为我想从 facebook 图形 API 发出请求。

问候

最佳答案

为了在开发模式下使用应用程序测试 Groups API,您需要同时是应用程序和组的管理员。测试用户不算作应用的管理员。因此,您需要使用真实的用户帐户。
您不必将应用程序添加到组中,如果您是组的管理员,则假定该应用程序已添加。

来源:Facebook Platform Bug Report .

来自另一个 useful bug report 的附加信息:

  • to read group information (such as the /events edge on a group), the app needs to have the "Groups API" feature reviewed and approved, and the app needs to be installed to the group. No additional permissions are required on the access token.

  • to read information about the members of a group, the access token needs to have the groups_access_member_info permission granted during login, and the app must have been approved for the "Groups API" feature.

  • to publish to a group, the access token needs to have the publish_to_group permission granted, in addition to the app having the "Groups API" feature

When testing this with your own groups in development mode, the Groups API feature is assumed to be enabled, and when querying groups that you manage, the API will behave as though the app is installed to your group. Note that when querying group posts, you may only receive posts made by yourself or other admins of the app.

When querying your group's events with your app in development mode, the call worked as you didn't need any additional permissions on the access token, and the API behaves as though your app is installed on the group. This is similar to how this would work in production, as the access token wouldn't need any additional permissions to be granted during login.

关于Facebook API - 如何在开发者模式下将应用程序添加到组,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52304018/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com