且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

通过Passport.js Facebook策略进行身份验证后,如何使用Facebook Graph API?

更新时间:2021-12-30 21:35:08

后一种,您只需要访问令牌,然后您就可以发送带有vanilla或您想要的每个lib的普通请求(我个人喜欢wreck ).

The latter one, you just need the access token and then you can just send a normal request with vanilla or every lib you'd like (I personally like wreck).

然后看起来像这样:

Wreck.get('https://graph.facebook.com/me?access_token=' + access_token, function(err, res, payload) { });