Facebook API-如何在开发人员模式下将应用程序添加到组 [英] Facebook API - How to add application to group in developer mode

查看:141
本文介绍了Facebook API-如何在开发人员模式下将应用程序添加到组的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I have troubles with adding my application to group for any test user. I've created two test users and one of them has group and he is an admin there and I wrapped those users into test application.

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

I've added two permissions for groups (groups_access_member_info, publish_to_groups). In user settings I see my application but in group settings I can't add my application.

我需要这个,因为我想从facebook graph API发出请求.

I need this because I would like to make request from facebook graph API.

致谢

推荐答案

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

In order to test the Groups API with an app in development mode, you need to be an admin of both the app and group. Test users don't count as admins of the app. Therefore, you'll need to use a real user account. You don't have to add the app to the group, it is assumed that the app is added if you are the admin of the group.

来源: Facebook平台错误报告.

来自另一个有用的错误报告的其他信息:

Additional information from another useful bug report:

  • 要读取群组信息(例如群组上的/events边缘),该应用需要经过"Groups API"功能的审核和批准, 并且该应用需要安装到该组中.没有额外的 访问令牌需要权限.

  • 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.

要读取有关组成员的信息,访问令牌需要具有在访问期间授予的groups_access_member_info权限 登录,并且该应用必须已获得"Groups API"的批准 功能.

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.

要发布到组中,除了具有以下功能的应用程序外,访问令牌还需要授予publish_to_group权限: 网上论坛API"功能

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

在开发模式下用您自己的小组测试时,小组 假设已启用API功能,并且在查询组时 由您管理,该API的行为就好像该应用已安装到您的 团体.请注意,查询群组帖子时,您可能只会收到帖子 由您自己或应用程序的其他管理员制作.

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.

在开发模式下使用您的应用查询小组的活动时, 通话成功,因为您不需要任何其他权限 访问令牌,并且该API的行为就像您的应用安装在 群组.这类似于它在生产中的工作方式,因为 访问令牌不需要任何其他权限即可 登录期间授予.

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-如何在开发人员模式下将应用程序添加到组的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆