Retrieve Facebook profile picture from the user

Hi,

I am able to retrieve the following information from the user: firstname, lastname, email. I would like to retrieve their facebook profile picture as well? How to do retrieve it?

Code i am using now:

$firstname = $data->user->identities[0]->name->givenName;
$lastname = $data->user->identities[0]->name->familyName;
$email = $data->user->identities[0]->emails[0]->value;

Help me out.

Answers

  • Claude_SchlesserClaude_SchlesserAdministratorOneAll Team
    Hello,

    you can use

    $thumbnail = $data->user->identities[0]->thumbnailUrl; $picture = $data->user->identities[0]->pictureUrl;

    Regards,

Welcome!

Please sign in to your OneAll account to ask a new question or to contribute to the discussions.

Please click on the link below to connect to the forum with your OneAll account.