How to get large size profile picture in Facebook PHP SDK


Are you concerned about the profile picture size? at the time of implementing login with Facebook using PHP. We’ll show you the simple way to get large size profile picture in Facebook PHP SDK. Also, you can get the custom size image of Facebook profile.

Set the profile picture dimension by using the following line of code.

$userProfile $facebook->api('/me?fields=picture.width(400).height(400)'); 

You can set width and height of the profile picture as per your need. But Facebook doesn’t return the exact size, It returns the closest dimension picture available with them.

Leave a reply

Connect With CodexWorld