Skip to content

Conversation

@engahmed1190
Copy link

Summary

  • After adding a sync source, if new forms are created on Facebook, there was previously no way to sync those new forms
  • This adds a refresh button next to the Facebook Page dropdown that re-fetches pages and forms from Facebook and creates any new ones

Changes

  • Add refresh_facebook_forms API endpoint in facebook.py
  • Add is_new flag to track newly synced pages/forms
  • Add refresh button with loading state in LeadSyncSourceForm.vue
  • Display toast messages showing count of new pages/forms synced

Test plan

  • Create a Facebook Lead Sync Source with an access token
  • Create a new form on Facebook Lead Ads
  • Click the refresh button next to the Facebook Page dropdown
  • Verify the new form appears in the Lead Form dropdown
  • Verify appropriate toast messages are shown

After adding a sync source, if new forms are created on Facebook,
there was previously no way to sync those new forms. This adds a
refresh button next to the Facebook Page dropdown that re-fetches
pages and forms from Facebook and creates any new ones.

- Add `refresh_facebook_forms` API endpoint
- Add `is_new` flag to track newly synced pages/forms
- Add refresh button in LeadSyncSourceForm UI
@engahmed1190
Copy link
Author

#1455 @NagariaHussain , Please review this change as it was important for us to have this synced

@NagariaHussain
Copy link
Collaborator

Can you add screenshots / video?

@NagariaHussain NagariaHussain self-assigned this Dec 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants