I want to use the Facebook users Profile Picture in my Application.
I think I should use the following function, but I'm not sure if that's correct:
public function getImg() {
$img = file_get_contents('https://graph.facebook.com/'.getUser().'/picture?type=normal');
return $this->img;
}
My goal is to place the profile picture on top of another image.
I think I have to use something like this:
ImageCopy ( $picture , $source, 445, 160 , 0 , 0 , $width , $height );
To conclude... I want to use the profile picture of a user an add it on another picture, how can I do this ?