Android: How to get facebook user image using access_token

后端 未结 3 682
Happy的楠姐
Happy的楠姐 2021-02-09 19:37

I am working on an application that need to login with facebook. This is the first time when i am integrating Fb API in my application. I have start from Getting St

3条回答
  •  说谎
    说谎 (楼主)
    2021-02-09 19:38

    So after messing around with the facebook graph apis for a bit, I have found that you can get the profile pic in two ways:

    1. Use this as the profile pic url by substituting the user id: https://graph.facebook.com/USER_ID/picture?return_ssl_resources=1

    2. Using the access token: https://graph.facebook.com/me/picture?access_token=ACCESS_TOKEN

    Hope this is helpful.

提交回复
热议问题