使用URL方案在Facebook应用中分享

时间:2016-04-13 13:45:44

标签: android html ios facebook facebook-javascript-sdk

我正在尝试创建shares a text through the Facebook app using URL scheme的HTML链接。此链接将通过移动设备,Android和iOS进行访问。

<a href="fb://publish/?text=http://google.com">Share</a>

当我在Android手机上点击此链接时,Facebook应用程序会打开,但什么都不做!这有什么不对?

1 个答案:

答案 0 :(得分:2)

Facebook URL方案发生了很大变化,其功能通常没有很好的记录。试图将它们编入目录 What are all the custom URL schemes supported by the Facebook iPhone app?

如果您可以在浏览器中打开对话框,则可以使用“共享”对话框:

https://developers.facebook.com/docs/sharing/reference/share-dialog