单个墙柱中的更多动作链接 [英] More action links in single wallpost
本文介绍了单个墙柱中的更多动作链接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否可以创建具有多个操作链接的wallpost?
Is it possible to create wallpost with more than one action link?
我的代码仅适用于一个操作链接。具有两个动作链接的Wallpost未发送到Facebook(无错误消息)。
My code works only with one action link. Wallpost with two action links is not sent to Facebook (no error message).
var publish = {
method : 'feed',
name : name,
link : link,
picture : picture,
caption : caption,
description : description,
message : message,
actions : [{
name : 'Link 1',
link : 'http://www.example.com'
},{
name : 'Link 2',
link : 'http://www.example2.com'
}]
};
FB.api('/me/feed', 'POST', publish, function(response) {});
推荐答案
我有一个来自Facebook的回复,你真的无法添加多个动作链接。
添加一个链接的正确代码是:
Correct code for adding one link is:
var publish = {
// ....
actions : {
name : 'Some Action Link!',
link : 'http://www.example.com'
}
};
这篇关于单个墙柱中的更多动作链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文