Events 如何在Facebook中使用Oauth获取用户事件

Events 如何在Facebook中使用Oauth获取用户事件,events,graph,facebook,Events,Graph,Facebook,我正在尝试从facebook获取用户事件,但我对该请求有一些问题。我可以访问他们的配置文件映像和UID,但由于某些原因,当我尝试访问这些事件时,会出现以下错误: { "error": { "type": "QueryParseException", "message": "An active access token must be used to query information about the current user." } } 我有一个活动的访

我正在尝试从facebook获取用户事件,但我对该请求有一些问题。我可以访问他们的配置文件映像和UID,但由于某些原因,当我尝试访问这些事件时,会出现以下错误:

{
   "error": {
      "type": "QueryParseException",
      "message": "An active access token must be used to query information about the current user."
   }
}
我有一个活动的访问令牌,这是我用来访问UID和配置文件pic的,但由于某些原因,事件没有显示出来

这是我的电话:

<a href=\"http://graph.facebook.com/me/$cookie['access_token']/events\">events</a>

我认为您的呼叫url应该如下所示:

<fb:login-button perms="user_events"></fb:login-button>
http://graph.facebook.com/me/events?access_token=[Your oAuth token]
http://graph.facebook.com/me/events?access_token=[Your oAuth token]