我正在使用新的 javascript SDK 使用应用请求对话框向朋友发送应用请求。我使用的代码如下:-
FB.ui({
method : 'apprequests',
display : 'iframe',
to : '',
data : '',
title : 'Invite your friends to use Connect.',
message : 'Hi, I am a friend of this site and I think you should join me! Register now to join our friendly group.',
max_recipients : '5',
},
function(response) {
if (response) {
alert('Post was published.');
}
else
{
alert('Post was not published.');
}
});
现在,如果我使用此代码发布请求,“Apps and Ganmes”旁边显示的计数确实会增加,但是当我单击“Apps and Games”查看从我的站点发送的请求时,它不会显示在名单。此外,在此功能的 sdk 中,提到通过此代码发送应用程序请求也会导致通知,但这也不起作用。
但是,此代码用于在未激活 oauth2 时工作。所以,如果有人有这个问题的解决方案,请告诉我,因为我需要尽早修复它。