Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jsf-2/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Facebook 获取用户生日HTTP请求_Facebook_Facebook Graph Api_Meteor - Fatal编程技术网

Facebook 获取用户生日HTTP请求

Facebook 获取用户生日HTTP请求,facebook,facebook-graph-api,meteor,Facebook,Facebook Graph Api,Meteor,我试图在我的应用程序的服务器端获得生日 我已经拥有登录请求的[“用户生日”]权限 但现在在服务器上,我想我需要这样做 userBirtdhay = "https://graph.facebook.com/me?fields=birthday&" + user.services.facebook.id; 但这会导致类似的结果 https://graph.facebook.com/me?fields=birthday&10146450841965723dffsadf 如果你转到u

我试图在我的应用程序的服务器端获得生日

我已经拥有登录请求的
[“用户生日”]
权限

但现在在服务器上,我想我需要这样做

userBirtdhay = "https://graph.facebook.com/me?fields=birthday&" + user.services.facebook.id;
但这会导致类似的结果

https://graph.facebook.com/me?fields=birthday&10146450841965723dffsadf
如果你转到url,你会得到一个

{
   "error": {
      "message": "An active access token must be used to query information about the current user.",
      "type": "OAuthException",
      "code": 2500
   }
}
经过一些研究,url上的
me
空间应该是我的accessToken,所以我尝试使用

https://graph.facebook.com/longAccesToken?fields=birthday&
但现在它又回来了

"message": "(#803) Some of the aliases you requested do not exist: 
这是正确的:

https://graph.facebook.com/me?fields=birthday&access_token=[your-user-token]
您应该开始阅读关于访问令牌和API端点的Facebook文档。您可以使用