Facebook Graph API Change: Picture type (size) no longer working?

前端 未结 3 1803
梦如初夏
梦如初夏 2020-12-19 06:17

According to Facebook\'s Graph API documentation (here), you can access various sizes of a user\'s profile picture through URLs such as:

https://graph.facebo         


        
3条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-19 06:45

    You must request the API with the field_expansion syntax

    These api requests works :

    $results = $facebook->api('/me', array('fields' => 'picture.height(300).width(300)'));

    $results = $facebook->api('/me', array('fields' => 'picture.type(large)'));

提交回复
热议问题