facebook oauth, no picture with basic permissions

后端 未结 5 1469
耶瑟儿~
耶瑟儿~ 2020-12-25 14:33

I\'m using oauth to log facebook users in to my app. I\'m testing with my FB account and with the basic permissions scope. Facebook docs say that I should be able to get \

5条回答
  •  梦毁少年i
    2020-12-25 15:03

    You can derive the profile photo URL directly from the basic standard OAuth info returned from facebook as Josh Nankin noted, BUT with a clarification.

    You can still use the user's ID returned to request the photo, for example:

    https://graph.facebook.com/914431778578699/picture?type=large

    is the same as

    https://graph.facebook.com/dark.eye.1/picture?type=large

    This way only one request must be made, because you can interpolate the photo URL as you store it in the DB.

提交回复
热议问题