Facebook授权w /权限请求收益“找不到页面” [英] Facebook authorize w/permissions request yield "Page Not Found"

查看:231
本文介绍了Facebook授权w /权限请求收益“找不到页面”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在过去几个星期的某个地方,iOS中授权的Facebook通话失败,出现找不到网页。对于尚未安装应用程序的用户或应用程序的权限已更改,用户必须批准其他权限,则会发生这种情况。无论Facebook应用程序处理用户身份验证还是Safari或弹出对话框,都会发生这种情况。所有重定向到找不到页面页面。



通过调试器,我发现初始的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页面的应用设置中打开了沙盒。为什么错误页面是如此钝的超出了我。


  1. 在Facebook开发者设置中: https: //developers.facebook.com ,编辑您的应用设置。

  2. 选择左侧设置下的高级标签。

  3. 确保未启用沙箱模式。


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.

  1. In Facebook developer settings: https://developers.facebook.com, edit your app settings.
  2. Select the "Advanced" tab, under "Settings" on the left side.
  3. Make sure that "Sandbox Mode" is not enabled.

这篇关于Facebook授权w /权限请求收益“找不到页面”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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