Php Facebook iframe图形应用程序请求

Php Facebook iframe图形应用程序请求,php,javascript,json,facebook-graph-api,Php,Javascript,Json,Facebook Graph Api,上述代码适用于多用户,但即使在添加到字段后也不适用于单用户, 我更改了代码并使用了字段 方法:'apprequests', 收件人:sendto sendto有我要向其发送应用程序请求的用户的uid,我确实获得了邀请id,但 function sendRequest(c_id,page_id,user,g_id) { // alert(c_id); // alert(page_id); FB.ui({ method: '

上述代码适用于多用户,但即使在添加到字段后也不适用于单用户, 我更改了代码并使用了字段

方法:'apprequests',
收件人:sendto

sendto
有我要向其发送应用程序请求的用户的uid,我确实获得了邀请id,但

  function sendRequest(c_id,page_id,user,g_id) {
        // alert(c_id);
        // alert(page_id);
        FB.ui({
            method: 'apprequests',
            message: 'Custom messae!',
            title: 'Enter in this contest!',

            data: +id+','+puid+','+n_id,
        },
        function (response) {
           if (response && response.request_ids) {
               var requests = response.request_ids.join(',');
                    window.location.href = "mysiteurlhere";         

            } else {
                alert('canceled');
            }
        });
        return false;
    }
我是否遗漏了一些多用户正在尽可能顺利地工作的内容

$request_content = json_decode(file_get_contents("https://graph.facebook.com/$request_id?$app_token"), TRUE);
// returns false when i access the url