Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Facebook Leads Trigger: additional OAuth scopes needed #7615

Closed
spatialy opened this issue Nov 6, 2023 · 2 comments
Closed

Facebook Leads Trigger: additional OAuth scopes needed #7615

spatialy opened this issue Nov 6, 2023 · 2 comments
Labels

Comments

@spatialy
Copy link
Contributor

spatialy commented Nov 6, 2023

Describe the bug
The current implementation cannot load a list of Pages when the user has been given permissions through a Business Manager, a common use-case when working with clients' assets where the permission access settings are not at the Page level but at the Business Manager level.

To Reproduce
Steps to reproduce the behavior:

  1. Add permissions to a BM user through the BM system (the user cannot be directly on the Page Level permissions)
  2. Add node and establish an auth permissions
  3. Try to select/search this page in the node page list

This can be reproduced on the Facebook API Explorer. Do the same and see the pages you can get a page_token on the list, add business_management to the permissions list and refresh the user_token, and then the Pages you have access only through a Business Manager are correctly listed.

Expected behavior
All Facebook Pages listed, without regard to what level you get your access permissions.

SOLUTION
Add business_management to file packages/nodes-base/credentials/FacebookLeadAdsOAuth2Api.credentials.ts

Environment (please complete the following information):

  • n8n Version: 1.14.0 cloud-hosted
@Joffcom
Copy link
Member

Joffcom commented Nov 6, 2023

Hey @spatialy,

I am closing this as you already created a PR and a topic on the forum here: https://community.n8n.io/t/facebook-lead-trigger-issue-with-permissions/32500/3

@Joffcom Joffcom closed this as completed Nov 6, 2023
Joffcom pushed a commit that referenced this issue Nov 8, 2023
… business management (#7616)

Github issue / Community forum post (link here to close automatically): 

Community:
https://community.n8n.io/t/facebook-lead-trigger-issue-with-permissions/32500

GH Issue: #7615
@janober
Copy link
Member

janober commented Nov 8, 2023

Fix got released with n8n@1.16.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants