【问题标题】:Message is not Shown in Facebook share using ACTION_SEND in android使用 android 中的 ACTION_SEND 在 Facebook 分享中未显示消息
【发布时间】:2014-07-03 04:52:25
【问题描述】:

我想使用 android 在 Facebook 中使用 ACTION_SEND 共享自定义文本,我正在使用以下代码,它只是打开一个 Facebook 帖子对话框。短信不可见

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);

【问题讨论】:

    标签: android


    【解决方案1】:

    这取决于 Facebook 应用程序 他们是否通过 intent 接受文本,我知道他们接受图像和位图文件,但对于文本他们不接受。我已经在我自己的一个项目中尝试过这个,但无法通过意图提供文本。

    The Facebook application does not handle either the EXTRA_SUBJECT or EXTRA_TEXT fields.
    

    这显然是 facebook 应用程序中的一个已知错误。 欲了解更多信息,您可以关注此link which has several posted threads

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多