gauravjhaindia / restfb

Automatically exported from code.google.com/p/restfb
0 stars 0 forks source link

FacebookOAuthException does not return error code #178

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Facebook as part of FacebookOAuthException returns error code. See the facebook 
response below:

INFO: Facebook responded with HTTP status code 403 and response body: 
{"error":{"message":"(#210) User not 
visible","type":"OAuthException","code":210}}

But there is no way to get the code using FacebookOAuthException Class. Is it 
planned for future release or am i missing something.

Original issue reported on code.google.com by connec...@gmail.com on 22 Mar 2012 at 8:29

GoogleCodeExporter commented 9 years ago
I think this type of exception did not previously return a "code" field, which 
is what FacebookOAuthException did not handle I'll.  I'll add support in 
1.6.10, thank you!

Original comment by m...@xmog.com on 1 Apr 2012 at 12:53

GoogleCodeExporter commented 9 years ago
OK, this is fixed here: 
https://github.com/revetkn/restfb/commit/f69dbe6a803c38319ce01e95321fe09c507ff75
2

Original comment by m...@xmog.com on 1 Apr 2012 at 1:43