This forum is now a read-only archive. All commenting, posting, registration services have been turned off. Those needing community support and/or wanting to ask questions should refer to the Tag/Forum map, and to http://spring.io/questions for a curated list of stackoverflow tags that Pivotal engineers, and the community, monitor.

Facebook, no suitable HttpMessageConverter found

Sep 11th, 2012, 08:40 AM

Hey everyone,

I been working on a proof on concept at work.. Just trying to get oAuth2 connection from my client application to facebook. I got to the point where my client app is trying to get the access_token from facebook, but then I get the following exceptions..

The message converters in OAuth2RestTemplate are used to deserialize the responses from the API calls, not the token itself (and it works for me for basic user profile data without custom converters, so maybe tonr2 would work that way as well). Getting a token doesn't require any special configuration in tonr2 either, so I'm not sure why yours isn't working. The response type is text/plain according to the error you posted so maybe it's not a token and you just have a configuration problem. If you post your rest template and oauth:resource configuration maybe we can tell from that, but it's probably better to tcpdump the conversation and have a look at the actual content yourself.