FB.ui({
method: 'apprequests',
title: 'abc!',
to: friendID,
message: 'I play abc! Can you beat me?',
},fbCallback);
这在javascript上运行得很好但是这些东西是如何在php中实现的。我试过了 -
<?php
$access_token = $facebook->getAccessToken();
$response = $facebook->api(
'/'.$fid.'/apprequests',
'POST', array(
'title' => 'Musical Quiz!',
'message' => 'I just play musical quiz! Can you beat me?.',
'access_token' => $access_token
));
?>
但它只请求那些已玩过该游戏的用户。有什么办法,我可以通过它邀请我的任何Facebook朋友玩吗?