ios Facebook 登录错误“不允许用户查看该应用程序。”
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/24960053/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Facebook login error "User is not allowed to see the application."
提问by user2562080
Hi: I have submitted my app to the App Store. I have Facebook login feature in my app. When I try to login to Facebook from devices I have I am able to do it seamlessly. However Apple has rejected my app saying " When we tap the Facebook icon to sign up we are taken to mobile Safari where we receive a message that states :
您好:我已将我的应用提交到 App Store。我的应用程序中有 Facebook 登录功能。当我尝试从我拥有的设备登录 Facebook 时,我能够无缝地做到这一点。然而,Apple 拒绝了我的应用程序,并说“当我们点击 Facebook 图标进行注册时,我们将被带到移动 Safari,在那里我们收到一条消息:
User is not allowed to see the application.: The user is not allowed to see this application per the developer set configuration.
不允许用户查看应用程序。:根据开发人员设置配置,不允许用户查看此应用程序。
Not sure how will I be able recreate this issue. I installed my app on 3 different devices and was able to login without any errors. I checked my app setting on Facebook Status and Review section of Facebook and I have enabled my general public. Not sure what else I am missing. I just feel very dejected. Can anyone please help me figure this out? I am using parse as my backend service and logging users using parse Facebook login. Thank you very much!
不知道我将如何能够重现这个问题。我在 3 个不同的设备上安装了我的应用程序,并且能够登录而没有任何错误。我在 Facebook 的 Facebook 状态和评论部分检查了我的应用程序设置,我已经启用了我的公众。不知道我还缺少什么。我只是感到非常沮丧。任何人都可以帮我解决这个问题吗?我使用 parse 作为我的后端服务,并使用 parse Facebook 登录记录用户。非常感谢!
回答by David K. Hess
Another reason this will happen is if you are logged in as a test user from a different app than the one you are trying to sign in to. Facebook test users are app-specific.
发生这种情况的另一个原因是,如果您以测试用户身份从与您尝试登录的应用程序不同的应用程序登录。Facebook 测试用户是特定于应用程序的。
Sign out of Facebook and back in with a test user from the correct app.
退出 Facebook 并使用正确应用程序中的测试用户重新登录。
回答by Jot
Go to Safari > http://m.facebook.com> logout In cases where app sign in with safariviewcontroller, sometimes it contains test user of different app
转到 Safari > http://m.facebook.com> logout 在应用程序使用 safariviewcontroller 登录的情况下,有时它包含不同应用程序的测试用户
回答by Virag Brahme
In my case, I was using wrong facebook application id in the code. So added the correct id & it worked for me.
就我而言,我在代码中使用了错误的 Facebook 应用程序 ID。所以添加了正确的 ID,它对我有用。
回答by Gurjeet Singh
This issue occurs because Apple testers used the same Facebook test account which was created to test any other app and they did not logged out from that account(forgotten to log out) and that facebook test account doesn't have the permission for the current app in review which is why this issue occurs,
出现此问题是因为 Apple 测试人员使用了为测试任何其他应用程序而创建的相同 Facebook 测试帐户,但他们没有从该帐户注销(忘记注销)并且该 Facebook 测试帐户没有当前应用程序的权限在这就是为什么会出现这个问题,
You can follow the given link to replicate the issue by creating an an test account.
您可以按照给定的链接通过创建一个测试帐户来复制问题。
http://samwize.com/2014/07/23/error-with-facebook-login-using-test-users/
http://samwize.com/2014/07/23/error-with-facebook-login-using-test-users/
Steps to create Facebook test account https://developers.facebook.com/docs/apps/test-users#managetool
创建 Facebook 测试帐户的步骤 https://developers.facebook.com/docs/apps/test-users#managetool
回答by Jeremy Schultz
We had this problem, and it turned out that the problem app didn't have a namespace set up in the Settings > Basic tab. Creating one is the solution to this.
我们遇到了这个问题,结果发现问题应用程序没有在“设置”>“基本”选项卡中设置命名空间。创建一个是解决这个问题的方法。
回答by jrmgx
I had something similar when validating to apple too, I still don't get it now but for some reason the facebook secret id had been erased from the parse configuration. You must check that point too
我在向苹果验证时也有类似的东西,我现在仍然不明白,但由于某种原因,facebook 的秘密 ID 已从解析配置中删除。你也必须检查那个点
回答by Popa Andrei
I don't know if that was the reason or not but for me this happened only after I signed the application with a release key, so I made the app 'public'. Probably the test users doesn't work for public applications.
我不知道这是否是原因,但对我来说这只是在我使用发布密钥签署应用程序后才发生的,所以我将应用程序设为“公开”。可能测试用户不适用于公共应用程序。
回答by jayel Zaghmoutt
We had this problem, and the solution is to use the same FB test accounts that was created from the same FB App. So if the App get rejected from App, then you should send to Apple a FB test account with password.
我们遇到了这个问题,解决方案是使用从同一个 FB App 创建的相同 FB 测试帐户。因此,如果应用程序被应用程序拒绝,那么您应该向 Apple 发送一个带有密码的 FB 测试帐户。