Android - Facebook连接失败 [英] Android - Facebook connectivity fails

查看:219
本文介绍了Android - Facebook连接失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的Android应用程序中,我正在集成Facebook SDK以使用shareDialog。共享对话框与预先填充的详细信息完全相同。当我单击共享对话框右上角的SHARE时,我在logcat和Toast中得到以下提到的错误。请让我知道我的配置需要更正。

In my Android app, I am integrating the Facebook SDK to have the shareDialog in it. The share dialog open perfectly with the pre-populated details. When I clicked SHARE on top right of sharedialog screen, I am getting the below mentioned error in logcat and in Toast. Please let me know where my config needs correction.

04-17 15:15:47.140: E/Facebook(14515): Error: com.facebook.FacebookException: Failed to     
authenticate the application because of app name mismatch.  Please check the application   
name configured by the dialog.


推荐答案

转到Facebook 开发者页面

Go to Facebook developers page

应用程序 - >YourApp - >设置 - >

然后更改包名称(您的应用包名称)和类名称(您的活动类名称)

Then change Package name (your application package name) and Class name (your activity class name)

为例:

这篇关于Android - Facebook连接失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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