ClassNotFoundException的对android系统中打开Facebook共享图标 [英] ClassNotFoundException on opening facebook share icon in android

查看:189
本文介绍了ClassNotFoundException的对android系统中打开Facebook共享图标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个Android应用程序,和我说在Facebook选项份额,如下所述:

I have an android application, and I added a share on facebook option, as described here:

https://developers.facebook.com/docs/android/share/

在我的智能手机份额对话框完美的作品,但我所有的朋友的手机的对话框打开和关闭瞬间。我问其中一人送我logcat的输出,这是他看到了什么:

On my smartphone the share dialog works perfectly, yet on all my friends phones the dialog opens and closes instantly. I asked one of them to send me logcat output and this is what he saw:

E/Parcel(2939): Class not found when unmarshalling: com.facebook.ipc.composer.intent.SharePreview, 
e: java.lang.ClassNotFoundException: com.facebook.ipc.composer.intent.SharePreview

我不知道那个类是什么,并发现它谷歌没有。
Facebook的包我下载不包含它。
我不知道这是什么原因造成的份额对话框立即关闭,但它是一个主要嫌疑人。

I do not know what that class is, and found nothing on google about it. The facebook package I downloaded did not contain it. I am not sure this is what is causing the share dialog to close instantly, but it is a prime suspect.

我会很高兴,如果你能帮助!

I will be glad if you can help!

推荐答案

看来你的Facebook应用程序的沙盒模式。

It seems your facebook app is on sandbox mode.

有关它的工作,你必须在developers.facebook.com您的Facebook应用程序设置为生产模式,然后才把其他人就能够使用它。还有谁可以使用它的只有一个是谁创造了​​应用程序Facebook用户。

For it to work, you have to set up your facebook app at developers.facebook.com to production mode, then and only then other people will be able to use it. Else the only one who could use it is the facebook user who created the app.

有关沙盒模式的更多信息请访问:

For more info about sandbox mode go here:

https://developers.facebook.com/docs/web/tutorials/scrumptious/register-facebook-application/

干杯!

这篇关于ClassNotFoundException的对android系统中打开Facebook共享图标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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