How to get the Facebook user id using the access token

后端 未结 8 2398
深忆病人
深忆病人 2020-11-28 02:19

I have a Facebook desktop application and am using the Graph API. I am able to get the access token, but after that is done - I don\'t know how to get the user\'s ID.

<
8条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-11-28 02:56

    If you want to use Graph API to get current user ID then just send a request to:

    https://graph.facebook.com/me?access_token=...
    

提交回复
热议问题