Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

317
Views
API de suscripción de Instagram obtener respuesta hub.challenge

Estoy leyendo los documentos de la API de Instagram https://www.instagram.com/developer/subscriptions/

Y entiendo los pasos necesarios.

pero en esta linea

 In order to verify the subscription, your server must respond to the GET request with the hub.challenge parameter only:

Después de que Instagram envía una solicitud POST a mi devolución de llamada, cuando dicen "el servidor debe responder a la solicitud GET", eso significa que cuando llaman a mi devolución de llamada GET, envío instantáneamente una solicitud de publicación dentro de la devolución de llamada GET. Dentro de esta solicitud de publicación, envío el hub.challenge a " https://api.instagram.com/v1/subscriptions/ "

así que algo como

 getInstagramSubscription(req,res){ //Grab hub.challenge and send post request to https://api.instagram.com/v1/subscriptions/ },

Intenté usar instagram-node-lib

 getInstagramSubscription(req,res){ var handshake = Instagram.subscriptions.handshake(req, res); },

pero una vez que implemento en heroku con esta solicitud de curl

 curl -F 'client_id=client_id' \ -F 'client_secret=secret' \ -F 'object=username' \ -F 'aspect=media' \ -F 'verify_token=myVerifyToken' \ -F 'callback_url=callback_url/subscriptions' \ https://api.instagram.com/v1/subscriptions/

Sigo recibiendo un error de verificación del desafío

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

No importa, así que aparentemente solo respondes con el hub.desafío así

 getInstagramSubscription(req,res){ console.log(req.query) //Just send back the hub.challenge return res.send(req.query['hub.challenge']); }

También tuve un par de errores con la URL de devolución de llamada correcta

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!