question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Receiving an attachment using Facebook Bot

See original GitHub issue

I’m using NodeJS and I managed to get my Bot working with regular messages on Facebook Messenger (plain text).

However, when I send my location, picture or any sort of attachment, I don’t get any messages on my listener, until it fails with :

at=error code=H12 desc="Request timeout" method=POST path="MY_PATH" host=MY_HOST request_id=XXX fwd="XXX.XXX.XX.XXX" dyno=web.1 connect=1ms service=30002ms status=503 bytes=0

Is this some sort of bug? One of the main features of my application involves receiving the user’s location.

Thanks!

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
matheus208commented, May 9, 2016

When i tested their API, I managed to send my location as an attachment tomy Bot on the Messenger app for Android and I received, on my webhook, a message which had as an attachment a latitude & longitude JSON object with my location…

0reactions
tomlmcommented, Jul 15, 2016

I think that’s right, BTW: we should be mapping the location information into the Entities[] array as a GeoCoordinate object.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Attachment Upload API - Messenger Platform - Documentation
The Attachment Upload API allows you to upload assets that can be sent in messages at a later time. This allows you to...
Read more >
Receiving an attachment using Facebook Bot #235 - GitHub
I'm using NodeJS and I managed to get my Bot working with regular messages on Facebook Messenger (plain text).
Read more >
How To Send Attachments in Facebook Messenger - Alphr
How to Send Attachments in Messenger on the Android App · From your “Home” screen, head to your Google Drive app (or wherever...
Read more >
Is there a safe way to open a possibly spam facebook ...
Alternatively, is it possible to forward a facebook private message? Or somehow open that attachment without logging in to facebook, or get ......
Read more >
How to receive an image in a Facebook Messenger bot
I am not sure what language you are using to code your bot but since you are referring to the facebook documents where...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found