Facebook Graph high resolution photos

前端 未结 7 1843
耶瑟儿~
耶瑟儿~ 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:58

    me/home - graph api has some a field called "object_id" and "type". If the type is "photo" then you will have this object_id value. By Using this object id and make another graph api call then you will get an objecty called "images". This object has several options ( different sizes ).

    OR

    Use object id like below and get a album sized version of a photo. and the supported types for this call are "thumbnail, normal, album".

    https://graph.facebook.com/{object-id-from-feed}/picture?type=normal 
    

    and also checkout this link under Examples of Supported Objects section.

提交回复
热议问题