php - Facebook Graph Api: How do I retrieve a large image from a groups feed? -
when querying feed groups id can retrieve information fields picture , full_picture. after parsing data using json , php output of full_picture image small.
here data im retrieving
this use show data full_picture , picture
if (isset($data->full_picture)) echo "<img src=\"$data->full_picture?\" /><br><br>"; if (isset($data->picture)) echo "<img src=\"$data->picture\" /><br><br>";
here output
https://fbexternal-a.akamaihd.net/safe_image.php?d=aqbvmhfsrd2l-8ru&url=https%3a%2f%2ffbcdn-photos-e-a.akamaihd.net%2fhphotos-ak-ash3%2f935434_10151639263649134_680895879_s.jpg https://fbcdn-photos-e-a.akamaihd.net/hphotos-ak-ash3/935434_10151639263649134_680895879_s.jpg
however have noticed if can end url in browser manually _s.jpg _n.jpg, displays full size.
there must way output full size graph? have tried using facebook documentation , can find this not work trying :/
use str_replace function right before output image.
$data->full_picture = str_replace("_s.jpg","_n.jpg",$data->full_picture);
Comments
Post a Comment