
How to fix – org.springframework.social.UncategorizedApiException: (#12) bio field is deprecated for versions v2.8 and higher
I encountered this error when using spring-social-facebook API. I did git clone of Spring tutorial for accessing facebook data
I was hoping for it to work straightaway but got blocked by this error.
Following steps helped me fix this problem, hope it helps.
- adding the dependency for spring-social-core
- adding the dependency for spring-social-config
- Change the version of spring-social-facebook to 3.0.0.M1
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | <dependency> <groupId>org.springframework.social</groupId> <artifactId>spring-social-core</artifactId> <version>2.0.0.M2</version> </dependency> <dependency> <groupId>org.springframework.social</groupId> <artifactId>spring-social-config</artifactId> <version>2.0.0.M2</version> </dependency> <dependency> <groupId>org.springframework.social</groupId> <artifactId>spring-social-facebook</artifactId> <version>3.0.0.M1</version> </dependency> |
In case you get an exception saying that Repository not available, please add the following repository to your POM
1 2 3 4 5 6 7 8 | <repositories> <repository> <id>alfresco-public</id> <url>https://artifacts.alfresco.com/nexus/content/groups/public</url> </repository> </repositories> |
Please note that the Spring tutorial works only for one user if you want to make it work for multiple users go through below link
If you want to change the default page flow (facebookConnect.html to connect/facebookConnected.html),please follow below link