Pergunta

I am running into an issue where I can subscribe to realtime updates on tags but I cannot delete these subscriptions.

Subscribing works fine, and I can prove that the subscription step works by GET'ing the subscription list:

curl -X GET 'https://api.instagram.com/v1/subscriptions?client_secret=SECRET&client_id=ID'


{"meta":{"code":200},
"data":[{"object":"tag",
    "object_id":"winter",
    "aspect":"media",
    "callback_url":"http:\/\/SITE.com:7000\/ig",
    "type":"subscription",
    "id":"4747294"},
    {"object":"tag",
    "object_id":"snow",
    "aspect":"media",
    "callback_url":"http:\/\/SITE.com:7000\/ig",
    "type":"subscription",
    "id":"4747295"}]}

This yields two tag subscriptions (winter and snow, in my case). However, the same code taken from the Instagram Developer instructions for deleting subscriptions is failing:

curl -X DELETE 'https://api.instagram.com/v1/subscriptions?client_secret=SECRET&object=all&client_id=ID'


Oops, an error occurred.

Is this an Instagram-side problem or is my DELETE command erroneous?

Foi útil?

Solução

I'm getting the same error with code that had been working, so the problem appears to be on their side. I would suggest filing a bug report.

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top