How to post statuses for users whos allow it for my application


On my website, i want to allow for users, who is authorized with twitter, to post review on their own wall(page) in twitter, with my application.
I can do it for my page like this

    $connection = new Twitter_TwitterOAuth(



$connection->post(‘statuses/update’, array(‘status’ => $data[‘text’] . $data[‘name’] . “.” . chr(13) . chr(10) . "More details " . $data[‘link’] .’?review=’. $data[‘id’]));

So what i need to do to post the same for another accounts ? i need to set account(where i want to post status with application) ID or i need to set other


with token and token_secret that i receive when user login with my application ?

Thanks for help.