how to retrieve images from facebook,linkedin,googleplus after successful login?

I connected to all three social login of Facebook,Google,LinkedIn,but my problem is I am getting user token and i retrieved firstanme lastname but not photo how can i retrieve it?

Best Answer

  • Fred_PinelFred_PinelMember
    Answer ✓
    You can try (not sure without context):
    $data->user->identity->photos
    which is an array of photos.
    So:
    $data->user->identity->photos[0]->value
    is the link to the first photo.
    $data->user->identity->photos[0]->size
    gives you an indication of the size of the first photo.

    These are the profile pictures.

Answers

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.