Skip to content

Commit 3b9e801

Browse files
author
Hasan Ali
committed
Create LeadFormBuilderDialogParams interface for creating lead form builder dialogs
1 parent 1fc9fb9 commit 3b9e801

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

src/models/ui-params.ts

+17-1
Original file line numberDiff line numberDiff line change
@@ -100,10 +100,26 @@ export interface SendDialogParams {
100100
link?: string;
101101
}
102102

103+
/**
104+
* Params that can be passed when using the Lead Form Builder for forms on Facebook Lead Ads
105+
*/
106+
export interface LeadFormBuilderDialogParams {
107+
108+
/**
109+
* The Facebook like page that the dialog will build forms for
110+
*/
111+
page_id?: string
112+
113+
/**
114+
* The ad account ID associated with the like page
115+
*/
116+
ad_account_id?: string
117+
}
118+
103119
/**
104120
* The object passed to the [ui](../facebook-service/#ui) method. The properties below can be passed to all three types of dialogs. Each type of dialog accepts additional parameters that are documented above.
105121
*/
106-
export interface UIParams extends ShareDialogParams, FeedDialogParams, SendDialogParams {
122+
export interface UIParams extends ShareDialogParams, FeedDialogParams, SendDialogParams, LeadFormBuilderDialogParams {
107123

108124
/**
109125
* The UI dialog that is being invoked. This is a required field.

0 commit comments

Comments
 (0)