Android的分享文字未显示在Facebook的了 [英] Android Share text not showing up in Facebook
问题描述
我有一个分享按钮,这时候点击我想开一个窗户的份额,因此用户可以分享的社交网络这个文本。问题是脸谱,它不接受传递到意图EXTRA_TEXT
意图sharingIntent =新意图(android.content.Intent.ACTION_SEND);
sharingIntent.setType(text / plain的);
字符串shareBody =这里是共享内容身;
sharingIntent.putExtra(android.content.Intent.EXTRA_SUBJECT主题这里);
sharingIntent.putExtra(android.content.Intent.EXTRA_TEXT,shareBody);
startActivity(Intent.createChooser(sharingIntent通过分享));
每一个其他购股权(叽叽喳喳,tumblr ...)工作正常,只是Facebook是给问题...
我怎样才能解决这个问题,而无需创建与Facebook SDK一个全新的类只是为了这个目的?
在Facebook的应用程序不处理无论是EXTRA_SUBJECT或
EXTRA_TEXT领域。
块引用>下面是错误链接: https://developers.facebook.com/bugs/332619626816423
I have a share button, which when clicked I want to open a share windows, so the user can share this text in social networks. The problem is facebook, it is not accepting the EXTRA_TEXT passed onto the intent
Intent sharingIntent = new Intent(android.content.Intent.ACTION_SEND); sharingIntent.setType("text/plain"); String shareBody = "Here is the share content body"; sharingIntent.putExtra(android.content.Intent.EXTRA_SUBJECT, "Subject Here"); sharingIntent.putExtra(android.content.Intent.EXTRA_TEXT, shareBody); startActivity(Intent.createChooser(sharingIntent, "Share via"));
every other share option (twitter, tumblr...) works fine, just facebook is giving problems... How can I solve this without having to create a whole new class with facebook sdk just for this purpose??
解决方案The Facebook application does not handle either the EXTRA_SUBJECT or EXTRA_TEXT fields.
Here is bug link : https://developers.facebook.com/bugs/332619626816423
这篇关于Android的分享文字未显示在Facebook的了的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!