Retweet post on appcation user's home


#1

I have created one application in twitter using ‘A’ account. I am using PHP + jQuery to get all twitter feed. Then i need to add retweet functionality. I am using https://api.twitter.com/1.1/statuses/retweet/344164846335569921.json

I have logged-in in browser using account ‘B’ and when i click on retweet it post that status on my account ‘A’. If in browser i have logged in with ‘B’ then it should be on ‘B’ home. Why it goes to account ‘A’. Please help.