Showing
1 changed file
with
23 additions
and
2 deletions
@@ -66,11 +66,32 @@ app.post('/fb',function(req,res) | @@ -66,11 +66,32 @@ app.post('/fb',function(req,res) | ||
66 | FB.setAccessToken(at); | 66 | FB.setAccessToken(at); |
67 | FB.api(method,'post',body,function (resp) | 67 | FB.api(method,'post',body,function (resp) |
68 | { | 68 | { |
69 | - console.log(resp); | ||
70 | - res.send(resp); | 69 | + console.log(resp); |
70 | + res.send(resp); | ||
71 | }); | 71 | }); |
72 | }); | 72 | }); |
73 | 73 | ||
74 | +app.get('fb/auth',function(req,res) | ||
75 | +{ | ||
76 | + FB.api(req.param("method"), | ||
77 | + req.params, function (resp) | ||
78 | + { | ||
79 | + console.log(resp); | ||
80 | + res.send(resp); | ||
81 | + }); | ||
82 | +}); | ||
83 | + | ||
84 | +app.post('fb/auth',function(req,res) | ||
85 | +{ | ||
86 | + FB.api(req.body.method, | ||
87 | + req.body, function (resp) | ||
88 | + { | ||
89 | + console.log(resp); | ||
90 | + res.send(resp); | ||
91 | + }); | ||
92 | +}); | ||
93 | + | ||
94 | + | ||
74 | app.listen(80); | 95 | app.listen(80); |
75 | 96 | ||
76 | app.get('/google',function(req,res) | 97 | app.get('/google',function(req,res) |
-
Please register or login to post a comment