我想在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墙的空白编辑框 .
1 回答
Facebook应用程序强制执行此操作 - 如果您尝试与预先填写的文本共享内容(添加额外内容),应用程序不知道它是由用户编写还是由应用程序填写,因此根据其政策,它不会假设,忽略该文本,并要求用户编写文本 .
Check their privacy policy,in