How to get facebook profile large square picture ?

后端 未结 2 1237
眼角桃花
眼角桃花 2021-02-04 01:56

Facebook profile picture is public available.
For example https://graph.facebook.com/oleg.dats/picture It\'s square but to small
To get larger picture https://graph.f

2条回答
  •  醉梦人生
    2021-02-04 02:38

    You will need to post process it yourself. The sizes are

    • square (50x50)
    • small (50 pixels wide, variable height)
    • normal (100 pixels wide, variable height), and
    • large (about 200 pixels wide, variable height)

    Announced as of Wednesday, August 22, 2012,

    You can query for alternate sizes via Graph API using width and height, for example

     https://graph.facebook.com/1207059/picture?width=121&height=100
    

    So in your case

    https://graph.facebook.com/oleg.dats/picture?width=200&height=200
    

    Or in FQL

    SELECT url, real_width, real_height FROM profile_pic WHERE id=100000896260238 AND width=200 AND height=200

    [Source - http://developers.facebook.com/blog/post/2012/08/22/platform-updates--operation-developer-love/]

提交回复
热议问题