开发者

Facebook and Twitter API [closed]

开发者 https://www.devze.com 2022-12-16 01:22 出处:网络
Closed. This question needs to be more focused. It is not currently accepting answers. 开发者_开发问答
Closed. This question needs to be more focused. It is not currently accepting answers.
开发者_开发问答

Want to improve this question? Update the question so it focuses on one problem only by editing this post.

Closed last year.

Improve this question

I am developing an Android small application. It will just handle connecting to and managing one Facebook and Twitter account.

How this can be done on Android platform?

Can someone show me a resource which can help me?


For twitter I have learned that the Intent API exposed by Twidroid is not really nice. Instead there is a small very high level library for Twitter called Twitter4J that I used to build an Android App. Posting to twitter is literary as easy as:

Twitter twitter = new Twitter("username", "password");
Status status = twitter.updateStatus("Hello World");

easy, huh?

I was at one point planing to write an Android Wrapper for this library, that exports common functionality with Intents (like you can start a Service with a twitter.PUBLISH_MESSAGE intent or you can declare your app to receive Intent Broadcasts when new tweets are available for your account) but I did not find the time yet (and also maybe it will be at some point be done by the OpenIntents guys).

Have fun!


Besides the full featured Twitter4J you could try the following extremely simple solution excluding all the helper methods and wrapper classes but including the dialog for OAuth authorization: http://www.tinyappworks.com/api/twitter.html


You'll need to use the Facebook API and Twitter API.

You can use the DefaultHTTPClient class in the Android SDK for making HTTP requests.

0

精彩评论

暂无评论...
验证码 换一张
取 消