Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

'expires_in' missing from Facebook oauth/access_token response

I've just noticed that this method is failing in my ASP.NET web application because I'm not catering for 'expires_in' being missing in the response.

I haven't changed any code recently, and was not aware of any reason for this to be missing in the response. Does this mean that the token has expired?

I'm using version 7.0.6 of the C# Facebook SDK and v2.5 of the Facebook Graph API.

The JSON response looks like this:

{"access_token":"xxxx","token_type":"bearer"}
like image 945
Jamie Avatar asked Sep 27 '17 16:09

Jamie


1 Answers

There is an open bug report about this on Facebook's bug tracker. Given Facebook's response it does indeed sound like it's a bug on their end, and appeared some time yesterday.

Updates will appear in that bug report, and you can subscribe to it to give it more visibility and to receive updates.

Thanks to CBroe for pointing out the bug report in his comment on the question.

like image 148
tremby Avatar answered Oct 20 '22 18:10

tremby