FB装的应用程序时,Android的Facebook的样例应用程序没有登录 [英] Android Facebook sample app doesn't login when FB app installed

查看:120
本文介绍了FB装的应用程序时,Android的Facebook的样例应用程序没有登录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

起初我以为这是我的应用程序,但我得到的时候使用任何FB示例应用程序的完全相同的问题。

At first I thought this was my app but I get the exact same problem when using any of the FB sample apps.

取HelloFacebookSample为例,它给你一个登录按钮,并显示您登录后您的知情同意,并允许您发布状态更新。

Take the HelloFacebookSample for example, which gives you a login button and after login shows you your pic and enables you to post status updates.

如果我没有在FB应用程序安装在手机上的登录按钮,给了我一个web视图我登录,通过和照片出现在应用程序,我可以做的职位。但是,如果FB的应用程序是安装在手机上它带来了一个对话框,说该应用程序要访问你的公众形象等我preSS确定,.....什么都没有。

If I don't have the FB app installed on my phone the login button gives me a web view which i login through and the photo appears in the app and i can make posts. However if the FB app is installed on my phone it brings up a dialog saying the app would like to access you public profile etc. I press OK and..... nothing.

我发现有很多问题,这看起来类似,但这个问题通常是使用,而不是释放键调试的关键,但我从Eclipse中运行,以便调试关键仍然是合适的。

I have found many questions that seem similar but the problem was usually using a debug key as opposed to a release key, but I am running from eclipse so the debug key is still appropriate.

任何想法?

推荐答案

如果有Facebook的应用程序安装在您的手机或如果你想上传你对谷歌的应用程序播放,那么你需要一个不同的KeyHash默认。因为,当u开发你的FB的应用程序,你注册了您的FB的应用程序与通过使用默认debug.keystore创造了一个关键的哈希值。

if there is the default Facebook App is installed in your phone or if you are trying to upload your app on Google Play, then you need a different KeyHash. because, when u developed your FB app you have registered your FB app with a key hash which is created by using the default debug.keystore.

所以,现在ü需要一个不同的密钥存储库来产生不同的KeyHash。 ü需要一个签名密钥库,其中U可以通过本教程,产生新的密钥库后,生成一个密钥散列,并与这个新的密钥散列注册FB应用程序。这应该工作。 为产生新的KeyHashü可以按照<一个href="http://stackoverflow.com/questions/5306009/facebook-android-generate-key-hash/12405323#12405323">this链接

so, now u need a different KeyStore to generate the different KeyHash. u need a signed KeyStore, which u can get by the help of this tutorial , after generating new keystore, generate a key hash and register your FB App with this new key hash. this should work. for generating new KeyHash u can follow this link

这篇关于FB装的应用程序时,Android的Facebook的样例应用程序没有登录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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