|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface FacebookService
The Facebook service.
| Method Summary | |
|---|---|
boolean |
createUserWithFacebookId(String modelName,
String username,
String accessToken)
Creates a new user object, using the given facebook token for authentication. |
String |
findUser(String modelName,
String accessToken)
Find the username assigned to the Facebook user ID contained in the given access token. |
boolean |
linkFacebookIdToUser(String modelName,
String username,
String accessToken)
Assigns the Facebook user ID contained in the access token to the user with the given username. |
String |
publishMessage(String modelName,
String username,
String messageText)
Post a message to a user's Facebook wall. |
| Method Detail |
|---|
boolean createUserWithFacebookId(String modelName,
String username,
String accessToken)
throws FacebookServiceException
modelName - the name of the relevant object model; must be a type already declared for the current applicationusername - a new unique username in your schema. A user object with this username will be createdaccessToken - the Facebook acess token
FacebookServiceException - if the username already exists, or the facebook user id is already assigned to
another user, or a datastore error occurs
boolean linkFacebookIdToUser(String modelName,
String username,
String accessToken)
throws FacebookServiceException
modelName - the name of the relevant object model; must be a type already declared for the current applicationusername - the user, which should be assigned the facebook credentialsaccessToken - the Facebook access token
FacebookServiceException - if the Facebook user ID is already assigned to another user, or a datastore error
occurs
String findUser(String modelName,
String accessToken)
throws FacebookServiceException
modelName - the name of the relevant object model; must be a type already declared for the current applicationaccessToken - the Facebook access token
FacebookServiceException - if a datastore error occurs
String publishMessage(String modelName,
String username,
String messageText)
throws FacebookServiceException
modelName - the name of the relevant object model; must be a type already declared for the current applicationusername - the user, on whose wall the message will be postedmessageText - the message to post
FacebookServiceException - if the user is not assinged a Facebook ID, or if an authentication error, or a
datastore error occurred
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||