Monday, January 23, 2017

Instagram API Subscription For First Time ( get real time update )

Leave a Comment

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.

enter image description here

Where I went Wrong ??

0 Answers

If You Enjoyed This, Take 5 Seconds To Share It

0 comments:

Post a Comment