CallMeBot API can now send text messages (like notifications) and images through Facebook Messenger! Super easy using one simple API call from any device (Home Assistant, Uptime Robot, OpenHab, ioBroker, IFTTT, etc...). Imagine the posibilities!!!

Messages and images are delivered super fast! I'm impressed.

Setup:

You need to get a personal APIkey before using the API. So only you can send messages to yourself. 

Just follow these simple steps:

  1. Start a Facebook Messenger conversation with @api.callmebot. Or click here: https://m.me/api.callmebot
  2. Send "create apikey" to @api.callmebot (using Facebook Messenger of course)
  3. The bot will generate a secure apikey for you.
  4. The bot will answer you with your personal apikey .

You can now start sending notifications to yourself through Facebook Messenger.

Example of apikey generation:

5. Enjoy

How to send a Text notification through Facebook Messenger

https://api.callmebot.com/facebook/send.php?apikey=[your_apikey]&text=[message]

[your_apikey]: The apikey that you received during the activation process (step 4-5 above)
[text]: Message to send (urlencoded). You can use this online converter to encode the message. (i.e. %20 for space, %0A for new lines). Facebook Messenger formatting characters are allowed (i.e "*" for bold, etc.  but it will be only visible in the Web Client). Check here how to include emoticons in the message 👍.


Example:

https://api.callmebot.com/facebook/send.php?apikey=1234567890&text=This+is+a+test+from+my+appliance+%F0%9F%98%84

How to send an Image through Facebook Messenger

https://api.callmebot.com/facebook/send.php?apikey=[your_apikey]&image=[image_url]

[your_apikey]: The apikey that you received during the activation process (step 4-5 above)
[image_url]: URL of the image to send. The URL has to be urlencoded. You can use this online converter to encode the message. (i.e. %20 for space).

Example:

https://api.callmebot.com/facebook/send.php?apikey=1234567890&image=https://d17fnq9dkz9hgj.cloudfront.net/breed-uploads/2018/08/beagle-card-medium.jpg


Cooming soon

Very soon, the Bot will allow users to create their own commands and buttons to send GET/POST requestes to your devices based on customizable commands. For example, to turn on a light or arm the alarm.

Problems?

If you have problems, like not receiving the Call on Telegram, or not receiving the WhatsApp messages,  try to test the CallMeBot API using your Web Browser:

  • Telegram Phone Calls using Web Browser: here
  • Telegram Text Messages using Web Browsers: here
  • WhatsApp Text Messages using Web Browser: here

You might get some errors on the screen that will help you to identify the problem. (Ex: Calls disabled in the Telegram Security Settings, WhatsApp not activated, etc.)

If you still have problems using the API, don’t hesitate to contact me in Telegram @callmebot_com or by email at [email protected]. Remember to Follow me on Twitter to get news about coming features, changes, invitations, etc.