public function __construct($config) { $system = array( 'requires' => array( 'id' => true, 'secret' => true, 'access_token' => false, 'callback' => true, 'scope' => false, ), 'legs' => array( 'authorize' => 'https://graph.facebook.com/oauth/authorize?client_id=$info[id]&redirect_uri=$info[callback]&scope=$info[scope]', 'callback' => array( 'code', ), 'access_token' => 'https://graph.facebook.com/oauth/access_token?client_id=$info[id]&redirect_uri=$info[callback]&client_secret=$info[secret]&code=$info[code]', ), 'version' => '2.0', ); parent::__construct($system,$config); $this->default_parse_mode = 'fb_json'; }
public function __construct($config) { $system = array( 'requires' => array( 'id' => true, 'secret' => false, 'access_token' => false, 'acess_token_secret' => false, 'private_key' => false, 'public_key' => false, 'callback' => true, 'scope' => true, ), 'legs' => array( 'request_token' => 'https://www.google.com/accounts/OAuthGetRequestToken?scope=$info[scope]', 'authorize' => 'https://www.google.com/accounts/OAuthAuthorizeToken?oauth_token=$info[request_token]', 'access_token' => 'https://www.google.com/accounts/OAuthGetAccessToken', ), 'use_auth_header' => true, 'version' => '1.0', ); parent::__construct($system,$config); $this->default_parse_mode = 'xml'; }
public function __construct($config) { $system = array( 'requires' => array( 'id' => true, 'secret' => true, 'access_token' => false, 'access_token_secret' => false, 'private_key' => false, 'public_key' => false, 'callback' => false, ), 'legs' => array( 'request_token' => 'http://twitter.com/oauth/request_token', //'authorize' => 'http://twitter.com/oauth/authorize?oauth_token=$info[request_token]', 'authorize' => 'http://twitter.com/oauth/authenticate?oauth_token=$info[request_token]', //use this to make the process as fast as possible 'access_token' => 'http://twitter.com/oauth/access_token', ), 'use_auth_header' => false, 'version' => '1.0', ); parent::__construct($system,$config); $this->default_parse_mode = 'xml'; }