2016-05-23 64 views
0

我正在使用Facebook SDK与sharecontent创建sharedialog。但是,我应该如何在共享对话框中显示可编辑的文本。我能够显示链接和所有。我只是不知道如何设置用户可以编辑的自定义文本。在Facebook分享对话框中显示可编辑文本

ShareLinkContent content = new ShareLinkContent.Builder() 
           .setContentTitle("App Name") 
           .setContentDescription("Hi!! This is app") 
           .setContentUrl(Uri.parse("http://www.fsdfvdsf.com")) 
           .build(); 

         shareDialog.show(content); 

回答

0

的Facebook SDK不允许添加可编辑的文本

0

不要充液说明,评论,消息,或者提供内容的人并没有创造职位的用户信息参数,甚至如果该人可以在分享前编辑或删除内容。您可以使用我们的“分享对话”在帖子中预先填写单个主题标签,但不要预先填写任何人未通过API创建的内容。

参考:https://developers.facebook.com/policy/

+0

它只是一个建议?可以做到吗? –

+0

如果我们能够如何做到这一点,fb审查小组将不会允许我们提交。 – lal

0

Facebook will not allow you to Share any static text you want.

That's why Facebook have provide it's own Share Dialog to post any text on facebook.

It will take image **OR** URL as static but not text.

So better for Facebook share only you use Facebook Share Dialog.

The thing is, if you put a URL in the EXTRA_TEXT field, it does work. It's like they're intentionally stripping out any text.

对于Share Feed检查here

相关问题