The Jazzbot™ – a Chatfuel Chatbot

I just built a chatbot for Jazzity using Chatfuel. Super easy, great fun.

The Jazzity Jazzbot™ tells you what’s on tonight for a number of jazz clubs in Berlin. You can either type in the jazz club you’re interested in, or you can pick from a list that’s presented to you. You can ask for additional details and have the Jazzbot show you the directions on Maps.

What’s great about Chatfuel is that you can query JSON APIs and assign the query results to variables that you can later use as part of the chat or control flow.

To that end, I have built a quick Jazzity API which just returns today’s programm for a given club. I might write about how I did that in a different post at some point.

Anyways… now go ahead and check out the Jazzity Jazzbot™ at https://www.facebook.com/jazzityhq/

read more

Customizing posts with the new Facebook API update

In an attempt to fight misleading news on their platform, Facebook has recently changed the way you can use their API to edit previews of posts. While before you could specify the header, preview text, and the image, this is no longer possible. Instead, Facebook picks the relevant information from the website that the post links to.

This article presents a solution to continue to post customizable post previews for certain contexts.

Facebook takes action to fight fake news

To fight misleading posts with false preview texts and misleading images,  Facebook has started to disable the ability for Pages to edit the previews of the links they post – both for the Page composer and the API.

Says Facebook (July 18, 2017):

By removing the ability to alter link metadata (i.e. headline, description, image) from all link sharing entry points on Facebook, we are eliminating a channel that has been abused to post false news. (…) Specifically all API versions will no longer support this capability, and Page admins will no longer be able to make these edits in Page composer. (source)

Now I’ve been doing exactly that with Jazzity: Everyday a cron job would run a script that took a few snippets from a data base and post them to Facebook using the API:

postPicture($post_message, $post_link, $post_picture, $post_name, $post_caption, $post_description);

The function postPicture (we’ll go into more details later) would take six parameters, which will make up the post as follows:

read more