I am trying to establish a webhook subscription to the streams endpoint in node.js. the application is receiving the GET request with the hub.challenge after making the subscribe request but no matter what I try I can’t get the subscription to be compleated. This is my current code for creating the hub.challenge callback
I do receive an inbound get request, although not every time, and I have been using the webhooks/subscriptions endpoint through postman (using the same OAuth token and client ID) to see if the subscription stuck, but it always return 0 subscriptions
turns out it was just me not paying attention and being stupid (like usual ). On closer inspection the inbound requests that I was getting were all unsubscribe requests.
This was because me thinking the reason I did not get new requests after a bit was due to accidentally subscribing to the same topic too many times and there for sending unsubscribe requests via postman.
Turns out my subscribe create request was correct but the code around it to read the file I stored the token in was not, which made it not run. After fixing that code and running it again I now received a subscribe inbound request, and the webhooks/subscriptions endpoint shows a subscription.
Thanks for the replies and for your time, and sorry for wasting it a bit…