现在我想用以下链接共享文本的链接分享的文字是我的代码无法通过Android的分享意图
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"));
所以它的工作做工精细与Gmail,微博等,但它无法正常工作对正在使用Facebook
它仅共享链接,但有没有显示我的文字
我想这种类型的共享
www.mylink.com
here is my text
任何帮助,将不胜感激, 在此先感谢。
[Android和Facebook共享意图]的可能重复(http://stackoverflow.com/questions/7545254/android-and-facebook-share-intent) –
这是我的解决方案,它只是用于共享URL上Facebook,http://stackoverflow.com/a/29529335/513413 – Hesam
[他在这里的问题可能是Facebook没有看到意图中提供的额外信息。因为它适用于Gmail和Twitter。](https://stackoverflow.com/questions/34618514/share-text-via-intent-on-facebook-without-using-facebook-sdk) –