I was doing just fine this morning when I realized that the facebook login wasn't working anymore in my app. As I mentioned I'm using play framework with silhouette version 2.0-RC1.
This is the problem:
[Silhouette][facebook] Cannot build OAuth2Info because of invalid response format : {"access_token":"EAAE2YyQkAUUBANAfoUfhdG8jrRfJnhrgZCaZB5FsZAO1G5Jq0ITTfZA6coj4g0HuUC48JToHCnZCFx8r9Q3JZCulzt6SaEcRqKrxNealsBldH4dpzJpK4oeblZAmxjq9Rjzl2rO3IKPUwllWAv5vEz33cGc4XeqLSgZD","token_type":"bearer","expires_in":5183717}
The problem is that the Json response for the authentication doesn't have the correct format as OAuth2Info expects, which is weird because we never touch the authentication mecanism and I'm woried because it could be a library version problem and update silhouette is not an option right now... Is somebody having this problem and found the solution? Please help me with this guys... Thanks a lot.
We have to create a custom implementation of the FacebookProvider in order to process the new facebook's answer. Here it is