Facebook Component is designed to connect with facebook using Graph API.
The current release of component tested with API v18.0
.
Before building any integration flow you must at first Create an App.
During this process you will need select following options:
Other
as a use caseNone
as app typeAfter you create the App, go to Facebook Login
-> Setting
and provide Valid OAuth Redirect URIs
as https://{your-tenant-address}/callback/oauth2
, that can be found here
Now you can create new credentials for the component:
OAuth2
.Add New Auth Client
:
App ID
from App settings
.App secret
from App settings
.https://www.facebook.com/v18.0/dialog/oauth
.https://graph.facebook.com/v18.0/oauth/access_token
.public_profile,email
, more info.v18.0
by default) - Version of API you are going to use, look at Facebook changelog to find out what changes have been made. Format to input: vXX.X
.*Warning: To maintain a smooth experience, we recommend reusing stored credentials where possible. Duplicating secrets across OAuth clients can result in errors and complications.
This component has no trigger functions. This means it will not be accessible to select as a first component during the integration flow design.
Delete the specified object by a provided ID.
Object Type - (string, required): Object type to delete. Currently, the only supported one is - Product Item
.
Emit strategy when no object found - (dropdown, optional): This specifies the output when no object is found by the provided ID. One of the following:
Please note: If this option is selected, when retrieving a sample, you will see an error with the following message:
No object found. Execution stopped. This error is only applicable to the Retrieve Sample. In flow executions there will be no error, just an execution skip. This is fine. In a real flow execution, there will be no error
.
Emit an empty object {} - Emit an empty object, e.g. {}.
{
"id": "24449301004715980"
}
Lookup a single object by a selected field that uniquely identifies it.
Product Item
Lookup Criteria Value
becomes optional.Allow criteria to be omitted
is selected): Value for unique search criteria in Lookup Criteria
configuration field.Retailer ID
there will be one more additional field:
Allow criteria to be omitted
is selected): ID of the catalog where you want to find a product.
Please note: Where to get Product Catalog ID.
Object with the result of lookup as a value.
Lookup a set of objects by a defined criteria list. Can be emitted in different ways.
Products
.Emit individually
): Defines the way result objects will be emitted, one of Emit page
, Emit individually
, Emit all
.
Please note: Avoid using
Emit all
if you’re going to retrieve a lot of objects.
[1-99]
or 0
).Filter Expression
. For advanced users. Otherwise, enter your search criteria in the appropriate metadata field.Products
:
Please note: Where to get Product Catalog ID.
Expert Mode for Filter Expression
is enabled:
Filter Expression
(without $filter=
). For advanced users. Example: {"retailer_id":{"neq":"3514654651"}}
.Expert Mode for Filter Expression
is disabled: Depend on configuration field Number of search terms
. If = N
- N search term will be generated, if = 0
- any search term will be generated.
Each search term contains following fields:
contains
- match a query string.not_contains
- do not match a query string.eq
- exactly match a query value.neq
- do not exactly match a query value.lt
- less than a numeric query value.lte
- less than or equal to a numeric query value.gt
- greater than a numeric query value.gte
- greater than or equal to a numeric query value.starts_with
- string that starts with the query string. This filter option is only available for the product category field.and
) - one of “and, or
”Example for Number of search terms = 2
:
{
"sTerm_1": {
"fieldName": "retailer_id",
"condition": "neq",
"fieldValue": "3514654651"
},
"sTerm_2": {
"fieldName": "brand",
"condition": "eq",
"fieldValue": "Instagram"
},
"operator": "and"
}
Emit Page
and Emit all
mode: An object with key results
that has an array as its value.Emit Individually
mode: Each object which fill the entire message.Executes custom request.
There is no configuration fields in this action.
https://graph.facebook.com/{API version}/
.GET
, POST
, DELETE
.Updates an existing or creates a new object.
Product Item
.Create new
operation is selected and Object Type is set to Product Item
:
Please note: Where to get Product Catalog ID
Object Type
.Update existing
operation is selected and Object Type is set to Product Item
:
Object Type
.Result object from upsert.
To find your Product Catalog ID:
Click here to learn more about the elastic.io iPaaS