Small changes to Facebook Trigger Node

This commit is contained in:
Jan Oberhauser
2020-11-04 12:26:09 +01:00
parent ff9964e10b
commit d80d486e59
4 changed files with 8 additions and 8 deletions

View File

@@ -41,7 +41,7 @@ export class FacebookTrigger implements INodeType {
outputs: ['main'],
credentials: [
{
name: 'facebookGraphSubscriptionApi',
name: 'facebookGraphAppApi',
required: true,
},
],
@@ -216,7 +216,7 @@ export class FacebookTrigger implements INodeType {
const res = this.getResponseObject();
const req = this.getRequestObject();
const headerData = this.getHeaderData() as IDataObject;
const credentials = this.getCredentials('facebookGraphSubscriptionApi') as IDataObject;
const credentials = this.getCredentials('facebookGraphAppApi') as IDataObject;
// Check if we're getting facebook's challenge request (https://developers.facebook.com/docs/graph-api/webhooks/getting-started)
if (this.getWebhookName() === 'setup') {
if (query['hub.challenge']) {