The endpoint /api/feed is not working because /users/self/feed was deprecated
plentini opened this issue · comments
Instagram was deprecated /users/self/feed.
View changelog of Nov 17, 2015.
https://www.instagram.com/developer/changelog/
This issue can be resolved consuming other instagram endpoint:
`app.get('/api/feed', isAuthenticated, function(req, res) {
var feedUrl = 'https://api.instagram.com/v1/users/self/media/recent/';
var params = { access_token: req.user.accessToken,
count : 5 };
request.get({ url: feedUrl, qs: params, json: true }, function(error, response, body) {
if (!error && response.statusCode == 200) {
res.send(body.data);
}
});
});`
Thank you.
in your params, would you not have it as "req.body.accessToken" instead of 'user'?
My code was throwing a "property 'user' does not exist on type 'Request'
Contact me if you need instagram hacking services
Email: jasmineramona@protonmail.com