I would be very interested that Craig or any other spring social developer would be kind enough to comment on the observations below. I've been trying to post a tagged photo to facebook via spring social. I failed, the causes I identify are listed below:
- Tag proxy is provided only for reading tags from facebook not to post (write). Most proxies are provided only for reading info from facebook.
- FacebookModule registers only a TagDeserializer - a TagSerializer needs to be added.
- Tagged Photo posts are multi part posts as they contain different mime types. When the restTemplate is initialized the Jackson Converter is not added to the multi-part form converter so any attempt to serialize a Java proxy to json would generate an exception -> no converter found for type.
- If one attempts to build an alternative RestTemplate that corrects the problems listed above facebook returns Bad Request because the request is not authorized. All authorization related classes needed to set-up an authorized request inside the alternative restTemplate are private to package org.springframework.social.oauth2 so they can't be used.
If these observations are correct, then please let me know when the spring social team plans to correct them. If not, please let me know how I could actually post a tagged photo.
Thanks a lot!