当我尝试使用JS FB.api([...]执行操作时,我得到了No callback passed to the ApiClient [...],我可以在哪里设置这个回调?
发布于 2012-07-25 05:37:57
只需在API调用中添加一个回调函数:
FB.api(
'/me/[YOUR_APP_NAMESPACE]:[YOUR_ACTION]',
'post',
{ recipe: '[LINK_TO_YOUR_OBJECT]' },
function(response) {
if (!response || response.error) {
alert('Error occured');
}
else {
alert('Action was successful! Action ID: ' + response.id)
}
}
);https://stackoverflow.com/questions/11632280
复制相似问题