n8n/packages/nodes-base/credentials/FacebookLeadAdsOAuth2Api.credentials.ts
Elias Meire ac814a9c61
feat(Facebook Lead Ads Trigger Node): Add Facebook Lead Ads Trigger Node (#7113)
Github issue / Community forum post (link here to close automatically):
https://community.n8n.io/t/facebook-lead-ads-integration/4590/19

---------

Co-authored-by: Marcus <marcus@n8n.io>
2023-10-20 13:43:55 +02:00

53 lines
1.1 KiB
TypeScript

import type { ICredentialType, INodeProperties } from 'n8n-workflow';
export class FacebookLeadAdsOAuth2Api implements ICredentialType {
name = 'facebookLeadAdsOAuth2Api';
extends = ['oAuth2Api'];
displayName = 'Facebook Lead Ads OAuth2 API';
documentationUrl = 'facebookleadads';
properties: INodeProperties[] = [
{
displayName: 'Grant Type',
name: 'grantType',
type: 'hidden',
default: 'authorizationCode',
},
{
displayName: 'Authorization URL',
name: 'authUrl',
type: 'hidden',
default: 'https://www.facebook.com/v17.0/dialog/oauth',
required: true,
},
{
displayName: 'Access Token URL',
name: 'accessTokenUrl',
type: 'hidden',
default: 'https://graph.facebook.com/v17.0/oauth/access_token',
required: true,
},
{
displayName: 'Scope',
name: 'scope',
type: 'hidden',
default: 'leads_retrieval pages_show_list pages_manage_metadata pages_manage_ads',
},
{
displayName: 'Auth URI Query Parameters',
name: 'authQueryParameters',
type: 'hidden',
default: '',
},
{
displayName: 'Authentication',
name: 'authentication',
type: 'hidden',
default: 'header',
},
];
}