Odoo Facebook & Instagram Messenger Integration | Bidirectional Messaging | Lead Ads, Campaigns & AI | Both Odoo Community & Enterprise Editions
by TechUltra Solutions Private Limited https://www.techultrasolutions.com$ 18.81
Odoo Facebook & Instagram Messenger
Bidirectional Messenger and Instagram chat in Odoo through the official Meta Graph API. Connect pages, reply in Discuss, sync lead forms, run campaigns, and optionally answer with an AI assistant.
Messenger and Instagram inside Odoo
Connect Facebook Pages and Instagram professional accounts with the Meta Graph API. Messages, leads, forms, and campaigns stay in one Facebook & Instagram app — with optional AI answers from your knowledge base.
Graph API chat, Discuss inbox, connected accounts, operators, templates, CRM lead forms, campaigns, and AI knowledge — setup steps are on the Configuration tab.
Problems we solve
What you get in this module
Features
One screen per capability. Full setup with credentials, webhooks, and Meta steps is on the Configuration tab.
Dashboard for messages, forms, and ads
See open chats, first-response time, connected forms, campaign spend, and sync health in one place. Filter by Facebook or Instagram.
Connected accounts for chat
Each Facebook or Instagram page is a Connected account. On the Credentials tab set Graph API URL, token, and account IDs, then copy Callback URL / Verify Token for Meta webhooks.
Operators and chat assignment
Add operators on the connected account. Set stale-chat reassignment and the round-robin cursor so new chats rotate across the team.
Bidirectional chat in Discuss
Instagram and Messenger threads appear in Odoo Discuss with page icons. Agents reply with text and media; customers see the same conversation on Meta.
Message Templates
Build reusable Messenger templates: category (generic, button, media, coupon, and more), title, subtitle, image, and carousel elements.
Campaigns on Meta from Odoo
Fetch ad accounts, manage click-to-message or lead-form campaigns, set budget and countries, then Create on Meta or Update on Meta. Payment stays in Meta.
AI knowledge bases
Add FAQ text, attachments, website, or products to a knowledge base, then Reindex. The assistant answers from that material and can escalate to a human.
Configuration
Follow this guide in order. Each step explains what the feature does, which fields to fill, and which buttons to click (Fetch, Subscribe, Reload / Get Status, Create on Meta, Publish, and more). Meta Developer setup comes first, then Odoo Settings, Connected accounts, Operators, Discuss/Inbox, Templates, CRM and lead forms, Campaigns, and the AI assistant with knowledge bases.
- Official Graph API — Parts A–B (steps 1–8): Meta app, tokens, and the Odoo Settings hub so Odoo can talk to Facebook and Instagram.
- Connected accounts — Part C (steps 9–13): one Credentials record per page, webhooks, and Facebook/Instagram Pages with WEBHOOK ACTIVE.
- Operators — step 14: assign agents, stale-chat reassignment, and round-robin so chats reach the right person.
- Bidirectional chat & Discuss inbox — steps 17–18: message history plus Discuss replies that the customer sees on Meta.
- Message templates — step 16: reusable Messenger templates (generic, buttons, media, carousel).
- CRM and lead forms — steps 15, 19–20: auto-create leads from chats; map and sync Facebook/Instagram forms.
- Campaigns and AI — Parts F–G (steps 21–24): publish Meta campaigns from Odoo; connect the assistant and knowledge bases for automated answers.
Do this in the Meta Developer Console before touching Odoo. You need a live Meta app with Messenger and Instagram messaging, page permissions, and a page access token. Keep App ID, App Secret, and the token ready for step 8.
1. Create a Facebook Developers account
Open https://developers.facebook.com/ and sign in with the Facebook account that owns (or will own) the business pages.
2. Create and register the app
Click Create app, choose a name and contact email, then finish registration. Keep the App ID and App Secret (App settings → Basic) for Odoo Settings in step 8. If you already have a Meta app for messaging, open that app and skip to use cases.
3. Add Messenger and Instagram use cases
In the app Dashboard, open Use cases → Add use cases. Choose Business messaging, then select Messenger and Instagram and save.
Open Messenger API Settings and click Connect to link your Facebook Page.
4. Permissions and publish
Go to App Review → Permissions & Features and request the permissions required for messaging and lead ads (for example pages_messaging, pages_manage_metadata, leads retrieval as needed for your use case). Complete App Review when Meta requires it for live customers. When setup is complete, open Publish and make the app live — Development mode only works for app roles/testers.
5. Graph API Explorer (optional)
Use Graph API Explorer to test Messenger/Instagram requests before connecting Odoo.
6. Generate the page access token
In Messenger API Settings, select your Page and click Generate for the page access token. Copy it once into a password manager — you paste it into the Connected account Token field in step 9 (and optionally into Settings access token for Fetch Pages / Campaigns).
7. Instagram platform setup in Meta
For Instagram login / Instagram messaging, go to Use cases and click Customize on Instagram. Open API setup with Instagram login, add required permissions, then add the Instagram account. Webhook URL and Verify Token are pasted after you create the Odoo Instagram provider (steps 11–12).
Why this first: the Settings hub stores company-wide Meta credentials and can fetch pages and ad accounts once for the whole company. Install the module from Apps (search Facebook / Instagram Messenger), then complete step 8 before creating Connected accounts for chat.
8. Settings → Facebook / Instagram (hub)
What this does: company-level Meta login used for pages, lead forms, webhooks (leadgen), and ad accounts. Day-to-day chat tokens and Callback URL still live on each Connected account (Part C).
Go to Facebook & Instagram → Configuration → Settings. On the Facebook / Instagram app page:
- App credentials — enter App ID, App Secret, Graph API version, and OAuth URL from Meta Developers. After both ID and Secret are filled, click Connect Meta to complete the Meta login for this company.
- Access token — paste the company access token (or keep the one from Connect Meta). Then use:
- Fetch Pages — imports Facebook Pages into Odoo.
- Fetch Instagram Pages — imports Instagram professional accounts linked to those pages.
- Fetch ad accounts — imports Meta Ads accounts for Campaigns (Part F).
- Webhook configuration — set a custom Verify token; copy the read-only Webhook URL (clipboard widget) into Meta for Page leadgen. Click Subscribe All Pages so every fetched page receives lead/webhook events. Production needs HTTPS; localhost only works with a tunnel (for example ngrok).
- Polling limits (optional) — reconcile hours and max leads per sync as a backup if a webhook is missed.
Save the Settings form after changes. Multi-company: each company connects its own Meta login.
Then configure Facebook Login for Business in Meta (required for Connect Meta and App Review compliance). In Meta for Developers, open your app → Facebook Login for Business → Settings:
- Valid OAuth Redirect URIs — paste every Odoo callback URL your site uses for Meta login (for example
https://your-odoo-domain/social_facebook/callback, Instagram callback, and CRM / lead OAuth paths). One URI per line. Domains must use HTTPS. - Turn Login from devices and Login with the JavaScript SDK to Yes if you use browser or device login flows.
- Allowed Domains for the JavaScript SDK — add your Odoo base domain only (for example
https://your-odoo-domain), without path segments. Local tunnels (ngrok) belong here only while testing.
- Data Deletion Request URL — paste your public Odoo (or HTTPS tunnel) base URL. Meta sends user data-deletion callbacks here when someone requests removal of their data. Production must be a stable HTTPS endpoint you control.
- Leave Deauthorize callback URL empty unless you implement a dedicated deauthorize endpoint.
- Click Save Changes at the bottom of the Meta page, then return to Odoo and use Connect Meta again if the first login failed.
What this unlocks: bidirectional Messenger/Instagram chat. Menu: Configuration → Connected accounts (model messenger.provider). Create one record per Facebook Page and one per Instagram account. Tabs: Credentials (API + webhook URL), Operators (agents), CRM (auto leads). AI is linked from Assistants (Part G), not from a separate tab here.
9. Create the Facebook connected account (chat)
What this does: stores the page access token Odoo uses to send/receive Messenger messages and builds the Callback URL Meta will call.
Go to Facebook & Instagram → Configuration → Connected accounts → New (or open an existing page). Stay on the Credentials tab.
- Set Provider to Graph API, State to Enabled, and Meta Platform to Facebook. Set the company if you use multi-company.
- Enter Graph API URL (for example
https://graph.facebook.com/v21.0/) and paste the page Token from Meta (step 6). - Set Authentication to Bearer Token, then Save. Confirm Authenticated is checked (Username / Account ID fill from Meta when status is OK).
- Click Reload / Get Status (refresh button on the Credentials tab). Odoo shows the Callback URL — copy it for the next step. If authentication fails, re-check the token and Graph API version, then Reload again.
10. Configure Messenger webhooks in Meta
What this does: tells Meta where to push inbound messages so they appear in Odoo Discuss and message history.
- In Meta Developers, open your app → Messenger API Settings → Configure webhooks.
- Paste the Callback URL from Odoo (step 9) and the same Verify Token you use in Odoo Settings / provider.
- Click Verify and save. If verification fails, confirm the Odoo URL is reachable over HTTPS and the verify token matches exactly.
- Subscribe webhook fields at least messages and messaging_referrals (add message_deliveries / message_reads if you need delivery status).
11. Create the Instagram connected account (chat)
What this does: same as Facebook, but for Instagram Direct. Create a second Connected account; do not reuse the Facebook record.
- New connected account → Meta Platform = Instagram, Provider = Graph API, State = Enabled.
- On Credentials, set Graph API URL to Instagram (for example
https://graph.instagram.com/v20.0/), paste the Instagram access token, set Bearer Token, Save. - Click Reload / Get Status and copy the Instagram Callback URL for step 12.
12. Configure Instagram webhooks in Meta
In Meta Instagram / API setup with Instagram login, paste the Instagram Callback URL and Verify Token from Odoo, click Verify and save, and subscribe to messages and messaging_referrals. Send a test DM to the Instagram business account afterward; it should appear under Instagram Messages (step 17).
13. Confirm Facebook Pages and Instagram Pages
What this does: the page records link Meta Page IDs to your company for lead forms, campaigns, and webhook subscription status.
- Open Configuration → Facebook Pages and Instagram Pages. Confirm each page has the correct company and Page / Account ID (created by Fetch Pages in Settings, or manually).
- Open a page form. If the ribbon shows WEBHOOK ACTIVE, Meta is subscribed. If not, click Subscribe Webhook.
- Click Fetch Forms to pull lead forms from that page into Facebook Forms / Instagram Forms (step 20).
14. Operators tab — assign agents
What this does: routes new Messenger/Instagram Discuss channels to human agents and reassigns abandoned chats.
- On the Connected account, open the Operators tab.
- Use Add a line / the operator kanban to add internal users who should receive chats. Only non-portal users appear.
- Under Chat assignment, set Stale chat reassignment (minutes) — after that idle time, a cron moves the chat to the next operator.
- Assignment round-robin cursor is read-only; Odoo advances it automatically so new chats rotate across operators.
- Save. Without operators, new chats may stay unassigned in Discuss.
15. CRM tab — auto-create leads
What this does: when a customer starts a Messenger/Instagram chat, Odoo can create a CRM lead/opportunity with defaults for that page.
- Open the CRM tab on the same Connected account.
- Enable Auto-create CRM leads — the other fields appear only when this is on.
- Set Default salesperson, Default sales team, Lead type (Lead or Opportunity), and Closed CRM stages (for example Won) so closed pipelines are recognized.
- Save. New chats then create leads (see step 19). Lead forms from Ads are configured separately in step 20.
What this unlocks: reusable Messenger templates, the audit log of every message, and bidirectional chat in Odoo Discuss so agents reply once and the customer sees it on Meta.
16. Message Templates — list and form
What this does: reusable structured messages (text, buttons, media, carousel) you send from Odoo instead of typing the same reply each time.
- Go to Configuration → Templates. The list shows Name, Template Category, Platform, Applies to, and State.
- Click New. Choose a category (generic, button, media, coupon, customer feedback, and more), platform (Messenger / Instagram where applicable), and set title, subtitle, image, and buttons.
- For carousels, add elements on the form (Meta allows up to 10). Set State to Active when ready.
- How to use: from Discuss or the compose wizard on a partner/channel, pick the template and send — the customer receives the structured message on Meta.
17. Facebook and Instagram message history
What this does: flat audit log of every inbound and outbound message (separate from the conversational Discuss UI).
- Open Inbox → Facebook Messages or Instagram Messages.
- Filter by provider (connected account), author, message type, and attachments.
- After webhook setup (steps 9–13), send a test message from Meta; a new row here confirms delivery into Odoo. Empty list usually means Callback URL / subscription is wrong.
18. Reply from Discuss (customer view on Meta)
What this does: live bidirectional chat — agents work in Odoo Discuss; customers stay in Facebook Messenger or Instagram.
- Open the main Discuss app. Channels for Instagram / Messenger show the page name and platform icon.
- Type in the composer and press Enter (or attach media). Odoo sends via Graph API; the customer sees the reply on Meta within seconds.
- Assigned operators (step 14) get the channel; others can join if they have Discuss rights. Optional: send a Message Template from the channel actions.
- Confirm on the customer phone / Facebook Inbox that the same thread updated.
What this unlocks: auto leads from Messenger/Instagram chats (CRM tab), plus sync of Facebook/Instagram lead ads forms into Odoo CRM with field mapping.
19. Leads from chats
What this does: shows CRM leads created automatically when chats start (after step 15).
- Open Leads (or CRM → Leads / Pipeline depending on lead type).
- New Messenger/Instagram contacts appear with salesperson and team from the Connected account CRM tab.
- If empty: enable Auto-create CRM leads (step 15), confirm Operators, and that the page shows WEBHOOK ACTIVE (step 13). Then send a new test chat.
20. Facebook Forms and Instagram Forms
What this does: maps Meta Lead Ads form fields to Odoo CRM and pulls submissions on demand or via webhook.
- Prefer starting from a Page → Fetch Forms (step 13), or open Facebook Forms / Instagram Forms → New.
- On the form: set page, company, sales team; map each Meta question to an Odoo field (name, email, phone, and custom fields).
- Refresh Fields — reloads the question list from Meta if the form changed.
- Guess Mapping — suggests Odoo fields from Meta labels; review before trusting.
- Sync Leads — pulls new submissions into CRM now. Total leads / last sync update on the list view.
What this unlocks: manage click-to-message and lead-form campaigns from Odoo. Payment always stays in Meta Ads Manager — Odoo only creates/updates campaign structure and refreshes results.
21. Fetch ad accounts and manage campaigns
What this does: links a Meta ad account to Odoo and lists campaigns with spend, leads, and ROAS.
- Go to Campaigns / Ad Accounts (after Settings has a Meta access token).
- Fetch ad accounts — imports accounts for this company. Link Facebook page and Instagram page on the form if not filled automatically.
- Find pixel — looks up the Meta pixel for the account (optional for events).
- Refresh campaigns — reloads live status, spend, and results from Meta.
- On each campaign line: Create on Meta (first publish), Update on Meta (name, budget, countries, message), Activate / Pause for live control. Goal/destination cannot change after create.
22. Create a campaign
What this does: drafts a campaign in Odoo, then publishes it to Meta when you are ready to spend.
- On the ad account, click Add a line (or open a campaign form). Fields marked as filled from Meta come from Fetch ad accounts.
- Set Name, launch Status, Opens in / platform (Messenger or Instagram), Goal (Click to message or Lead form), Daily budget, Countries, and the ad Message customers see.
- For Lead form goal, select the Facebook or Instagram lead form (from step 20) before publishing.
- Save — keeps a draft in Odoo only (no spend).
- Create on Meta — publishes. Active status starts spending on Meta. Later use Update on Meta or Refresh from Meta to sync changes and results.
What this unlocks: automated answers on Facebook/Instagram from your FAQ and documents, with jobs that call Odoo (orders, invoices, knowledge search) and escalate to a human when needed. Finish chat credentials (Part C) before testing live customer messages.
23. Connect AI and choose jobs
What this does: one company assistant profile that replies on selected Connected accounts using an AI provider and ticked Odoo jobs.
Go to Configuration → Assistants and open the company assistant. Work top to bottom:
- Header buttons: Publish (go live), Set to draft (pause AI), Setup health / Check readiness (diagnose missing config), New bot from description (wizard), Ensure default knowledge, Activity summary.
- Link messenger providers / pages (tags) so only those pages use this assistant. Set tone, languages, OTP safeguards if needed.
- Connect AI — choose provider (OpenAI, Groq, Gemini, Claude, …), paste API key, set model, enable data-processing consent, Save. Until the key is saved, live chats cannot get AI replies.
- Safeguards — daily cost cap, max turns per customer/hour, conversation turn limits.
- What this bot can do — tick only jobs this business should use (sell, orders, invoices, knowledge, CRM, support escalation, events, appointments, …). Unticked jobs are not called.
- Tabs: How to set this up, Business profile, Knowledge (link bases from step 24), System Prompt, Advanced, Advanced Tools.
- Try a message — type a customer sentence and click Test this message. Nothing is sent to Meta and no CRM record is created. Use Reset preview to clear.
- When ready, click Publish. Status bar moves from draft to published.
24. Knowledge bases and publish
What this does: indexes your FAQ and documents so the assistant can answer from company content instead of inventing facts. Requires the Knowledge job ticked on the assistant.
- Open Configuration → Knowledge bases → New (FAQ, how-to, shipping, policy, …).
- On the base form, add sources: Attachment, Products, FAQ Text, Website, or Manual Text.
- Click Reindex after every content change so embeddings update. Prefer ChromaDB for production indexing.
- On the assistant Knowledge tab (step 23), link these bases, then Publish the assistant.
- How to verify: use Test this message with a question covered by your FAQ; then send a real DM on a linked page and confirm the reply appears in Discuss.
Support
Questions about Meta app setup, webhooks, providers, lead forms, campaigns, or the AI assistant — message us on WhatsApp or email.
Scan the QR or tap the button.
Open WhatsApp
Integration issues: 90 days free. Extra work is billed. Odoo × Facebook / Instagram account setup is $100.
support@techultra.in- Modules are for one database; resale is not allowed.
- Support hours: Monday–Friday, 10:00 AM–7:00 PM IST.
- Odoo × Facebook / Instagram account setup: $100.
Release Notes
| Version | Details |
|---|---|
| Latest — 1.5 |
Facebook & Instagram for Odoo 19
|
| 1.4 | Documentation and screenshot updates; Odoo 19 compatibility improvements. |
| 1.1 | Instagram integration via Instagram platform; thread name uses partner name; bug fixes. |
| 1.0 | Initial release: Messenger / Instagram Graph API messaging in Odoo. |
Frequently Asked Questions
Related Products
WhatsApp, omni-channel, and complementary Meta modules
Ready for Messenger and Instagram in Odoo?
Odoo Gold Partner · Meta Business Partner
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
CRM (crm)
• Discuss (mail) • Calendar (calendar) • Contacts (contacts) |
| Lines of code | 52914 |
| Technical Name |
odoo_facebook_instagram_messenger |
| License | OPL-1 |
| Website | https://www.techultrasolutions.com |
Odoo Proprietary License v1.0 This software and associated files (the "Software") may only be used (executed, modified, executed after modifications) if you have purchased a valid license from the authors, typically via Odoo Apps, or if you have received a written agreement from the authors of the Software (see the COPYRIGHT file). You may develop Odoo modules that use the Software as a library (typically by depending on it, importing it and using its resources), but without copying any source code or material from the Software. You may distribute those modules under the license of your choice, provided that this license is compatible with the terms of the Odoo Proprietary License (For example: LGPL, MIT, or proprietary licenses similar to this one). It is forbidden to publish, distribute, sublicense, or sell copies of the Software or modified copies of the Software. The above copyright notice and this permission notice must be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Please log in to comment on this module