I have registered my APP on Instagram and i Successfully retrieved recent media using: https://api.instagram.com/v1/users/self/media/recent/?access_token=ACCESS-TOKEN
Now I want to Subscribe user to instgram to get real time update , i tried this :
$.ajax({ url: "https://api.instagram.com/v1/subscriptions/?client_id=MyClientID&client_secret=MyClientSecret&object=user&aspect=media&verify_token=MyToken&callback_url=MyService.ashx", type: 'POST', dataType: "jsonp", success: function (data) { console.log(data); }, error: function (errorText) { console.log(errorText); } }); }); the Post request above prints : {"meta": {"code": 200}, "data": []} which means it is a successful request
but i didn't receive any request from Instagram on my callback URL to send me the [ hub.challenge ]
Instagram subscription API :
Create a Subscription
To create a subscription, you make a POST request to the subscriptions endpoint.
Where I went Wrong ??

0 comments:
Post a Comment