Getting all my events via Facebook iOS SDK

前端 未结 5 1332
囚心锁ツ
囚心锁ツ 2021-02-19 07:13

In my iOS app, I get an access token using the following code:

    [self.facebook authorize:[NSArray arrayWithObjects:@\"user_events\",
@\"friends_events\",  nil         


        
5条回答
  •  甜味超标
    2021-02-19 07:56

    I think you may get events by fql query. You need to try this.

    Also see this How-To: Use the Graph API to Manage Events.

    You will need to HTTP Get the following from the Graph API:

    fql?q=SELECT uid,eid,rsvp_status FROM event_member WHERE uid = me()

    You can get back all statuses from that call.

    {
      "data": [
        {
          "uid": "723020003",
          "eid": "19935786340002",
          "rsvp_status": "not_replied"
        },
        {
          "uid": "723020003",
          "eid": "234524000290351",
          "rsvp_status": "attending"
        },
        {
          "uid": "723020003",
          "eid": "210091000081240",
          "rsvp_status": "declined"
        },
        {
          "uid": "723020003",
          "eid": "210091000341240",
          "rsvp_status": "unsure"
        }
      ]
    }
    

提交回复
热议问题