| Package | Description |
|---|---|
| com.facebook | |
| com.facebook.android | |
| com.facebook.internal |
com.facebook.internal is solely for the use of other packages within the Facebook SDK for Android.
|
| com.facebook.widget |
| Modifier and Type | Class and Description |
|---|---|
class |
TestSession
Implements an subclass of Session that knows about test users for a particular
application.
|
| Modifier and Type | Method and Description |
|---|---|
Session |
Session.Builder.build()
Build the Session.
|
static Session |
Session.getActiveSession()
Returns the current active Session, or null if there is none.
|
Session |
Request.getSession()
Returns the Session associated with this request.
|
static Session |
Session.openActiveSession(Activity activity,
boolean allowLoginUI,
Session.StatusCallback callback)
If allowLoginUI is true, this will create a new Session, make it active, and
open it.
|
static Session |
Session.openActiveSession(android.content.Context context,
Fragment fragment,
boolean allowLoginUI,
Session.StatusCallback callback)
If allowLoginUI is true, this will create a new Session, make it active, and
open it.
|
static Session |
Session.openActiveSessionFromCache(android.content.Context context)
Create a new Session, and if a token cache is available, open the
Session and make it active without any user interaction.
|
static Session |
Session.openActiveSessionWithAccessToken(android.content.Context context,
AccessToken accessToken,
Session.StatusCallback callback)
Opens a session based on an existing Facebook access token, and also makes this session
the currently active session.
|
static Session |
Session.restoreSession(android.content.Context context,
TokenCachingStrategy cachingStrategy,
Session.StatusCallback callback,
android.os.Bundle bundle)
Restores the saved session from a Bundle, if any.
|
| Modifier and Type | Method and Description |
|---|---|
void |
Session.StatusCallback.call(Session session,
SessionState state,
Exception exception) |
static RequestAsyncTask |
Request.executeGraphPathRequestAsync(Session session,
String graphPath,
Request.Callback callback)
Creates a new Request configured to retrieve a particular graph path.
|
static RequestAsyncTask |
Request.executeMeRequestAsync(Session session,
Request.GraphUserCallback callback)
Creates a new Request configured to retrieve a user's own profile.
|
static RequestAsyncTask |
Request.executeMyFriendsRequestAsync(Session session,
Request.GraphUserListCallback callback)
Creates a new Request configured to retrieve a user's friend list.
|
static RequestAsyncTask |
Request.executePlacesSearchRequestAsync(Session session,
android.location.Location location,
int radiusInMeters,
int resultsLimit,
String searchText,
Request.GraphPlaceListCallback callback)
Creates a new Request that is configured to perform a search for places near a specified location via the Graph
API.
|
static RequestAsyncTask |
Request.executePostRequestAsync(Session session,
String graphPath,
GraphObject graphObject,
Request.Callback callback)
Starts a new Request configured to post a GraphObject to a particular graph path, to either create or update the
object at that path.
|
static RequestAsyncTask |
Request.executeRestRequestAsync(Session session,
String restMethod,
android.os.Bundle parameters,
HttpMethod httpMethod)
Creates a new Request configured to make a call to the Facebook REST API.
|
static RequestAsyncTask |
Request.executeStatusUpdateRequestAsync(Session session,
String message,
Request.Callback callback)
Creates a new Request configured to post a status update to a user's feed.
|
static RequestAsyncTask |
Request.executeUploadPhotoRequestAsync(Session session,
android.graphics.Bitmap image,
Request.Callback callback)
Creates a new Request configured to upload a photo to the user's default photo album.
|
static RequestAsyncTask |
Request.executeUploadPhotoRequestAsync(Session session,
File file,
Request.Callback callback)
Creates a new Request configured to upload a photo to the user's default photo album.
|
static void |
LegacyHelper.extendTokenCompleted(Session session,
android.os.Bundle bundle)
Deprecated.
|
static Request |
Request.newGraphPathRequest(Session session,
String graphPath,
Request.Callback callback)
Creates a new Request configured to retrieve a particular graph path.
|
static InsightsLogger |
InsightsLogger.newLogger(android.content.Context context,
String clientToken,
String applicationId,
Session session)
Build an InsightsLogger instance to log events through.
|
static Request |
Request.newMeRequest(Session session,
Request.GraphUserCallback callback)
Creates a new Request configured to retrieve a user's own profile.
|
static Request |
Request.newMyFriendsRequest(Session session,
Request.GraphUserListCallback callback)
Creates a new Request configured to retrieve a user's friend list.
|
static Request |
Request.newPlacesSearchRequest(Session session,
android.location.Location location,
int radiusInMeters,
int resultsLimit,
String searchText,
Request.GraphPlaceListCallback callback)
Creates a new Request that is configured to perform a search for places near a specified location via the Graph
API.
|
static Request |
Request.newPostRequest(Session session,
String graphPath,
GraphObject graphObject,
Request.Callback callback)
Creates a new Request configured to post a GraphObject to a particular graph path, to either create or update the
object at that path.
|
static Request |
Request.newRestRequest(Session session,
String restMethod,
android.os.Bundle parameters,
HttpMethod httpMethod)
Creates a new Request configured to make a call to the Facebook REST API.
|
static Request |
Request.newStatusUpdateRequest(Session session,
String message,
Request.Callback callback)
Creates a new Request configured to post a status update to a user's feed.
|
static Request |
Request.newUploadPhotoRequest(Session session,
android.graphics.Bitmap image,
Request.Callback callback)
Creates a new Request configured to upload a photo to the user's default photo album.
|
static Request |
Request.newUploadPhotoRequest(Session session,
File file,
Request.Callback callback)
Creates a new Request configured to upload a photo to the user's default photo album.
|
static Request |
Request.newUploadVideoRequest(Session session,
File file,
Request.Callback callback)
Creates a new Request configured to upload a photo to the user's default photo album.
|
static void |
Session.saveSession(Session session,
android.os.Bundle bundle)
Save the Session object into the supplied Bundle.
|
static void |
Session.setActiveSession(Session session)
Sets the current active Session.
|
void |
Request.setSession(Session session)
Sets the Session to use for this request.
|
| Constructor and Description |
|---|
Request(Session session,
String graphPath)
Constructs a request with a Session to retrieve a particular graph path.
|
Request(Session session,
String graphPath,
android.os.Bundle parameters,
HttpMethod httpMethod)
Constructs a request with a specific Session, graph path, parameters, and HTTP method.
|
Request(Session session,
String graphPath,
android.os.Bundle parameters,
HttpMethod httpMethod,
Request.Callback callback)
Constructs a request with a specific Session, graph path, parameters, and HTTP method.
|
| Modifier and Type | Method and Description |
|---|---|
Session |
Facebook.getSession()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
Facebook.setSession(Session session)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
Session |
SessionTracker.getOpenSession()
Returns the current Session that's being tracked if it's open,
otherwise returns null.
|
Session |
SessionTracker.getSession()
Returns the current Session that's being tracked.
|
| Modifier and Type | Method and Description |
|---|---|
void |
SessionTracker.setSession(Session newSession)
Set the Session object to track.
|
| Constructor and Description |
|---|
SessionTracker(android.content.Context context,
Session.StatusCallback callback,
Session session,
boolean startTracking)
Constructs a SessionTracker to track the Session object passed in.
|
| Modifier and Type | Method and Description |
|---|---|
Session |
PickerFragment.getSession()
Gets the Session to use for any Facebook requests this fragment will make.
|
| Modifier and Type | Method and Description |
|---|---|
void |
LoginButton.setSession(Session newSession)
Set the Session object to use instead of the active Session.
|
void |
PickerFragment.setSession(Session session)
Sets the Session to use for any Facebook requests this fragment will make.
|
void |
UserSettingsFragment.setSession(Session newSession)
Set the Session object to use instead of the active Session.
|
| Constructor and Description |
|---|
WebDialog.Builder(android.content.Context context,
Session session,
String action,
android.os.Bundle parameters)
Constructor that builds a dialog for an authenticated user.
|
WebDialog.FeedDialogBuilder(android.content.Context context,
Session session)
Constructor.
|
WebDialog.FeedDialogBuilder(android.content.Context context,
Session session,
android.os.Bundle parameters)
Constructor.
|
WebDialog.RequestsDialogBuilder(android.content.Context context,
Session session)
Constructor.
|
WebDialog.RequestsDialogBuilder(android.content.Context context,
Session session,
android.os.Bundle parameters)
Constructor.
|
Copyright © 2013. All Rights Reserved.