Send and receive direct messages on Facebook, Instagram, and X/Twitter
Available on Business, Enterprise plans.
The Messaging API allows you to manage direct messages (DM) to correspondents who contact your User Profiles.
A correspondent is the person with whom your user (User Profile) is communicating with.
A conversation is a series of messages between your user (User Profile) and their correspondent.
The Messaging API is included with all Ayrshare Business Plans and as a paid
add-on for Premium plans.
For both Business and Premium plans, you must activate Messaging in the
Account page of the Ayrshare dashboard.
Messaging is available for Facebook Messenger, Instagram Direct Messenger,
and X Direct Messages.
You must first enable messaging for your overall Ayrshare account to manage DMs. In the Ayrshare dashboard go to the Account page and click to “Learn More” button and then “Enable”. At this point you have enabled messaging for your overall account, but have not activated messaging for individual User Profiles.You can activate messaging for individual User Profiles either in the User Profiles page by clicking “Messaging Active” checkbox for each profile or using the create or update profiles endpoint.After enabling messaging for a User Profile, you must relink the social account (Facebook and Instagram) in the Social Accounts/Social Linking page.
Once enabled you will see the “Messaging” badge on the linked social account.
A conversation must be initiated by the correspondent. Once a conversation
is established, you may then freely send messages, receive messages, get
reactions (e.g. thumbs ups), or get read receipts on behalf of your users.
Your user must respond to an Instagram conversation within 7 days of the last
message the correspondent sent. If the correspondent has not sent a message in
7 days the conversation is considered inactive and cannot be responded to.
Message History Retrieval for Facebook and Instagram
When you first enable messaging for a user profile with a linked Facebook or
Instagram, there are important limitations on accessing conversation history:
Once messaging is enabled, all new messages sent and received will be
fully accessible
Ayrshare maintains complete conversation history going forward
For example: If you initially retrieve 20 messages, then 100 new messages
are exchanged, you’ll be able to access all 120 messages total
This limitation only applies to historical messages that existed before enabling
messaging - all future conversation activity for Facebook and Instagram will be
fully preserved and accessible.
Messaging Control Issues on Facebook and Instagram
Meta (Facebook and Instagram) uses a “thread control” system for messaging conversations. This means only one app can send messages in a conversation at a time, while other apps can only receive messages.
To allow Ayrshare to send messages again, you need to remove the third-party app that’s controlling the conversation.
Please note that Meta (Facebook and Instagram) may update the process for removing third-party apps, so use the following steps as a general guideline.For Facebook Pages: