Text Message

Send plain text messages using the Send API.

Example

curl -X POST -H "Content-Type: application/json" -d '{
  "recipient":{
  	"id":"USER_ID"
  },
  "message":{
  	"text":"hello, world!"
  }
}' "https://graph.facebook.com/v2.6/me/messages?access_token=PAGE_ACCESS_TOKEN"    

Fields

message object

Property Name Description Required

text

Message text

Y

Notes:

  • text must be UTF-8 and has a 640 character limit

  • You cannot send a text and an attachment together, please read the Send API Reference for more details