function __construct($api = "facebook", $url = "https://graph.facebook.com/oauth") { $this->url = array('authorize' => "https://www.facebook.com/dialog/oauth", 'access_token' => $url . "/access_token", 'refresh_token' => $url . "/access_token"); // FIX: duplicate the appId so it can be used by the parent __construct $GLOBALS['config']['facebook']['key'] = $GLOBALS['config']['facebook']['appId']; $this->redirect_uri = url("/oauth/api/fb"); parent::__construct($api, $url); }
function __construct($api = "google", $url = "https://accounts.google.com/o/oauth2") { $this->url = array('authorize' => $url . "/auth", 'access_token' => $url . "/token", 'refresh_token' => $url . "/token"); parent::__construct($api, $url); }