Facebook Android sdk 在身份验证时抛出丢失的重定向 uri [英] Facebook Android sdk throwing missing redirect uri on Authetication

查看:17
本文介绍了Facebook Android sdk 在身份验证时抛出丢失的重定向 uri的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在将 Facebook android sdk 与我的 android 应用一起使用.在开发我的开发版本时,我的应用程序一切正常.当我最终何时向公众发布我的应用程序时,当人们尝试对我的应用程序进行身份验证时,Facebook 身份验证会吐出一个丑陋的错误:

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());

就像我说的,这一切在开发过程中都运行良好,只有在发布我的 prod 版本后才出现,所以我已经检查了 fb 上的 dev 应用程序设置和 prod 应用程序设置,它们都是相同的.

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.

还有其他人看到这个问题吗?

Anyone else see this issue?

更新:似乎只有当用户接受允许登录我的应用程序但不接受我的权限时,我才会收到此错误.嗯嗯.也许我没有处理某些情况,但错误对我来说仍然没有意义.

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

最好的问候

这篇关于Facebook Android sdk 在身份验证时抛出丢失的重定向 uri的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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