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
public class TestUser extends FacebookType
Represents the Test User type.- Since:
- 1.6.10
- Author:
- Chris Petersen, Mark Allen
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.restfb.types.FacebookType
FacebookType.Metadata
-
-
Constructor Summary
Constructors Constructor Description TestUser()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getAccessToken()
You can use this access token to make API calls on behalf of the test user.String
getEmail()
If logging in manually (that is, not using the login_url), you can use this as the user's email address.String
getLoginUrl()
You can login as the test user by going to this url.String
getPassword()
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
setEmail(String email)
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 Detail
-
TestUser
public TestUser()
-
-
Method Detail
-
getAccessToken
public String 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
public void setAccessToken(String accessToken)
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
public String getLoginUrl()
You can login as the test user by going to this url.- Returns:
- The test user's login url.
-
setLoginUrl
public void setLoginUrl(String loginUrl)
You can login as the test user by going to this url.
-
getEmail
public String 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
public void setEmail(String email)
If logging in manually (that is, not using the login_url), you can use this as the user's email address.
-
getPassword
public String 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
public void setPassword(String password)
If logging in manually (that is, not using the login_url), you can use this as the user's password.
-
-