• Welcome to PHPVIBE Forums. Please log in.

[ Video Sharing CMS v4 ] Avatar from facebook login.

Started by vingar,

Previous topic - Next topic

0 Members and 3 Guests are viewing this topic.

vingarTopic starter

Hello, i have a problem,
When user change the facebook avatar in your profile.

The thumbs of avatar on site is blank, any solution?
Thanks
  •  

Marius P.

Hi,

PHPVibe links to the avatar, but in callback.php you can download and store the avatar for the user, however copying private pictures may raise legal issues (which is why we don't do that by default).
Happy with my help? Buy me a coffee.
Please, always use the search before opening a new topic! We're all here on our (limited) free time! Make sure you help yourself too!
  •  

vingarTopic starter

can you help me, i want download the picture in my server :D
if you want and possible send me code to private.
thanks Mario
  •  

Marius P.

callback.php

$user_profile["img"] = $avatarInfo->data->url;



is where the image from fb is grabbed.


There are several ways to download it, see which works for you


http://stackoverflow.com/questions/724391/saving-image-from-php-url


http://stackoverflow.com/questions/909374/copy-image-from-remote-server-over-http


Store it in uploads/ and change


$user_profile["img"] = uploads/{your image}.ext



That's all.
Happy with my help? Buy me a coffee.
Please, always use the search before opening a new topic! We're all here on our (limited) free time! Make sure you help yourself too!
  •  

vingarTopic starter

  •  

Similar topics (7)