Package com.restfb.types
Class DeviceCode
java.lang.Object
com.restfb.types.AbstractFacebookType
com.restfb.types.DeviceCode
- All Implemented Interfaces:
Serializable
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetCode()
Code used in the authorization pollThe code expires in these seconds.Your device should poll the Device Login API everyinterval
seconds to see if the authorization has been successfulString to be shown to the userUrl the user should call.void
Code used in the authorization pollvoid
setExpiresIn
(Integer expiresIn) The code expires in these seconds.void
setInterval
(Integer interval) Your device should poll the Device Login API everyinterval
seconds to see if the authorization has been successfulvoid
setUserCode
(String userCode) String to be shown to the uservoid
setVerificationUri
(String verificationUri) Url the user should call.Methods inherited from class com.restfb.types.AbstractFacebookType
equals, hashCode, toString
-
Constructor Details
-
DeviceCode
public DeviceCode()
-
-
Method Details
-
getCode
Code used in the authorization poll -
setCode
Code used in the authorization poll -
getUserCode
String to be shown to the user -
setUserCode
String to be shown to the user -
getVerificationUri
Url the user should call.Here he should add the user code
-
setVerificationUri
Url the user should call.Here he should add the user code
-
getExpiresIn
The code expires in these seconds.You should cancel the login flow after that time if you do not receive an access token
-
setExpiresIn
The code expires in these seconds.You should cancel the login flow after that time if you do not receive an access token
-
getInterval
Your device should poll the Device Login API everyinterval
seconds to see if the authorization has been successful -
setInterval
Your device should poll the Device Login API everyinterval
seconds to see if the authorization has been successful
-