[Solved] How to get a Facebook user’s profile picture in php


To show image in page

<img src="https://graph.facebook.com/{{fid}}/picture">

To save

$image = file_get_contents('https://graph.facebook.com/'.$fid.'/picture?type=large');
$dir = dirname(__file__).'/avatar/'.$fid.'.jpg';
file_put_contents($dir, $image);

Facebook Graph API

http://graph.facebook.com/abdulla.nilam/picture

1

solved How to get a Facebook user’s profile picture in php