skip to Main Content

I get message conversations via Facebook graph API which looks like:

https://graph.facebook.com/' + id + '/messages?fields=message

and I want to mark as read the message but I can’t find how to in documents.

please, can someone point me to some examples?

3

Answers


  1. You only have read access to the Inbox via the API. So this is not currently possible.

    Login or Signup to reply.
  2. You can set typing indicators or send read receipts using the API, to let users know you are processing their request.

    curl -X POST -H "Content-Type: application/json" -d '{
    "recipient":{
    "id":"<PSID>"
    },
      "sender_action":"typing_on"
    }' "https://graph.facebook.com/v2.6/me/messages?access_token=<PAGE_ACCESS_TOKEN>"
    
    Login or Signup to reply.
  3. Check below.

    sender action = mark_seen..
    I am using it and its working fine..

    https://developers.facebook.com/docs/messenger-platform/send-messages/sender-actions/

    curl -X POST -H "Content-Type: application/json" -d '{
    "recipient":{
    "id":"<PSID>"
    },
    "sender_action":"mark_seen"
    }' "https://graph.facebook.com/v2.6/me/messages?access_token=
    <PAGE_ACCESS_TOKEN>"
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search