【发布时间】:2014-03-31 07:11:09
【问题描述】:
我想在 Facebook 墙上分享文本数据。使用 ACTION_SEND。
Intent sendIntent = new Intent();
sendIntent.setAction(Intent.ACTION_SEND);
sendIntent.putExtra(Intent.EXTRA_TEXT, "This is my text to send.");
sendIntent.setType("text/plain");
startActivity(Intent.createChooser(sendIntent, "Share"));
文本在所有应用程序(Twitter、消息、电子邮件)上共享,但不在 Facebook 墙上。当我从弹出窗口单击 Facebook 图标时,Facebook 页面打开,但我要共享的文本数据在 Facebook 编辑框上不可见(发布到墙上)。Facebook 墙的空编辑框出现。
【问题讨论】:
标签: android android-intent share