我只是在编写一个测验脚本。因此,我想分享测验的结果而不是og元数据。
我知道可以使用旧的FB.ui feed action添加自定义名称、标题、描述和消息,而不是共享URL。例如:
FB.ui({
method: 'feed',
href: url,
name: name,
caption: title,
description: des,
message: message,
picture: img,
}, function(response){});
然而我认为这很快就会过时了?!
使用新的分享API是否也可能实现这一点?或者我可以使用自定义故事来实现吗?如何操作?我正在寻找类似于
FB.ui({
method: 'share',
href: url,
name: name,
caption: title,
description: des,
message: message,
picture: img,
}, function(response){});
但这不起作用:/ 它只获取href。其他所有内容都被忽略,无法预填:(
是否有任何最佳实践或Facebook推荐的方法来做到这一点?
API文档:https://developers.facebook.com/docs/sharing/reference/share-dialog
谢谢。我非常感谢您的帮助。