criso / fbgraph

NodeJs module to access the facebook graph api
http://criso.github.io/fbgraph/
1.09k stars 176 forks source link

fbgraph.get('me') is showing https error with no explaination #75

Closed mclark4386 closed 9 years ago

mclark4386 commented 9 years ago

I have the following code:

var FB = require('fbgraph');
FB.setAccessToken(req.params['tokenSecret']);
FB.get('me', function(error,data){
            if(!data||error){
                console.log("FB error(create):"+(!error?"nil error":JSON.stringify(error)));
                next(error);
            }else{
                console.log("FB success");
            }
});

I have tested the tokenSecret in the Graph API explorer and it worked perfectly. However, the output I get from node is:

FB error(create):{"message":"Error processing https request","exception":{}}

I've googled, but it wasn't very helpful: https://www.google.com/?gws_rd=ssl#safe=off&q=fbgraph+%22Error+processing+https+request%22

I've also tried changing 'me' to '/me', 'v2.2/me', 'me/friends', etc. and all seem to have the same result. I'm sure it's something wrong that I've done, but sense there isn't any exception it's extremely hard to tell what.

Thanks!

davide-scalzo commented 9 years ago

Hi mclark4386, how did you fix the issue?