[英]How to open native Facebook app and determine the text a user should/could post
I know from here that when I put a fb://...
link on my website it opens the native Facebook App (on iPhone and even on Android). 我从这里知道,当我在网站上放置fb://...
链接时,它会打开本机Facebook应用程序(在iPhone上甚至在Android上)。
But how is it possible to put some parameters to this link? 但是如何在此链接中放置一些参数呢? I want to make a share button, with a text/title/image. 我要创建一个带有文本/标题/图像的共享按钮。 The user should be able to review it, but when he is lazy he should also be able just to press "Post it". 用户应该可以查看它,但是当他懒惰时,他也应该只可以按“发布”。
EDIT : My App is an webapp, it is just reachable through the browser (PC or mobile) or through an WebView of a native app (iPhone, WindowsPhone, Android). 编辑 :我的应用程序是一个Web应用程序,仅可通过浏览器(PC或移动设备)或本机应用程序的WebView(iPhone,WindowsPhone,Android)访问。
You should use the native share dialogs with the Facebook SDK. 您应该在Facebook SDK中使用本机共享对话框。
https://developers.facebook.com/blog/post/2013/07/11/four-reasons-to-upgrade-to-the-new-share-dialog-for-ios/ https://developers.facebook.com/blog/post/2013/07/11/four-reasons-to-upgrade-to-the-new-share-dialog-for-ios/
Here's the iOS documentation: https://developers.facebook.com/docs/ios/share-dialog/ 这是iOS文档: https : //developers.facebook.com/docs/ios/share-dialog/
Here's the Android documentation: https://developers.facebook.com/docs/android/share-dialog/ 这是Android文档: https : //developers.facebook.com/docs/android/share-dialog/
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.