facebook:您的链接无法共享

fre*_*ley 7 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"));
Run Code Online (Sandbox Code Playgroud)

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

Jac*_*ove 2

这是所有 Android 应用程序在尝试分享到 Facebook 时都会遇到的常见问题。Facebook 阻止其他应用程序使用其应用程序进行共享。我不知道为什么,但许多公司都在试图绕过这个。目前,它是“无法修复的”。对不起。