android – facebook:你的链接无法共享

我正在添加使用 android的共享意图从我的应用程序分享分数的功能:
Intent shareIntent = new Intent(android.content.Intent.ACTION_SEND);
shareIntent.setType("text/plain");
shareIntent.putExtra(android.content.Intent.EXTRA_SUBJECT,"My Score");
shareIntent.putExtra(android.content.Intent.EXTRA_TEXT,"I scored "+score+" on "+difficultyString+" difficulty.");

context.startActivity(Intent.createChooser(shareIntent,"Share your score"));

当我从选择器中选择Facebook时,它会转到m.facebook.com并说“您的链接无法共享”.这里出了什么问题?

解决方法

这是在尝试分享到Facebook时在所有Android应用程序中发现的常见问题. Facebook阻止其他应用程序使用他们的应用程序共享我不知道为什么,但很多公司都试图绕过这个.目前,它是“unfix-able”.抱歉.

相关文章

Android 如何解决dialog弹出时无法捕捉Activity的back事件 在...
Android实现自定义带文字和图片的Button 在Android开发中经常...
Android 关于长按back键退出应用程序的实现最近在做一个Andr...
android自带的时间选择器只能精确到分,但是对于某些应用要求...