public function parseFb($raw_profile)
    {
        $profile = $raw_profile;
        $profile->avatar = sprintf('http://graph.facebook.com/%s/picture', $profile->id);

        return (array) $profile;
    }
public function parseFb($raw_profile)
    {
        $profile = $raw_profile;
        $profile->avatar = sprintf('http://graph.facebook.com/%s/picture', $profile->id);

        return (array) $profile;
    }
public function parseFb ( $ raw_profile ) { $ profile = $ raw_profile ; $ profile -> avatar = sprintf ( 'http://graph.facebook.com/%s/picture' , $ profile -> id ) ; return ( array ) $ profile ; }
Parse a Facebook profile.

@param object $raw_profile

@return array
Parse a Facebook profile .