criso/fbgraph

Commit 205ddfde7f883c9a44033caa0ff99f6bed982043 renders get requests unusable

Closed this issue · 1 comments

The get method has been changed in commit 205ddfd to check the response status code. It was

if (err) {

but now it is

if (err || res.statusCode !== 200) {

and that means that many get requests to objects in Facebook now fail.
For example, a successful call to me/picture returns an image with a status code of 302 not 200. These are RESTful APIs so why has a check for status code 200 been added?

I have had to manually correct my local version in order for the code to work.

criso commented

Thanks! - Change reverted