fbbotw.post_call_button

fbbotw.post_call_button(fbid, text, title, phone_number, messaging_type=’RESPONSE’, tag=None)[source]

Sends a call button for the specified user. The Call Button can be used to initiate a phone call on mobile.

Usage:
>>> # Set the user to send the button
>>> fbid = "<user page scoped id>"
>>> # Set text and title of the template
>>> response = fbbotw.post_call_button(
        fbid=fbid,
        text="Do you call an consultant?"
        title="Call now",
        phone_number="+112345678"
    )
Parameters:
  • fbid (str) – User id to send the call button
  • text (str) – Text to send with the button (Max 160 Chars).
  • title (str) – Button title (Max 20 Chars).
  • phone_number (str) – Format must have “+” prefix followed by the country code, area code and local number. For example, +16505551234.
  • messaging_type (str) – Identifies the message type from: RESPONSE, UPDATE AND MESSAGE_TAG (Default: RESPONSE, if MESSAGE_TAG, tag param is required)
  • tag (str) – Tag classifying the message, must be one of the following tags
Returns:

Response object

Facebook docs:

/call-button