Facebook图形应用程序请求

时间:2011-07-14 10:11:46

标签: facebook-graph-api

我不知道为什么,但即使app令牌有效,https://graph.facebook.com/132333806850364?access_token=218237124854683|VLsQV-ec2paQpq5hVMFFjtnk9_w也会返回false。邀请已正确发送,我也收到邀请。

   //Single user REquest
       function sendRequestSingle(c_id,page_id,sendto,from,g_id) {  
        FB.ui({
            method: 'apprequests',
            to: sendto,
            message: 'Win Mega Prizes!',
            title: 'Enter in this contest!',
            data: c_id+','+page_id+','+g_id
        },
        function (response) {   
           if (response && response.request_ids) {
               var requests = response.request_ids;
                    window.location.href = "http://www.serverhere.com/contest/handle_invitations.php?invitations="+requests+"&contest_id="+c_id+"&page_id="+page_id+"&user="+from+"&g_id="+g_id+"&sendto="+sendto+"&single=1";         

            } else {
                alert('canceled');
            }
        });
        return false;
    }

0 个答案:

没有答案