在通过open graph发布操作时,我得到了以下错误。我有大约10个完美发布的动作。只有这一个给了我错误:
code: 100
"At least one reference object must be specified"下面是我的发布代码:
FB.api(
'/me/'+fAction,
'post',
sObject,
function(response)
{
if (!response || response.error)
{
for (var prop in response)
{
console.log(response[prop]);
callbackToFlash(0);
}
} else
{
console.log('success'+object);
callbackToFlash(1);
}
}
);对象和操作对存在于我的应用程序中,我已经验证了这一点。在网上搜索后,这似乎是由于facebook的错误造成的。facebook已将其标记为已关闭。
有什么办法解决这个问题吗?
发布于 2015-07-29 21:37:50
使用此代码
var obj = {"og:title": title, "og:image": imgurl,"og:description": des};
FB.ui({
method: 'share_open_graph',
action_type: 'og.likes',
action_properties: JSON.stringify({
object:obj
})
}, function (response) {
// Debug response (optional)
console.log(response);
});https://stackoverflow.com/questions/15437146
复制相似问题