ig.use({
access_token: 'foo',
client_id: 'bar',
client_secret: 'foo'
});
app.get('/tag/:tag', function (req, res) {
ig.tag_media_recent(req.params.tag, function(err, medias, pagination, remaining, limit) {
io.sockets.emit('news', { hello: 'world' });
res.json(medias);
});
});
app.post('/', function(req, res) {
console.log(req.body);
});
ig.add_tag_subscription('brazil', 'http://e1488494.ngrok.io/?tag=brazil', function(err, result, remaining, limit){
console.log(err);
err.retry();
});
我正在使用instagram-node lib。但是,当我启动服务器时,它显示此错误。我改变了网址但没有工作。
[Error: APISubscriptionError: Invalid "client_id" and/or "client_secret."]
code: 400,
error_type: 'APISubscriptionError',
error_message: 'Invalid "client_id" and/or "client_secret."',
retry: [Function]