Android, Twitter, 'FOLLOW US'

无人久伴 提交于 2019-11-28 05:30:51

问题


I am building an android application and I am stuck at one place. I have integrated Twitter in my app using twitter4j, signpost apis. I am successful in writing code for putting text in user profile but I also want the user to follow my app when they click 'follow us on twitter' button.

Can anybody give me reference or guidance of writing such code?


回答1:


What you are probably looking for is createFriendship()

You can see how it is used here

2016 Edit: Google code svn is broken and twitter 4j has moved http://twitter4j.org/en/api-support.html



来源:https://stackoverflow.com/questions/7752387/android-twitter-follow-us

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!