Having an issue logging out of a device-application instance using
https://github.com/passport/express-4.x-facebook-example
What I am trying to do is issue a DELETE request to
https://graph.facebook.com/me/permissions?access_token
but am having a problem with the correct syntax.
Am trying the following using the request module after defining a /logout route. But not working
Any Passport, Express experts that can help?
var express = require('express');
var request = require('request');
var app = express();
app.get('/logout',
function(req, res){
res.render('login');
request.delete("https://graph.facebook.com/me/permissions?access_token=" + ACCESS_TOKEN);
});