We have user search section in our site (http://www.esolz.co.in/studio_tweet) where a user can search other users from twitter with their name (Ex: user put Bryan Adams ans checked the check box ) it will search all user name with Bryan Adams.We are using twitter oath api.Please check the following code
if(!empty($_GET[‘oauth_verifier’]) && !empty($_SESSION[‘oauth_token’]) && !empty($_SESSION[‘oauth_token_secret’])){
} else {
header(‘Location: twitter_login.php’);
}
$twitteroauth = new TwitterOAuth(‘s7USZrvC2a68gjC6g0TKg’, ‘xxx’, $_SESSION[‘oauth_token’], $_SESSION[‘oauth_token_secret’]);
$access_token = $twitteroauth->getAccessToken($_GET[‘oauth_verifier’]);
$_SESSION[‘access_token’] = $access_token;
$user_search = $twitteroauth->get(‘users/search’,array(‘q’=>$_SESSION[‘usersearch’]));
It would help a lot if we get quick response.