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

@@ -10,7 +10,9 @@ import {
INodeTypeDescription,
} from 'n8n-workflow';
import { OptionsWithUri } from 'request';
import {
OptionsWithUri,
} from 'request';
export class FacebookGraphApi implements INodeType {
description: INodeTypeDescription = {
@@ -22,7 +24,7 @@ export class FacebookGraphApi implements INodeType {
description: 'Interacts with Facebook using the Graph API',
defaults: {
name: 'Facebook Graph API',
color: '#772244',
color: '#3B5998',
},
inputs: ['main'],
outputs: ['main'],