src/libs/FacebookService.php
public function setAccessTokenFromProfile(FacebookProfile $profile)
    {
        $this->app['facebook']->setAccessToken($profile->access_token);
        $this->profile = $profile;

        return $this;
    }
public function setAccessTokenFromProfile(FacebookProfile $profile)
    {
        $this->app['facebook']->setAccessToken($profile->access_token);
        $this->profile = $profile;

        return $this;
    }
public function setAccessTokenFromProfile ( FacebookProfile $ profile ) { $ this -> app [ 'facebook' ] -> setAccessToken ( $ profile -> access_token ) ; $ this -> profile = $ profile ; return $ this ; }
Sets the appropriate API access token using
a given profile.

@param FacebookProfile $profile
Sets the appropriate API access token using a given profile .