end_session do not logout my account...Why?


#1

Hi, i 'm working with Social Engine and Twitter API. However the end_session is not working to log the user out.
$twitterTable = Engine_Api::_()->getDbtable(‘twitter’, ‘user’);
$twitter = $twitterTable->getApi();
$twitterOauth = $twitterTable->getOauth();
if( $twitter && $twitterOauth ) {
try {
$result = $accountInfo = $twitter->account->end_session();
} catch( Exception $e ) {
// Silence
echo $e;die();
}
}


#2

anyone face the same problem as mine?? end_session do not logout user from twitter