Skip to Content
0
Jun 24, 2019 at 05:51 PM

SAP Conversational AI - FB Messenger Channel Generates Broken Image URLs

248 Views Last edit Jun 24, 2019 at 05:53 PM 3 rev

Hi experts,

I have built a simple bot that I have connected to the Facebook Messenger channel. When I use the Messenger app on my phone to send an image to the bot, it stores the image on Facebook's servers and generates a URL for the image as expected. On the CAI webpage for my bot, when I go to the "Monitor" tab, I can see this URL generated by Facebook. A few days ago, when I sent the bot an image and visited this generated link, I could view the image perfectly and I got a 200 response from the server.

-------------------------------------------------------------------------------------------------------------------------------------

-------------------------------------------------------------------------------------------------------------------------------------

-------------------------------------------------------------------------------------------------------------------------------------The images above show how the process should work. I send the bot an image, it receives it, I retrieve the generated URL from the "Monitor" tab in Conversational AI, and make a request to the URL using Postman to retrieve the image. Again, usually this is working just fine.

But recently, when taking a picture and generating a link and trying to visit it, I get the following error:

Bad URL timestamp

The response is returned with the HTTP status 403: Forbidden.

Any ideas why this could be happening?

Here is an example of a URL that I generated earlier this morning that does NOT work:

https://scontent.xx.fbcdn.net/v/t1.15752-9/65072779_2838125979535962_5777526002976555008_n.jpg?_nc_cat=102&_nc_oc=AQl-XM5I8DiY89o583qeymkCLuzlkzsn2YI8NvxfULPIE0t5rUX6vsa-Tf8dgmiZgVhPyjljBVKvp9q6tXGMz-dg&_nc_ad=z-m&_nc_cid=0&_nc_zor=9&_nc_ht=scontent.xx&oh=03844a6c6c4b63d8a19dc28bcb465ba6&oe=5D87D4A


Here is an example of a WORKING URL generated a few days ago (6/20/19):

https://scontent.xx.fbcdn.net/v/t1.15752-9/64547628_2286095991511658_135963980098174976_n.jpg?_nc_cat=109&_nc_ad=z-m&_nc_cid=0&_nc_zor=9&_nc_ht=scontent.xx&oh=2d71ec84d96e702d7ed65f7cfd050b80&oe=5D935242

I have not done anything differently when sending these images to the chatbot through Messenger. This seems like it could just be a problem with Facebook's servers, so could somebody else confirm this or offer a suggestion?

Things I have tried and ruled out as the problem:

  • Sending the image from Facebook on my desktop computer rather than from the Facebook Messenger app
  • Switching networks

Attachments

messenger.jpg (115.6 kB)
monitor.png (127.3 kB)
postman.png (354.8 kB)
postman.png (438.8 kB)