var express = require('express');
var bodyParser = require('body-parser');
var cookieParser = require('cookie-parser');
var session = require('express-session');
var facebookPageTap = require('facebook-page-tab');
var config = require('./config');

// Set in app express module
var app = express();

// Express configuration

app.use( bodyParser() );
app.use( cookieParser( config.session.secret ) );
app.use( session( config.session ) );

app.use( facebookPageTap( app, config.facebook ) );

app.post( '/', function( req, res ){
	res.send( JSON.stringify( req.session, null, 2 ) );
} );

app.listen(config.port);
@@ -494,11 +494,10 @@
 app.
-pos
+ge
 t( '

change method to get