Facebook的Andr​​oid SDK中投掷失踪重定向URI上Authetication [英] Facebook Android sdk throwing missing redirect uri on Authetication

查看:207
本文介绍了Facebook的Andr​​oid SDK中投掷失踪重定向URI上Authetication的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用的是 Facebook的Andr​​oid SDK中与我的Andr​​oid应用程序。拥有一切优良要和我的应用程序,同时发展我开发的版本。当我终于何时发布我的应用程序向公众开放,facebook的authenication吐出一个丑陋的错误,当人们试图验证我的应用程序:

I'm using the Facebook android sdk with my android app. Had everything going fine with my app while developing my dev version. When I finally when to publish my app to the public, the facebook authenication spits a ugly error when people try to authenticate my app:

API Error code: 100
API Error description: Invalid parameter
Error Message: Requires valid redirect URI

看起来像Facebook认为我正在做一个浏览器重定向到他们缺少一个重定向URI回到我的应用程序,但我使用了Android SDK中,你不发送重定向URI,你有一个回调监听器:

Seems like facebook thinks I'm doing a browser redirect to them and missing a redirect uri to return to my app, but I am using the android sdk in which you do not send a redirect uri, you have a callback listener:

facebook.authorize(this, new String[] { "email", "publish_stream" }, new FBLoginDialogListener());

就像我说的这一切工作正常发育过程中,只出现了之后发布我的督促版本,所以我检查了开发应用程序,设置和FB的督促程序设置两个,它们都是相同的。

Like i said this all worked fine during development and only showed up after released my prod version, so I have checked both the dev app setup and the prod app setup on fb, and they are both identical.

任何人看到这个问题?

更新:看来我只能得到这个错误,当用户接受,允许登录到我的应用程序,但不接受我的权限。 hmmmmm。也许是我没有处理一些情况,但错误依然是没有意义的我。

UPDATE: It seems I only get this error when a user accepts allowing to log into my app, but then does not accept my permissions. hmmmmm. Maybe I'm not handling some situation, but the error still makes no sense to me.

推荐答案

我通过禁用增强验证对话框中您的应用程序的高级设置上的 https://developers.facebook.com/apps

I solved this issue by disabling the Enhanced Auth Dialog in the Advanced Settings of your app on https://developers.facebook.com/apps

最好的问候

这篇关于Facebook的Andr​​oid SDK中投掷失踪重定向URI上Authetication的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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