Encerrado

Basic Android Facebook interface(repost)

I need some Android code that will allow my existing Android app to connect to Facebook.

The code you supply must do the following:

- Login as a user

- Retrieve the user's status

- Retrieve the user's list of friends

- Retrieve the status of each friend

- logout

## Deliverables

The code you write should connect to Facebook using one of their supported interfaces. It should follow Facebook's standard recommendations for security and best practices.

I expect the code you deliver to expose an API like the following.

(You will implement the FacebookConnector class, and your code will communicate with a FacebookClient in my code. ? The implementation should be asynchronous. I will request actions from you. Your code will return immediately, and will later notify me when it has results):

// (I assume that the Facebook API you use will have a notion of

// a? userId -- a type that can represent either the logged in

// user or? a buddy. I'm assuming that this userId is a string.

// If the userId is an? integer, or if you need different types

// for the logged-in user and his? buddies, feel free to make

// the obvious changes to my interface).

class UserId {

? ? private String userId;

? ? ...

}

interface FacebookClient {

? ? // Callback to report an error (connection errror, login

? ? // failed, invalid/ userId token, etc.)

? ? // Pass back a string or object explaining the error.

? ? void error(...);

? ? void loginOk(UserId userId);

? ? // Return a user's status.

? ? void gotStatus(UserId userId, string status);

? ? // Return a user's friends.

? ? void gotFriends(UserId user, UserId[] friends);

}

class FacebookConnector {

? ? // Initialize the interface. You can require more parameters

? ? // here, if? needed. (e.g. Facebook application tokens).

? ? FacebookConnector(FacebookClient callback);

? ? // Callback when login has succeeded.

? ? // Later deliver success or failure back to me? by calling

? ? // [url removed, login to view](...).

? ? void login(String username, String password);

? ? // Only valid to call this after login has succeeded.

? ? // Get a user's status.

? ? void getStatus(UserId userId);

? ? // Only valid to ? call this after login has succeeded.

? ? // Return all of the user's friends. (Note that I only need

? ? // to call? this for the logged-in user).

? ? void getFriends(UserId userId);

? ? // Done

? ? logout();

}

Note: if it is more efficient for facebook to return multiple statuses at once, please add another method getStatus(UserId[] userIds) and appropriate callback.

Habilidades: Android, Engenharia, MySQL, PHP, Arquitetura de software, Teste de Software

Ver mais: password app android, notify my android, interface security, free facebook app for android, free calling app for android, best to do list app for android, best security app for android, best facebook app for android, best android, android string, android security app, android note 3, android application class, facebook login logout, facebook login friends list, free calling android app, facebook repost, facebook login android, facebook app login, facebook api token, facebook api application, api interface using c, android security, android facebook, android api

Acerca do Empregador:
( 72 comentários ) Beit Shemesh, Israel

ID do Projeto: #2982642

7 freelancers estão ofertando em média $273 para este trabalho

foreignt

See private message.

$476 USD in 7 dias
(29 Comentários)
6.4
uprightech

See private message.

$127.5 USD in 7 dias
(30 Comentários)
5.1
shiva1977

See private message.

$59.5 USD in 7 dias
(27 Comentários)
4.6
adex08

See private message.

$382.5 USD in 7 dias
(6 Comentários)
4.1
donofdons

See private message.

$595 USD in 7 dias
(13 Comentários)
3.4
imran514

See private message.

$85 USD in 7 dias
(4 Comentários)
3.1
indictrans

See private message.

$187 USD in 7 dias
(0 Comentários)
0.0