Facebook Graph high resolution photos

前端 未结 7 1845
耶瑟儿~
耶瑟儿~ 2021-02-15 09:40

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 09:42

    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.

提交回复
热议问题