How do I use verify credentials?


#1

In my PHP this is what I have…

require_once(‘twitteroauth.php’);
$oTweet = new TwitterOAuth($sConsumerKey, $sConsumerSecret, $user->user_info[‘oauth_token’], $user->user_info[‘oauth_secret’]);
$credentials = $oTweet->get(“account/verify_credentials”);
if($credentials)
{
$oTweet->post(‘statuses/update’, array(‘status’ => $tweetmessage));
}
else
{
Delete my local data because the user revoked access, or something else happened… whatever.
}

Or is there another way, my main thing is… if someone revokes acess I want to be able for the site to delete my local database information about the users tokens.


#2

#3