Add Facebook Trigger Node (#1106)

*  Facebook trigger from webhooks

Uses tokens just like the GraphQL API but this one requires an app token
instead of an user access token.

*  Improvements
:zap Improvements

* 🐛 Fix credential file name

Co-authored-by: Omar Ajoue <krynble@gmail.com>
This commit is contained in:
Ricardo Espinoza
2020-11-04 06:25:18 -05:00
committed by GitHub
parent 28b0c87136
commit ff9964e10b
6 changed files with 331 additions and 2 deletions

View File

@@ -0,0 +1,21 @@
import {
ICredentialType,
NodePropertyTypes,
} from 'n8n-workflow';
export class FacebookGraphSubscriptionApi implements ICredentialType {
name = 'facebookGraphSubscriptionApi';
displayName = 'Facebook Graph API';
extends = [
'facebookGraphApi',
];
properties = [
{
displayName: 'APP Secret',
name: 'appSecret',
type: 'string' as NodePropertyTypes,
default: '',
description: '(Optional) When the app secret is set the node will verify this signature to validate the integrity and origin of the payload.',
},
];
}