PaaBliiTo
PaaBliiTo

Reputation: 105

Get all the conversations from a page with Facebook Graph API

My main goal is to make a dashboard on my personal website that contains all the conversations from my facebook page and where we could also send messages.

The idea here would be that my support team just logs into my website and could answer client's questions asked through the facebook page.

The thing is that I want to get all the chat logs to create a view for the support team to have a clear view of the conversation. I know that there is a reference called /{conversation-id}/messages but I can't seem to figure out how to get a list of all the conversation-ids available on the page.

I guess it would make it easier to do it with these informations.

Upvotes: 3

Views: 9878

Answers (2)

steamdragon
steamdragon

Reputation: 1170

  1. List page conversations: /{page-id}/conversations
  2. List messages in the conversation: /{conversation-id}/messages
  3. Get item: /{message-id}

https://developers.facebook.com/docs/graph-api/reference/page/conversations https://developers.facebook.com/docs/graph-api/reference/v7.0/message

Upvotes: 0

C3roe
C3roe

Reputation: 96226

To get all conversations a page is involved in, you start at /page-id/conversations

From there you get the conversation threads, and the individual messages can be found in those.

https://developers.facebook.com/docs/graph-api/reference/page/conversations

Upvotes: 4

Related Questions