• Welcome to WooUSEFUL by PHPVIBE . Please log in.

[ Video Sharing CMS v4 ] Avatar from facebook login.

Started by vingar,

Previous topic - Next topic

0 Members and 1 Guest 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

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).
If this helped, consider buying me a coffee.
20 years coding, tweaking, building in PHP. Still creating!
  •  

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

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.
If this helped, consider buying me a coffee.
20 years coding, tweaking, building in PHP. Still creating!
  •  

vingarTopic starter

  •  

Similar topics (7)