Hello Guys,
If you are working on Facebook App and want to fetch user profile picture in a specific dimension. Like I want to fetch my profile picture in 3 dimension sizes 50*50, 150*200, 300*500.
For this please follow the below example:
$fbUserId = '10153657157347224';
$width = 50;
$height = 50;
$url = "https://graph.facebook.com/".$fbUserId."/picture?width=".$width."&height=".$height;
$width = 150;
$height = 200;
$url = "https://graph.facebook.com/".$fbUserId."/picture?width=".$width."&height=".$height;
$width = 300;
$height = 500;
$url = "https://graph.facebook.com/".$fbUserId."/picture?width=".$width."&height=".$height;
When you execute this URL in facebook app or CURL or direct on your browser you will get profile picture in the specific dimention
0 Comment(s)