Facebook授权w /权限请求收益“找不到页面” [英] Facebook authorize w/permissions request yield "Page Not Found"
问题描述
通过调试器,我发现初始的URL请求是(app id替换[app_id])用于登录屏幕:
https://m.facebook.com/dialog/oauth?type=user_agent&display=touch&redirect_uri=fb [app_id]%3A%2F%2授权& sdk = 2& scope = user_location %2Cuser_relationships%2Cemail%2Cpublish_stream%2Coffline_access& client_id = [app_id]
登录尝试正在寻找以下URL(我认为用户不足的URL权限):
http://www.facebook.com/dialog/permissions.request?_path=permissions.request&app_id= [appid]& redirect_uri = fb [APPID]%3A%3F%3Fauthorize&安培; SDK = 2及显示=触摸和键入= USER_AGENT&安培; fbconnect = 1&安培;烫发= USER_LOCATION%2Cuser_relationships%2Cemail%2Cpublish_stream%2Coffline_access&安培; SSO = iphone-狩猎&安培; from_login = 1
我检查了Xcode中列出的Bundle ID与我应用的设置列出的一样n Facebook。
由于权限页面未显示,新用户无法添加应用。我以前工作的旧版本的应用程序也以同样的方式失败。可能是什么问题呢?
好吧,我感觉有点蠢。
问题是我在Facebook页面的应用设置中打开了沙盒。为什么错误页面是如此钝的超出了我。
- 在Facebook开发者设置中: https: //developers.facebook.com ,编辑您的应用设置。
- 选择左侧设置下的高级标签。
- 确保未启用沙箱模式。
Somewhere along the way in the past few weeks, the authorize Facebook call in iOS fails with a "Page Not Found". This happens for any user that has not installed the app or if the app's permissions have changed and the user must approve the additional permissions. This happens whether the Facebook app handles the user authentication or Safari or the popup dialog. All redirect to a "Page Not Found" page.
Digging through the debugger, I found the initial URL request to be (app id replaces "[app_id]") for the login screen:
https://m.facebook.com/dialog/oauth?type=user_agent&display=touch&redirect_uri=fb[app_id]%3A%2F%2Fauthorize&sdk=2&scope=user_location%2Cuser_relationships%2Cemail%2Cpublish_stream%2Coffline_access&client_id=[app_id]
The following URL is being sought by the login attempt (I assume by the URL that the user has insufficient permissions):
http://www.facebook.com/dialog/permissions.request?_path=permissions.request&app_id=[appid]&redirect_uri=fb[appid]%3A%3F%3Fauthorize&sdk=2&display=touch&type=user_agent&fbconnect=1&perms=user_location%2Cuser_relationships%2Cemail%2Cpublish_stream%2Coffline_access&sso=iphone-safari&from_login=1
I've checked that the Bundle ID listed in Xcode is the same as that listed for my app's settings in Facebook.
Because the permissions page is not showing, new users cannot add the app. Old versions of my app that used to work are failing in the same way as well. What could be the problem?
Okay, I'm feeling a bit stupid.
The problem was that I had Sandboxing turned on in the app settings in the Facebook page. Why the error page was so obtuse is beyond me.
- In Facebook developer settings: https://developers.facebook.com, edit your app settings.
- Select the "Advanced" tab, under "Settings" on the left side.
- Make sure that "Sandbox Mode" is not enabled.
这篇关于Facebook授权w /权限请求收益“找不到页面”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!