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

查看:22
本文介绍了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 图形 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 边缘),应用需要审核并批准群组 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.

要发布到组,除了应用程序具有群组 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天全站免登陆