Sync Facebook Leads with Odoo CRM
Sync Facebook Leads with Odoo CRM
Support of multiple Pages and multiple Lead Forms with advanced field mapping and automatic teams assignation.
Configuration
-
- Login to your Facebook account.
- Go to https://developers.facebook.com/apps and press Create App. Set the Display Name of your application and enter the Contact Email


-
- Go to the Settings section and choose Basic. From there you can get your App Id and App Secret

-
- On Odoo, go to “CRM/Configuration/Settings“. In Facebook Leads Settings paste your App Id and App Secret and click Get Access Token
- You will be redirected to facebook to give access to the app. Make sure to include all the pages you need to sync

-
- After granting access you will again be redirected to Odoo with an already generated access token. You can then click Get Pages to retrieve all the pages with their respective access token

- Go to “CRM/Configuration/Leads & Opportunities/Facebook Pages” and access the page you want to sync. You can use the button “Get Forms” to get all the forms associated with your Facebook page.
- For each form you can edit the mapping between Facebook fields and Odoo fields. Any Facebook field which is not mapped will go automatically in the description field of your lead. this way you will get all your lead info even if your Facebook form has fields which does not have an equivalent in Odoo. You can also assign a Salesteam for each form.
Usage
The cron job which is configured for an interval of 1 hour will automatically get all the leads which are not yet imported in the system.

You can also check related Facebook info for each lead.

The cron job can also be changed for narrower or bigger intervals.

Roadmap/Known issues
- There may be some compatibility issues for some field types. For example if the field type is Many2one the module will automatically search an adequate record by name, which is not always fault-tolerant. Other field types need also to be checked.
- The module will always import all the leads which are not in the system. So if you delete a lead it will be reimported the next time. the workaround, which is actually the correct thing to do is to archive (disable) the leads that you won’t be using.
- Support other Odoo Models (for example partners or mass mailing contacts).