[英]Facebook share deep linking - Javascript
Based on http://wiki.akosma.com/IPhone_URL_Schemes#Facebook and What are all the custom URL schemes supported by the Facebook iPhone app?基于http://wiki.akosma.com/IPhone_URL_Schemes#Facebook和Facebook iPhone 应用程序支持的所有自定义 URL 方案是什么?
I want to let the user sharing via Facebook app.我想让用户通过 Facebook 应用分享。 (If the application not installed, I will use javascript like here .
(如果应用程序没有安装,我会像这里一样使用 javascript。
I guess I have to use fb://post/%@
but I don't know how.我想我必须使用
fb://post/%@
但我不知道如何使用。
ps Why Facebook not publish all of this? ps 为什么 Facebook 不发布所有这些? At least I have not found..
至少我没发现。。
My JavaScript code:我的 JavaScript 代码:
FB.ui({
method: 'feed',
name: name,
description: message,
link: location.href,
picture: 'PIC_URL'
});
I am looking for a similar code in deep linking.我正在寻找深度链接中的类似代码。
Facebook does has a dedicated page for deep linking: Deep Linking with iOS Facebook 有专门的深度链接页面: Deep Linking with iOS
Unfortunately, I can't find deep link URIs that prepares or submit a message.不幸的是,我找不到准备或提交消息的深层链接 URI。
Honestly, I think using the FB.ui method is the best way, and I suggest sticking to that.老实说,我认为使用 FB.ui 方法是最好的方法,我建议坚持使用。 Alternatively, you could look into other sharing tools such as Shareaholic and AddThis .
或者,您可以查看其他共享工具,例如Shareaholic和AddThis 。
If you're having trouble finding schemes, I often refer to gotschemes.com .如果您在查找方案时遇到困难,我经常参考gotschemes.com 。 This site is a huge database containing information about schemes for many different apps.
该站点是一个巨大的数据库,其中包含有关许多不同应用程序方案的信息。 But still, no traces of Facebook allowing you to set messages.
但是,仍然没有 Facebook 允许您设置消息的痕迹。
On a side note, the script you linked to is a primitive method.附带说明一下,您链接到的脚本是一种原始方法。 I've bundled several best practices in a little open-source project I intend to keep up-to-date with better ways to detect whether an app is installed or not.
我在一个小的开源项目中捆绑了几个最佳实践,我打算通过更好的方法来检测是否安装了应用程序。 In case you decide to implement a deep link.
如果您决定实施深层链接。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.