Download Facebook file from the WhatsApp app on Meta Developers #148772
Replies: 1 comment 2 replies
-
Hi @jeanp74 |
Beta Was this translation helpful? Give feedback.
-
Hi @jeanp74 |
Beta Was this translation helpful? Give feedback.
-
Select Topic Area
General
Body
Hello, I am working on an integration with the WhatsApp app on Meta Developers for Facebook.
I am conducting tests, and when I send a message to the WhatsApp number of the app, it returns the ID that I can use to download that file. When I do it through the Postman app, it downloads the file correctly, but when I try to replicate it in PHP (since that's how the website works), the file does not download correctly, as if it were corrupted. I am doing it with cURL, and here’s the code I have:
When the file downloads, it gives me an error message that says:
However, the file does have the correct size, and when I print the cURL response, it shows the following:
I have the browser updated and everything, but it still doesn't work.
Honestly, I’ve been programming for a year, and I am new to cURL, and I don’t understand why it’s failing.
Beta Was this translation helpful? Give feedback.
All reactions