如何在Android中整合Twitter跟随按钮? [英] How to integrate Twitter follow button in Android?

查看:131
本文介绍了如何在Android中整合Twitter跟随按钮?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图整合Twitter的追随我们在我的Andr​​oid应用按钮。因此,如果用户点击该按钮时,他/她下面开始在twitter上我的应用程序页面。我下载的 Twitter4J 它。但我很困惑如何以及在何处下手。我看到的很多文章发送的tweet的帐户,但没有人提及与之相关的任何事情的按照。任何人可以请指导的步骤我应该遵循创建此后续按钮。

I am trying to integrate a twitter FOLLOW US button in my android app. So that if user clicks the button, he/she start following my application page on twitter. I downloaded Twitter4J for it. But I am confused how and where to start with. I have seen a lot article on sending a tweet to an account but nobody mentions any thing related to FOLLOW. Can anybody please guide the steps I should follow to create this follow button.

感谢。

推荐答案

您必须调用 <一个href=\"http://twitter4j.org/ja/javadoc/twitter4j/api/FriendshipMethods.html#createFriendship%28long%29\"相对=nofollow> createFriendship 此功能。

You have to call createFriendship function for this.

有关编码的帮助,<一个href=\"http://$c$c.google.com/p/android-hackathon-in-fukuoka/source/browse/trunk/sodefuri/src/jp/jagfukuoka/sodefuri/TimeLineActivity.java?spec=svn167&r=167\"相对=nofollow>这里是如何在整合帮助

大抵如此重复提问的Andr​​oid,微博,跟着美国的

这篇关于如何在Android中整合Twitter跟随按钮?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆