无法通过Android Share Intent与链接共享文本

Jee*_*etu 5 android facebook android-intent

现在我想与下面的链接共享文本是我的代码

String myText = "Hey!\nThis is a my Text!";

Intent share = new Intent(Intent.ACTION_SEND);
share.setType("text/plain");
String extraText = "www.mylink.com\n\n" + myText ;
share.putExtra(Intent.EXTRA_TEXT, extraText);
startActivity(Intent.createChooser(share, "Share with Friends"));
Run Code Online (Sandbox Code Playgroud)

所以它与gmail,twitter等工作正常,但它不适用于Facebook

在Facebook上它只分享链接但没有显示我的文字

我想要这种类型的分享

www.mylink.com

here is my text
Run Code Online (Sandbox Code Playgroud)

任何帮助将不胜感激,在此先感谢.

nds*_*ter 4

您遇到的问题可能是 Facebook 没有查看 Intent 中提供的额外信息。因为它适用于 Gmail 和 Twitter。

顺便看看Android 和 Facebook 的分享意图。