使用Android共享意图在Facebook中共享文本

HCa*_*sko 5 java android facebook android-intent facebook-android-sdk

可能重复:
Facebook的Android共享意图

我正在尝试在Android中分享一些文本和一个链接Intent in Android,但它不起作用,这是我的代码

Intent sendIntent = new Intent();
sendIntent.setAction(Intent.ACTION_SEND);
sendIntent.setType("text/plain");
sendIntent.putExtra(Intent.EXTRA_TEXT, 
"some text here to share" + "https://maps.google.com/maps?saddr=-33.4429,+-70.6539");

startActivity(Intent.createChooser(sendIntent, getResources().getText(R.string.d_title)));
Run Code Online (Sandbox Code Playgroud)

但只是共享链接,文本丢失...在Twitter它工作正常,但在Facebook没有.请帮助:谢谢

Cod*_*nor -3

--此答案已更改--

根据OP,这实际上是不可能的。他找到了一个链接(他在下面评论了它),但又在这里: https: //developers.facebook.com/bugs/332619626816423

显然,由于隐私政策,预先填写用户的消息是(或当时)不允许的。

  • 因为这实际上不起作用..为什么选择它作为正确答案? (8认同)
  • 谢谢,但结果是一样的,我发现这个,https://developers.facebook.com/bugs/332619626816423 facebook API不支持为用户预填充消息,因为他的隐私政策 (3认同)