How to get the Facebook user id using the access token

后端 未结 8 2377
深忆病人
深忆病人 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条回答
  •  -上瘾入骨i
    2020-11-28 03:07

    The easiest way is

    https://graph.facebook.com/me?fields=id&access_token="xxxxx"
    

    then you will get json response which contains only userid.

提交回复
热议问题