getting events from facebook page

前端 未结 1 2003
忘掉有多难
忘掉有多难 2021-01-03 17:30

So I need to get the events for a facebook page (in JSON format if possible). I\'m using iOS and I know how to implement the data after I get it but I just don\'t know how t

相关标签:
1条回答
  • 2021-01-03 18:09

    I got it.

    You don't need to make the user allow access to his/her account in order to get the access token.

    What I did was I went to my facebook developer page and created an app. It gave me an app ID and app secret. I used that in the following url to get the access_token:

    https://graph.facebook.com/oauth/access_token?client_id=APP_ID&client_secret=APP_SECRET&grant_type=client_credentials
    

    Then I took the result and added it to my graph API request string.

    0 讨论(0)
提交回复
热议问题