Class DeviceCode

All Implemented Interfaces:
Serializable

public class DeviceCode
extends AbstractFacebookType
See Also:
Serialized Form
  • Constructor Details

  • Method Details

    • getCode

      public String getCode()
      Code used in the authorization poll
    • setCode

      public void setCode​(String code)
      Code used in the authorization poll
    • getUserCode

      public String getUserCode()
      String to be shown to the user
    • setUserCode

      public void setUserCode​(String userCode)
      String to be shown to the user
    • getVerificationUri

      Url the user should call. Here he should add the user code
    • setVerificationUri

      public void setVerificationUri​(String verificationUri)
      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

      public void setExpiresIn​(Integer expiresIn)
      The code expires in these seconds. You should cancel the login flow after that time if you do not receive an access token
    • getInterval

      public Integer getInterval()
      Your device should poll the Device Login API every interval seconds to see if the authorization has been successful
    • setInterval

      public void setInterval​(Integer interval)
      Your device should poll the Device Login API every interval seconds to see if the authorization has been successful