Android SDK Version

public class DeviceLoginButton
extends LoginButton
A Log In/Log Out button that maintains login state and logs in/out for the app.
This control requires the app ID and client token to be specified in the AndroidManifest.xml.
Nested Class Summary
Nested classes/interfaces inherited from class com.facebook.login.widget.
LoginButton.LoginClickListener, LoginButton.ToolTipMode
Constructor Summary
Constructor and Description
DeviceLoginButton(Context context)
Create the LoginButton by inflating from XML and applying a style.
DeviceLoginButton(Context context, AttributeSet attrs)
Create the LoginButton by inflating from XML
DeviceLoginButton(Context context, AttributeSet attrs, int defStyle)
Create the LoginButton by inflating from XML
Method Summary
Modifier and TypeMethod and Description
UrigetDeviceRedirectUri()
Get the previously set uri that will be used to redirect the user to after they complete the device login flow on the external device.
protected LoginButton.LoginClickListenergetNewLoginClickListener() 
voidsetDeviceRedirectUri(Uri uri)
Set uri to redirect the user to after they complete the device login flow on the external device.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Constructor Detail

DeviceLoginButton

public DeviceLoginButton(Context context,
                         AttributeSet attrs,
                         int defStyle)
Create the LoginButton by inflating from XML
See Also:
View#View(Context, AttributeSet)

DeviceLoginButton

public DeviceLoginButton(Context context,
                         AttributeSet attrs)
Create the LoginButton by inflating from XML
See Also:
View#View(Context, AttributeSet)

DeviceLoginButton

public DeviceLoginButton(Context context)
Create the LoginButton by inflating from XML and applying a style.
See Also:
View#View(Context, AttributeSet, int)
Method Detail

setDeviceRedirectUri

public void setDeviceRedirectUri(Uri uri)
Set uri to redirect the user to after they complete the device login flow on the external device.
The Uri must be configured in your App Settings -> Advanced -> OAuth Redirect URIs.
Parameters:
uri - The URI to set.

getDeviceRedirectUri

public Uri getDeviceRedirectUri()
Get the previously set uri that will be used to redirect the user to after they complete the device login flow on the external device.
The Uri must be configured in your App Settings -> Advanced -> OAuth Redirect URIs.
Returns:
The current device redirect uri set.

getNewLoginClickListener

protected LoginButton.LoginClickListener getNewLoginClickListener()