src/Asg/SimpleSocialAuth/Providers/Facebook/FacebookProvider.php
/**
     * @param string $callbackUrl ;
     * @throws SocialAuthException
     * @throws SocialAuthInvalidParams
     */
@param string $callbackUrl ;
@throws SocialAuthException
@throws SocialAuthInvalidParams
@param string $callbackUrl ; @throws SocialAuthException @throws SocialAuthInvalidParams
public function login($callbackUrl = '')
    {
        $callbackUrl = !empty($callbackUrl)?$callbackUrl:$this->getCallbackUrl();
        if ($callbackUrl == '' || $callbackUrl == null){
            throw new SocialAuthInvalidParams('Callback url cant be empty');
        }
        if ($this->fb) {
            $helper = $this->fb->getRedirectLoginHelper();
            $this->redirect($helper->getLoginUrl($callbackUrl, $this->options));
        }else{
            throw new SocialAuthException('Facebook instance is null');
        }
    }
public function login ( $ callbackUrl = '' ) { $ callbackUrl = ! empty ( $ callbackUrl ) ? $ callbackUrl : $ this -> getCallbackUrl ( ) ; if ( $ callbackUrl == '' || $ callbackUrl == null ) { throw new SocialAuthInvalidParams ( 'Callback url cant be empty' ) ; } if ( $ this -> fb ) { $ helper = $ this -> fb -> getRedirectLoginHelper ( ) ; $ this -> redirect ( $ helper -> getLoginUrl ( $ callbackUrl , $ this -> options ) ) ; } else { throw new SocialAuthException ( 'Facebook instance is null' ) ; } }
@param string $callbackUrl ;
 @throws SocialAuthException
 @throws SocialAuthInvalidParams
@param string $callbackUrl ; @throws SocialAuthException @throws SocialAuthInvalidParams