How to get the Facebook user id using the access token

后端 未结 8 2374
深忆病人
深忆病人 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:53

    You just have to hit another Graph API:

    https://graph.facebook.com/me?access_token={access-token}
    

    It will give your e-mail Id and user Id (for Facebook) also.

提交回复
热议问题