Frappe Cloud
Marketplace
Search for an app
Frappe
Products
Insights
Not Available
installs
Publisher
Supported versions
Categories
E-Commerce
About
Mansico Meta Integration is an open-source application designed to seamlessly sync Facebook leads with ERPNext. When clients fill out Facebook Ads instant forms, the app automatically fetches the newly created leads and creates corresponding entries in the ERPNext Lead doctype. Additionally, when the Lead Status is updated in ERPNext, the new status is sent back to the Meta Pixel for tracking.
Before setting up the integration, ensure you have the following:
Meta Business Account: If you don’t already have one, create a Meta Business Account.
Meta App: Create a Meta App to access the Marketing API.
ERPNext Instance: A working ERPNext installation where the app will be installed.
To interact with the Meta Marketing API, you need to create a Meta App. Follow these steps:
Go to the Meta Developer Portal.
Click on Create App and select Business as the app type.
Complete the app creation process by providing the required details.
After creating your app, configure the Marketing API:
Navigate to Marketing API in your app settings.
Follow the setup wizard to enable the API for your app.
To authenticate your app, generate an access token for a Meta System User:
Go to Meta Settings > Users > System Users.
Add a new System User or use an existing one.
Assign the following permissions to the user:
leads_retrieval
manage_pages
ads_management
business_management
Generate a new access token for the user and copy it.
To track events and sync data, you need your Pixel ID and Pixel Access Token:
Go to Events Manager in your Meta Business Account.
From the left menu, select Data Sources and choose your Pixel.
In the Settings tab, locate your Pixel ID.
Generate a Pixel Access Token in the Create Endpoint section.
Download the Mansico Meta Integration app from the repository.
Install the app in your ERPNext instance using the Bench command:
bench get-app mansico_meta_integration
bench install-app mansico_meta_integration
Go to Meta Facebook Settings in ERPNext.
Paste the following details:
Access Token: The token generated in Step 3.
Pixel ID: The ID from Step 4. (Now Pixel ID Moved when creating page for adding more flexibility)
Pixel Access Token: The token from Step 4. (Now Pixel ID Moved when creating page for adding more flexibility)
API URL: Use the default Meta API URL (e.g., https://graph.facebook.com
).
Graph API Version: Specify the version (e.g., v16.0
).
Go to the Page ID doctype in ERPNext.
Add your Facebook Page Name and Page ID.
Pixel ID: The ID from Step 4.
Pixel Access Token: The token from Step 4.
Navigate to Sync New Lead.
Create a new sync job by specifying:
Event Frequency: Choose how often the app should fetch new leads (e.g., every 15 minutes).
Lead Status Mapping: Map Facebook lead statuses to ERPNext Lead statuses.
Choose Doctype Name in which leads will sync too.
Save and submit the sync job.
Go to Scheduled Job Type in ERPNext.
Locate the newly created sync job and click Execute to run it manually.
Check the Lead/CRM Lead doctype to confirm that new leads have been created.
No Leads Synced: Ensure the access token has the correct permissions and is not expired.
Incorrect Lead Status: Verify the status mapping in the sync job configuration.
API Errors: Check the ERPNext logs for detailed error messages and ensure the API URL and version are correct.
You can customize how Facebook lead fields map to ERPNext Lead fields by editing the Lead Mapping doctype.
This project is open-source, and contributions are welcome! To contribute:
Fork the repository.
Create a new branch for your feature or bug fix.
Submit a pull request with a detailed description of your changes.
This project is licensed under the MIT License. See the LICENSE file for details.
For support or questions, open an issue on the GitHub repository or contact the maintainers.
User Reviews
No reviews yet, be the first to review.
0 rating
Explore more apps