Facebook
AppInviteDialog - Documentation - Meta for Developers
AppInviteDialog

A dialog for inviting users.

Extends: FacebookDialogBase
Package: widget
Constructors
AppInviteDialog(Activity)

Constructs a new AppInviteDialog.

public AppInviteDialog( Activity activity )
Parameter Description
activity Activity to use to share the provided content.
AppInviteDialog(Fragment)

Constructs a new AppInviteDialog.

public AppInviteDialog( Fragment fragment )
Parameter Description
fragment Android.support.v4.app.Fragment to use to share the provided content.
AppInviteDialog(Fragment)

Constructs a new AppInviteDialog.

public AppInviteDialog( Fragment fragment )
Parameter Description
fragment Android.app.Fragment to use to share the provided content.
Class Methods
canShow()

Indicates whether the app invite dialog can be shown.

public static boolean canShow()
Returns
True if the dialog can be shown
show(Activity, AppInviteContent)

Helper to show the provided AppInviteContent using the provided Activity. No callback will be invoked.

public static void show( Activity activity , AppInviteContent appInviteContent )
Parameter Description
activity Activity to use to share the provided content
appInviteContent Content of the app invite to send
show(Fragment, AppInviteContent)

Helper to show the provided AppInviteContent using the provided Fragment. No callback will be invoked.

public static void show( Fragment fragment , AppInviteContent appInviteContent )
Parameter Description
fragment Android.support.v4.app.Fragment to use to share the provided content
appInviteContent Content of the app invite to send
show(Fragment, AppInviteContent)

Helper to show the provided AppInviteContent using the provided Fragment. No callback will be invoked.

public static void show( Fragment fragment , AppInviteContent appInviteContent )
Parameter Description
fragment Android.app.Fragment to use to share the provided content
appInviteContent Content of the app invite to send
Design a Mobile Website
View Site in Mobile | Classic
Share by: