facebook4j
Interface FacebookBase

All Known Subinterfaces:
Facebook

public interface FacebookBase

Author:
Ryuji Yamashita - roundrop at gmail.com

Method Summary
<T> ResponseList<T>
fetchNext(Paging<T> paging)
          Fetches the data of the next page.
<T> ResponseList<T>
fetchPrevious(Paging<T> paging)
          Fetches the data of the previous page.
 Authorization getAuthorization()
          Returns the authorization scheme for this instance.
The returned type will be either of BasicAuthorization, OAuthAuthorization, or NullAuthorization
 Configuration getConfiguration()
          Returns the configuration associated with this instance
 String getId()
          Returns the ID of authenticating user/page.
This method may internally call '/me' on the first invocation if
- this instance is authenticated by OAuth.
 String getName()
          Returns authenticating user's/page's name.
This method may internally call '/me' on the first invocation if
- this instance is authenticated by OAuth.
 void shutdown()
          Shuts down this instance and releases allocated resources.
 

Method Detail

getId

String getId()
             throws FacebookException,
                    IllegalStateException
Returns the ID of authenticating user/page.
This method may internally call '/me' on the first invocation if
- this instance is authenticated by OAuth.

Returns:
the ID of authenticating user/page
Throws:
FacebookException - when '/me' threw an exception.
IllegalStateException - if no credentials are supplied. i.e.) this is an anonymous Facebook instance

getName

String getName()
               throws FacebookException,
                      IllegalStateException
Returns authenticating user's/page's name.
This method may internally call '/me' on the first invocation if
- this instance is authenticated by OAuth.

Returns:
the authenticating user's/page's name
Throws:
FacebookException - when '/me' threw an exception.
IllegalStateException - if no credentials are supplied. i.e.) this is an anonymous Facebook instance

getAuthorization

Authorization getAuthorization()
Returns the authorization scheme for this instance.
The returned type will be either of BasicAuthorization, OAuthAuthorization, or NullAuthorization

Returns:
the authorization scheme for this instance

getConfiguration

Configuration getConfiguration()
Returns the configuration associated with this instance

Returns:
configuration associated with this instance

fetchNext

<T> ResponseList<T> fetchNext(Paging<T> paging)
                          throws FacebookException
Fetches the data of the next page.

Parameters:
paging - paging information of Graph API result
Returns:
the data of the next page
Throws:
FacebookException - when Facebook service or network is unavailable

fetchPrevious

<T> ResponseList<T> fetchPrevious(Paging<T> paging)
                              throws FacebookException
Fetches the data of the previous page.

Parameters:
paging - paging information of Graph API result
Returns:
the data of the previous page
Throws:
FacebookException - when Facebook service or network is unavailable

shutdown

void shutdown()
Shuts down this instance and releases allocated resources.



Copyright © 2017. All rights reserved.