ClassNotFoundException在android上打开facebook share图标 [英] ClassNotFoundException on opening facebook share icon in android

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

问题描述

我有一个Android应用程序,我在Facebook选项中添加了一个共享,如下所述:



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



在我的智能手机上,对话框完美无缺,但在我所有的朋友手机上,对话框立即打开和关闭。我问其中一个发送我的logcat输出,这是他看到的:

  E / Parcel(2939):Class not在解组时发现:com.facebook.ipc.composer.intent.SharePreview,
e:java.lang.ClassNotFoundException:com.facebook.ipc.composer.intent.SharePreview
/ pre>

我不知道那个类是什么,在google上没有发现任何内容。
我下载的facebook包并没有包含它。
我不知道这是什么导致共享对话框立即关闭,但它是一个主要的嫌疑人。



如果可以帮助我会很高兴

解决方案

看起来您的Facebook应用程式正在沙盒模式。



为了工作,您必须将developers.facebook.com上的Facebook应用程序设置为生产模式,然后只有其他人才能使用它。否则唯一可以使用它的是创建应用程序的Facebook用户。



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



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



干杯!


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

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

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

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!

解决方案

It seems your facebook app is on sandbox mode.

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/

Cheers!

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

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