当我发送请求时,我需要找到用户是否点击了send
或cancel
。现在我有这个代码:
FB.init({
appId: 'xxxxxxxxxxxxxx',
cookie: true,
status: true,
xfbml: true,
});
FB.ui({
method: 'apprequests',
message: 'click!',
to: 'xxxxxxxxxx'
});
答案 0 :(得分:0)
使用回调函数捕获响应。
FB.ui({
method: 'apprequests',
message: 'click!',
to: 'xxxxxxxxxx'
},function (request, to) {
if (request && to) {
// User completed the request to at least 1 user
}else{
// User did not complete the request
}
});