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
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetCode()Code used in the authorization pollThe code expires in these seconds.Your device should poll the Device Login API everyintervalseconds to see if the authorization has been successfulString to be shown to the userUrl the user should call.voidCode used in the authorization pollvoidsetExpiresIn(Integer expiresIn) The code expires in these seconds.voidsetInterval(Integer interval) Your device should poll the Device Login API everyintervalseconds to see if the authorization has been successfulvoidsetUserCode(String userCode) String to be shown to the uservoidsetVerificationUri(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 everyintervalseconds to see if the authorization has been successful -
setInterval
Your device should poll the Device Login API everyintervalseconds to see if the authorization has been successful
-