v 14.0 Third Party 78
Download for v 14.0 Deploy on Odoo.sh
Required Apps CRM (crm)
Included Dependencies
Lines of code 5529
Technical Name sync_facebook
Websitehttps://apps.odoo.com/apps/modules/14.0/sync
You bought this module and need support? Click here!
Required Apps CRM (crm)
Included Dependencies
Lines of code 5529
Technical Name sync_facebook
Websitehttps://apps.odoo.com/apps/modules/14.0/sync

Facebook Integration

Connect Facebook to Odoo

Version: v14.0.1.0.0


Tested and maintained by
IT Projects Labs
Assitance: help@itpp.dev

Current possibilities:
  • Sync Leads Facebook => Odoo
To package custom integration into a module, use Sync Studio. It allows exporting scripts and event handlers as xml data file for Odoo module.

Facebook Integration

Facebook configuration

Facebook App

  • Create new Facebook App
    • App type: Business
    • Apps Purpose: Yourself or your own business
  • In Facebook App page open Settings >> Basic to get App ID and App Secret

Facebook Page

  • Select your page or create new one
  • Get Page ID from Page url. For example, for Page https://www.facebook.com/Facebook-intergration-testing-123456789 Page ID is 123456789

Facebook Page: Lead Ad

  • Create a Lead Ad via menu Publishing Tools >> Forms Library
  • Once form is created, click [Create Ad] button

Facebook Page: Access Token

  • Open Graph API Explorer
  • Select Facebook App
  • Select option "User Access Token"
  • Select required permisions, e.g.:
    • public_profile
    • pages_show_list
    • pages_read_engagement
    • leads_retrieval
    • pages_manage_metadata

You can ignore warning "Submit for Login Review". It just means that you cannot work with Facebook Pages where you don't have a role.

Installation

  • Install this module in according to Sync Studio Documentation

  • Install python packages:

    python3 -m pip install facebook_business

  • Due to Odoo limitations, one of the following workarounds should be applied on setting up webhooks:

    • delete line that raise exception in case of type mismatching (search for Function declared as capable of handling request of type in standard Odoo code). In most cases, this workaround doesn't need to be reverted
    • open file sync/controllers/webhook.py and temporarily change type="json" to type="http"

Configuration

  • Open menu [[ Sync Studio ]] >> Sync Projects
  • Choose Facebook project
  • Go to Parameters tab
  • Click [Edit]
  • Set Parameters and Secrets:
    • APP_ID
    • APP_SECRET
    • PAGE_ID
    • USER_ACCESS_TOKEN
  • Click [Run Now] button in GENERATE_PAGE_ACCESS_TOKEN
  • Click [Run Now] button in SETUP_APP
  • Click [Run Now] button in SETUP_PAGE_WEBHOOK

Usage

Lead Ads

Create a lead in facebook and check that it's synced to Odoo

Please log in to comment on this module

  • The author can leave a single reply to each comment.
  • This section is meant to ask simple questions or leave a rating. Every report of a problem experienced while using the module should be addressed to the author directly (refer to the following point).
  • If you want to start a discussion with the author, please use the developer contact information. They can usually be found in the description.
Please choose a rating from 1 to 5 for this module.