Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/221.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
android中Facebook上的文本数据共享_Android_Android Intent_Share - Fatal编程技术网

android中Facebook上的文本数据共享

android中Facebook上的文本数据共享,android,android-intent,share,Android,Android Intent,Share,我想在Facebook wall.using ACTION_SEND上共享文本数据 Intent sendIntent = new Intent(); sendIntent.setAction(Intent.ACTION_SEND); sendIntent.putExtra(Intent.EXTRA_TEXT, "This is my text to send."); sendIntent.s

我想在Facebook wall.using 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墙的编辑框显示为空

Facebook应用程序强制执行此操作-如果您尝试使用预填充文本(put extra)共享某个内容,应用程序不知道该内容是由用户编写的还是由应用程序填写的,因此根据其策略,它不做任何假设,忽略该文本,并要求用户编写文本

,在

四、 应用程序集成点

  • [……]
  • 除非用户在工作流早期手动生成内容,否则不得预填充与以下产品关联的任何字段。:流故事(Facebook.streamPublish和FB.Connect.streamPublish的用户_消息参数,以及Stream.publish的消息参数)、照片(标题)、视频(说明)、注释(标题和内容)、链接(评论)和Jabber/XMPP