是否可以创建具有多个操作链接的墙贴?
我的代码仅适用于一个操作链接。带有两个操作链接的墙贴不会发送到 Facebook(没有错误消息)。
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) {});
I got a 来自脸书的回应 http://developers.facebook.com/bugs/196482347101715而你真的无法添加多个操作链接.
添加一个链接的正确代码是:
var publish = {
// ....
actions : {
name : 'Some Action Link!',
link : 'http://www.example.com'
}
};
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)