Facebook和Twitter的API [英] Facebook and twitter API

查看:126
本文介绍了Facebook和Twitter的API的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我开发一个Android小应用。它只会处理等连接和管理一个Facebook和Twitter帐户。

I am developing an ANDROID small application. It will just handle connecting et and managing one facebook and twitter account.

这怎么可以在Android平板做些什么呢?

How this can be done on ANdroid plateform ?

有人能告诉我一个的ressource至极能帮帮我吗?

Can someone show me a ressource wich can help me?

推荐答案

有关微博我已经学会了意向的API Twidroid暴露是不是真的很好。取而代之的是Twitter的一个小的非常高的水平库称为 Twitter4J ,我曾经建立一个Android应用程序。张贴到Twitter是文学一样简单:

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?

我是在一个点上刨写一个Android包装该库,即出口的通用功能与意图(比如你可以用一个twitter.PUBLISH_MESSAGE意图启动一个服务,或者你可以声明你的应用接收广播意向时,新的鸣叫可为您的帐户),但我没有找到时间呢(而且也许会在某个时候被OpenIntents软件球员来完成)。

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).

玩得开心!

这篇关于Facebook和Twitter的API的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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