public static function getAuthorizeURL($redirect_uri, $response_type = 'code', $wap = false) { $params = array('client_id' => self::$client_id, 'redirect_uri' => $redirect_uri, 'response_type' => $response_type, 'wap' => $type); return self::$authorizeURL . '?' . http_build_query($params); }
function ilost_get_fanauthorize() { $o = new OAuth(fan_akey, fan_skey); $keys = $o->getRequestToken(); $aurl = $o->getAuthorizeURL($keys['oauth_token'], false, fan_callback); $_SESSION['temp'] = $keys; return $aurl; }