Package com.restfb.types
Class TestUser
java.lang.Object
com.restfb.types.AbstractFacebookType
com.restfb.types.FacebookType
com.restfb.types.TestUser
- All Implemented Interfaces:
Serializable
Represents the Test User type.
- Since:
- 1.6.10
- Author:
- Chris Petersen, Mark Allen
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.restfb.types.FacebookType
FacebookType.Metadata
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionYou can use this access token to make API calls on behalf of the test user.getEmail()
If logging in manually (that is, not using the login_url), you can use this as the user's email address.You can login as the test user by going to this url.If logging in manually (that is, not using the login_url), you can use this as the user's password.void
setAccessToken
(String accessToken) You can use this access token to make API calls on behalf of the test user.void
If logging in manually (that is, not using the login_url), you can use this as the user's email address.void
setLoginUrl
(String loginUrl) You can login as the test user by going to this url.void
setPassword
(String password) If logging in manually (that is, not using the login_url), you can use this as the user's password.Methods inherited from class com.restfb.types.FacebookType
getId, getMetadata, getType, setId, setMetadata, setType
Methods inherited from class com.restfb.types.AbstractFacebookType
equals, hashCode, toString
-
Constructor Details
-
TestUser
public TestUser()
-
-
Method Details
-
getAccessToken
You can use this access token to make API calls on behalf of the test user. This is available only if your app has been installed by the test user.- Returns:
- The test user's access token.
-
setAccessToken
You can use this access token to make API calls on behalf of the test user. This is available only if your app has been installed by the test user. -
getLoginUrl
You can login as the test user by going to this url.- Returns:
- The test user's login url.
-
setLoginUrl
You can login as the test user by going to this url. -
getEmail
If logging in manually (that is, not using the login_url), you can use this as the user's email address.- Returns:
- The test user's email address.
-
setEmail
If logging in manually (that is, not using the login_url), you can use this as the user's email address. -
getPassword
If logging in manually (that is, not using the login_url), you can use this as the user's password.- Returns:
- The test user's password.
-
setPassword
If logging in manually (that is, not using the login_url), you can use this as the user's password.
-