消息没有在Facebook分享在使用的Android ACTION_SEND所示 [英] Message is not Shown in Facebook share using ACTION_SEND in android
问题描述
我想用Android的ACTION_SEND使用Facebook的共享自定义文本,我使用低于code,它只是打开一个Facebook发布对话框。短信是不可见的。
意向意图=新的Intent();
intent.setClassName(com.facebook.katana
com.facebook.katana.activity.composer.ImplicitShareIntentHandler);
intent.setAction(android.intent.action.SEND);
intent.setType(text / plain的);
intent.putExtra(android.intent.extra.TEXT
https://play.google.com/store/apps/details?id=com.instagram.android);
startActivity(意向);
这取决于的Facebook应用无论是通过的意向接受的文本或不可以,我知道他们接受图像和位图文件,但文字不接受it.I've已经尝试过在我自己的项目之一,这个早期的,而是通过意向不能提供文本。
Facebook的应用程序不处理无论是EXTRA_SUBJECT或EXTRA_TEXT领域。
这是显然的Facebook应用程序一个已知的bug。
欲了解更多信息,可以按照其中有几个贴线程
I want to share Custom text using ACTION_SEND in Facebook using android, I am using below code, It's just open a Facebook Post Dialog. Text Message is not visible
Intent intent = new Intent();
intent.setClassName("com.facebook.katana",
"com.facebook.katana.activity.composer.ImplicitShareIntentHandler");
intent.setAction("android.intent.action.SEND");
intent.setType("text/plain");
intent.putExtra("android.intent.extra.TEXT",
"https://play.google.com/store/apps/details?id=com.instagram.android");
startActivity(intent);
It depends upon Facebook app whether they are accepting text or not via intent,I know they accept images and bitmap files but for text they don't accept it.I've already tried this earlier in one of my own project but couldn't supply text via intent.
The Facebook application does not handle either the EXTRA_SUBJECT or EXTRA_TEXT fields.
This is apparently a Known bug in facebook App. For more information you can follow this link which has several posted threads
这篇关于消息没有在Facebook分享在使用的Android ACTION_SEND所示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!