|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfacebook4j.FacebookFactory
public final class FacebookFactory
A factory class for Facebook.
An instance of this class is completely thread safe and can be re-used and used concurrently.
| Constructor Summary | |
|---|---|
FacebookFactory()
Creates a FacebookFactory with the root configuration. |
|
FacebookFactory(Configuration conf)
Creates a FacebookFactory with the given configuration. |
|
FacebookFactory(String configTreePath)
Creates a FacebookFactory with a specified config tree |
|
| Method Summary | |
|---|---|
Facebook |
getInstance()
Returns a instance associated with the configuration bound to this factory. |
Facebook |
getInstance(AccessToken accessToken)
Returns a OAuth Authenticated instance. app Id and app Secret must be provided by facebook4j.properties, or system properties. Unlike OAuthSupport.setOAuthAccessToken(facebook4j.auth.AccessToken), this factory method potentially returns a cached instance. |
Facebook |
getInstance(Authorization auth)
|
static Facebook |
getSingleton()
Returns default singleton Facebook instance. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FacebookFactory()
public FacebookFactory(Configuration conf)
conf - the configuration to usepublic FacebookFactory(String configTreePath)
configTreePath - the path| Method Detail |
|---|
public Facebook getInstance()
public Facebook getInstance(AccessToken accessToken)
OAuthSupport.setOAuthAccessToken(facebook4j.auth.AccessToken), this factory method potentially returns a cached instance.
accessToken - access token
public Facebook getInstance(Authorization auth)
public static Facebook getSingleton()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||