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

ReactJS, NodeJS, MongoDB, Backend

in index.js, const express = require("express") const mongoose = require("mongoose") const cors = require("cors") const CustomerModel = require('./models/Customer') const app = express() app.use(express.json()) app.use(cors()) mongoose.connect("mongodb://localhost:27017/customer") app.post("/login", (req, res) => { const {email, password} = req.body CustomerModel.findOne({email: email}) .then(user => {…

VIEW QUESTION

Javascript and Excel DB

I made a Javascript nodejs project that stores data in Excel. I can access all columns in the entire file without any problems, but the value of the cells containing time information(12:30) is given as numbers(0.6423611111111112). Is it possible to…

VIEW QUESTION
Back To Top
Search