自从最近引入登录审查以来,我如何测试 Facebook 应用程序? [英] How do I test a Facebook app since the recent introduction of login review?

查看:27
本文介绍了自从最近引入登录审查以来,我如何测试 Facebook 应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个 Facebook 应用,该应用通过 API 调用获取用户事件列表.

I am developing a Facebook app that makes an API call to get a list of the user's events.

该应用将使用 Javascript 调用用户/事件边缘,如下所示:

The app will use Javascript which will call the user/events edge, something like this:

   FB.api(
     "/{user-id}/events",
     function (response) {
       if (response && !response.error) {
          /* handle the result */
       }
     }
 );

自 4 月底以来,随着登录审核的引入,此功能将在我的应用程序获得批准之前无法使用...

Since the end of April, with the introduction of the login review, this functionality won't work until my app is approved...

所以我的问题是,如何在应用获得批准之前对其进行测试?

So my question is, how can I test the app before it gets approved??

我已经阅读了尽可能多的内容,并尝试设置测试用户,但无法得到任何答案...

I've read as much as I can find on this, and tried setting up a test user, but can't get any answers...

显然我无法在测试之前提交我的应用程序以供批准,但似乎我无法在批准之前对其进行测试.一定有办法!

Obviously I can't submit my app for approval before it is tested, but it seems I can't test it before it is approved. There must be a way!

推荐答案

您无需批准应用的管理员、开发人员和测试人员的权限.您可以在应用仪表板的角色"选项卡中定义这些内容.

You won't need to approval of permissions for the Admins, Developers and Testers of your app. You can define those in the App Dashboard, "Roles" tab.

https://developers.facebook.com/apps/[app_id]/roles/

当您使用其中一位用户登录时,您可以请求所有权限.

When you login with one of those users, you can request all permissions.

其实这也是提交审核的时候需要做的.例如,当您想要请求 publish_actions 权限时,您的应用必须在过去 30 天内使用过该权限.这是供审核团队检查您是否实际使用该权限.

Actually, this is also required to do when you submit for review. For example, when you want to request the publish_actions permission, your app must have used it in the last 30 days. This is for the reviewing team to check if you actually use that permission.

因此,您需要使用应用中定义的角色之一,然后您可以向该用户请求任何权限.

So, you will need to use one of the roles as defined on your app and then you can request any permission from that user.

请注意,即使您可以请求所有权限,您仍然必须在登录时实际请求权限.因此,如果您调用 /me/events 对于用户(恰好是您,应用程序的管理员/开发者),您仍然需要在登录范围权限中请求 user_events.

edit: Note that even though you can request all of the permissions, you still have to actually request the permissions when you are logging in. So if you call /me/events for a user (which happens to be you, an Admin/Developer of the app), you still have to request user_events in the login scope permissions.

这篇关于自从最近引入登录审查以来,我如何测试 Facebook 应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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