对于facebook-共享文本和链接的Android份额意图 [英] Android share intent for facebook- share text AND link
问题描述
我试图使用Android份额意图发布一些在Facebook上。它看起来是这样的:
I am trying to use the Android share intent to post something on facebook. It looks like this:
shareIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
shareIntent.setType("text/plain");
shareIntent.putExtra(android.content.Intent.EXTRA_TEXT, "Free education for all! http://linkd.in/xU8mCc");
startActivity(shareIntent);
所以,我的帖子有两个 - 一些文本和链接。但是,当消息在Facebook上发布,它只有链接,没有任何消息。我尝试了各种附加功能,但没有任何工程。
So my post has both - some text and a link. But when the message is posted on facebook, it only has the link, no message. I tried various extras but nothing works.
任何人都面临这个问题,并解决它?我的Facebook应用程序版本1.8.1
Anyone faced this issue and solved it? I have facebook app version 1.8.1
编辑:我试着删除了链接,Facebook的应用程序不会把我的消息(显示空白消息被公布),而不是相反。所以看起来像应用程序是完全无视任何纯文本信息。我吓坏了!这是在FB应用程序,短信不能贴在所有的重大缺陷(与份额的意图)?
I tried removing the link, and the facebook app does not take my message (shows a blank message to be posted), but not the other way round. So looks like the app is totally ignoring any plain text messages. I am spooked! Is this a major bug in the fb app that text messages can not be posted at all (with share intent)?
推荐答案
显然,这是一个已知的错误,并希望制定之中:
Apparently this is a known bug and hopefully being worked out:
<一个href="http://forum.developers.facebook.net/viewtopic.php?id=93900">http://forum.developers.facebook.net/viewtopic.php?id=93900
这篇关于对于facebook-共享文本和链接的Android份额意图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!