Facebook Graph high resolution photos

前端 未结 7 2511
余生分开走
余生分开走 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

    All you need to do is (Graph API):

    http://graph.facebook.com/me?fields=picture.height(961) 
    // all any height which u want
    

    or (for other user)

    http://graph.facebook.com/{user_id}?fields=picture.height(961) 
    // replace {user_id} with the user id you want
    

    UPDATE :

    Since Facebook API will keep updating, This solution may be deprecated. This workaround solution might not work in future.

    You may also need Access Token to execute this endpoint.

提交回复
热议问题