[英]Facebook - Invite friends in my website
I'm developing the facebook invite friends to my website. 我正在开发Facebook邀请朋友访问我的网站。 It's working fine but friends didn't get the notification.
一切正常,但朋友未收到通知。 I used the following code.
我用下面的代码。
<div onclick="FacebookInviteFriends();" /> Invite Facebook Friends </div>
<script>
FB.init({
appId : '1580474408872303',
cookie : true,
status : true,
xfbml : true
});
function FacebookInviteFriends() {
FB.ui({
method : 'apprequests',
message : 'My Description'
});
}
</script>
Once I click the "Invite Facebook Friends" div
, I will get the facebook login popup and showing the few friends. 单击“邀请Facebook朋友”
div
,我将获得facebook登录弹出窗口并显示几个朋友。 Once I search the friends name it display and I click the send button but friends didn't get the notification. 一旦我搜索了朋友的名字,它就会显示出来,然后单击“发送”按钮,但是朋友没有收到通知。 I attached the popup screen shot.
我附上了弹出屏幕截图。
and in this popup doesn't show the whole friends list. 并且在此弹出窗口中不会显示整个朋友列表。 Can anyone suggest what I did wrong?
谁能提出我做错了什么?
The method apprequests
is only available for "Games on Facebook", not all web games. 方法
apprequests
仅适用于“ Facebook上的游戏”,而不适用于所有网络游戏。
As per their documentation : 根据他们的文档 :
Game requests are available for Games on Facebook and for mobile games on iOS and Android.
游戏请求适用于Facebook上的游戏以及iOS和Android上的手机游戏。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.