@Deprecated public class AsyncFacebookRunner extends Object
The callback interface.
Modifier and Type | Class and Description |
---|---|
static interface |
AsyncFacebookRunner.RequestListener
Deprecated.
|
Constructor and Description |
---|
AsyncFacebookRunner(Facebook fb)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
logout(Context context,
AsyncFacebookRunner.RequestListener listener)
Deprecated.
|
void |
logout(Context context,
AsyncFacebookRunner.RequestListener listener,
Object state)
Deprecated.
|
void |
request(Bundle parameters,
AsyncFacebookRunner.RequestListener listener)
Deprecated.
|
void |
request(Bundle parameters,
AsyncFacebookRunner.RequestListener listener,
Object state)
Deprecated.
|
void |
request(String graphPath,
AsyncFacebookRunner.RequestListener listener)
Deprecated.
|
void |
request(String graphPath,
AsyncFacebookRunner.RequestListener listener,
Object state)
Deprecated.
|
void |
request(String graphPath,
Bundle parameters,
AsyncFacebookRunner.RequestListener listener)
Deprecated.
|
void |
request(String graphPath,
Bundle parameters,
AsyncFacebookRunner.RequestListener listener,
Object state)
Deprecated.
|
void |
request(String graphPath,
Bundle parameters,
String httpMethod,
AsyncFacebookRunner.RequestListener listener,
Object state)
Deprecated.
|
public AsyncFacebookRunner(Facebook fb)
@Deprecated public void logout(Context context, AsyncFacebookRunner.RequestListener listener, Object state)
Facebook
and Session
for more info.context
- The Android context in which the logout should be called: it
should be the same context in which the login occurred in
order to clear any stored cookieslistener
- Callback interface to notify the application when the request
has completed.state
- An arbitrary object used to identify the request when it
returns to the callback. This has no effect on the request
itself.@Deprecated public void logout(Context context, AsyncFacebookRunner.RequestListener listener)
@Deprecated public void request(Bundle parameters, AsyncFacebookRunner.RequestListener listener, Object state)
Bundle parameters = new Bundle();
parameters.putString("method", "auth.expireSession", new Listener());
String response = request(parameters);
This method is deprecated. See Facebook
and Request
for more info.parameters
- Key-value pairs of parameters to the request. Refer to the
documentation: one of the parameters must be "method".listener
- Callback interface to notify the application when the request
has completed.state
- An arbitrary object used to identify the request when it
returns to the callback. This has no effect on the request
itself.@Deprecated public void request(Bundle parameters, AsyncFacebookRunner.RequestListener listener)
@Deprecated public void request(String graphPath, AsyncFacebookRunner.RequestListener listener, Object state)
Facebook
and Request
for more info.graphPath
- Path to resource in the Facebook graph, e.g., to fetch data
about the currently logged authenticated user, provide "me",
which will fetch http://graph.facebook.com/melistener
- Callback interface to notify the application when the request
has completed.state
- An arbitrary object used to identify the request when it
returns to the callback. This has no effect on the request
itself.@Deprecated public void request(String graphPath, AsyncFacebookRunner.RequestListener listener)
@Deprecated public void request(String graphPath, Bundle parameters, AsyncFacebookRunner.RequestListener listener, Object state)
Facebook
and Request
for more info.graphPath
- Path to resource in the Facebook graph, e.g., to fetch data
about the currently logged authenticated user, provide "me",
which will fetch http://graph.facebook.com/meparameters
- key-value string parameters, e.g. the path "search" with
parameters "q" : "facebook" would produce a query for the
following graph resource:
https://graph.facebook.com/search?q=facebooklistener
- Callback interface to notify the application when the request
has completed.state
- An arbitrary object used to identify the request when it
returns to the callback. This has no effect on the request
itself.@Deprecated public void request(String graphPath, Bundle parameters, AsyncFacebookRunner.RequestListener listener)
@Deprecated public void request(String graphPath, Bundle parameters, String httpMethod, AsyncFacebookRunner.RequestListener listener, Object state)
Facebook
and Request
for more info.graphPath
- Path to resource in the Facebook graph, e.g., to fetch data
about the currently logged authenticated user, provide "me",
which will fetch http://graph.facebook.com/meparameters
- key-value string parameters, e.g. the path "search" with
parameters {"q" : "facebook"} would produce a query for the
following graph resource:
https://graph.facebook.com/search?q=facebookhttpMethod
- http verb, e.g. "POST", "DELETE"listener
- Callback interface to notify the application when the request
has completed.state
- An arbitrary object used to identify the request when it
returns to the callback. This has no effect on the request
itself.