Location

📘

Location Messages are only Received

On Facebook Messenger, location messages cannot be sent however they can be received from the user, see Receive Message webhooks.

{
  "channel": { ... },
  "contact": { ... },
  "content": {
    "type": "location",
    "payload": {
      "latitude": 50.0902163,
      "longitude": 14.3973905
    }
  }
}

Parameter

Type

Description

content.type

string

Message type location.

content.payload.latitude

double

Location sent by user - latitude.

content.payload.longitude

double

Location sent by user -
longitude.