Retweet post on appcation user's home


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

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.