skip to Main Content

Javascript – Retrieving image as base64 from Meta Graph API

I uploaded a photo via WhatsApp, which can be accessed via: https://graph.facebook.com/v19.0/{imageId} Requesting this API returns the URL of the image: { "url": "https://lookaside.fbsbx.com/whatsapp_business/attachments/?mid={imageId}&ext={ext}&hash={hash}", "mime_type": "image/jpeg", "sha256": "fd9d5ac5bb84b8a0b7a3402c3a99ed9ff3e9fadb4fa567cd101eaf4923d2b375", "file_size": 667836, "id": "{imageId}", "messaging_product": "whatsapp" } Then, accessing this URL by…

VIEW QUESTION
Back To Top
Search