Facebook Graph high resolution photos

前端 未结 7 2510
余生分开走
余生分开走 2021-02-15 09:18

I\'m doing a Facebook Graph API call for \"me/home\" to get the user\'s news feed. As everyone knows, the URL you get in the \"picture\" field is a low resolution photo that doe

7条回答
  •  情书的邮戳
    2021-02-15 10:07

    Its a late response but but I have found a better approach

    If you have got a address by using graph api like this

    https://fbcdn-sphotos-e-a.akamaihd.net/hphotos-ak-xaf1/t1.0-9/s130x130/10501892_701590943222768_782659935906208443_n.png
    

    then just replace 130x130 to a valid resolution

    https://fbcdn-sphotos-e-a.akamaihd.net/hphotos-ak-xaf1/t1.0-9/s480x480/10501892_701590943222768_782659935906208443_n.png
    

    and you will be able to get high resolution image

    Valid image resolution can be found from this example call

    http://graph.facebook.com/701586786556517

    701586786556517 = object_id from Facebook graph API call

    Hope this helps someone.

提交回复
热议问题