public function getLoginUrl($redirect_uri, $scopes = array("read_public"), $response_type = "code")
    {
        $queryparams = array(
            "response_type"     => $response_type,
            "redirect_uri"      => $redirect_uri,
            "client_id"         => $this->client_id,
            "client_secret"     => $this->client_secret,
            "scope"             => implode(",", $scopes),
            "state"             => $this->state
        );

        // Build url and return it
        return sprintf("%s?%s", self::AUTH_HOST, http_build_query($queryparams));
    }
public function getLoginUrl($redirect_uri, $scopes = array("read_public"), $response_type = "code")
    {
        $queryparams = array(
            "response_type"     => $response_type,
            "redirect_uri"      => $redirect_uri,
            "client_id"         => $this->client_id,
            "client_secret"     => $this->client_secret,
            "scope"             => implode(",", $scopes),
            "state"             => $this->state
        );

        // Build url and return it
        return sprintf("%s?%s", self::AUTH_HOST, http_build_query($queryparams));
    }
public function getLoginUrl ( $ redirect_uri , $ scopes = array ( "read_public" ) , $ response_type = "code" ) { $ queryparams = array ( "response_type" => $ response_type , "redirect_uri" => $ redirect_uri , "client_id" => $ this -> client_id , "client_secret" => $ this -> client_secret , "scope" => implode ( "," , $ scopes ) , "state" => $ this -> state ) ; // Build url and return it return sprintf ( "%s?%s" , self :: AUTH_HOST , http_build_query ( $ queryparams ) ) ; }
Returns the login url

@access public
@param  array    $scopes
@param  string   $redirect_uri
@return string
Returns the login url