Packagecom.distriqt.extension.facebookapi.appinvites.builders
Classpublic class AppInviteContentBuilder
InheritanceAppInviteContentBuilder Inheritance Object
Deprecated: Deprecated

Builder class for the App Invite dialog content



Public Methods
 MethodDefined By
  
Constructor
AppInviteContentBuilder
  
build():Object
Builds the object for the showing using AppInvite.show
AppInviteContentBuilder
  
Sets the applink url that will be used for deep-linking The App Link URL is a deep link to a specific place in your mobile app.
AppInviteContentBuilder
  
Sets the destination of the invite either "facebook" or "messenger"
AppInviteContentBuilder
  
Sets the preview image url for this invite.
AppInviteContentBuilder
  
setPromotionDetails(promotionText:String, promotionCode:String):AppInviteContentBuilder
Sets promotion code and promotion text to be shown on sender and receiver flows for app invites.
AppInviteContentBuilder
Constructor Detail
AppInviteContentBuilder()Constructor
public function AppInviteContentBuilder()

Constructor

Method Detail
build()method
public function build():Object

Builds the object for the showing using AppInvite.show

Returns
Object — The content Object

See also

setApplinkUrl()method 
public function setApplinkUrl(appLinkUrl:String):AppInviteContentBuilder

Sets the applink url that will be used for deep-linking

The App Link URL is a deep link to a specific place in your mobile app. Read more about this at https://developers.facebook.com/docs/app-invites/ios#app_links

Parameters

appLinkUrl:String — The applink url

Returns
AppInviteContentBuilderAppInviteContentBuilder instance for chaining calls
setDestination()method 
public function setDestination(destination:String):AppInviteContentBuilder

Sets the destination of the invite either "facebook" or "messenger"

Parameters

destination:String — The destination for the dialog invite

Returns
AppInviteContentBuilderAppInviteContentBuilder instance for chaining calls
setPreviewImageUrl()method 
public function setPreviewImageUrl(previewImageUrl:String):AppInviteContentBuilder

Sets the preview image url for this invite. See guidelines for correct dimensions.

The preview image URL will be used to render the image in the invite. While not required, it is recommended you pass this field in as your invite may not be rendered if no alternative images are found. Your invite may not be rendered if no alternative images are found.

If a previewImageURL is not set the invite will use Promotional Images from the App Details section in apps settings. The invite will not show if no images are available.

The suggested image size is 1,200 x 628 pixels with an image ratio of 1.9:1.

Parameters

previewImageUrl:String — Url of the image that is going to be used as a preview for invite

Returns
AppInviteContentBuilderAppInviteContentBuilder instance for chaining calls
setPromotionDetails()method 
public function setPromotionDetails(promotionText:String, promotionCode:String):AppInviteContentBuilder

Sets promotion code and promotion text to be shown on sender and receiver flows for app invites.

Parameters

promotionText:String — Promotion text to be shown on sender and receiver flows. Promotion text has to be between 1 and 80 characters long.
 
promotionCode:String — Promotion code to be shown on sender and receiver flows. Promotion code is optional and has to be less than 10 characters long. promotionText needs to be specified if promotionCode is provided.

Returns
AppInviteContentBuilderAppInviteContentBuilder instance for chaining calls