em bị lỗi này mà ko biết fix thế nào…
em dung spring locial để đăng nhập fb
org.springframework.social.UncategorizedApiException: (#12) bio field is deprecated for versions v2.8 and higher
public void tokenFb(String token){
Facebook facebook = new FacebookTemplate(token);
User profile=facebook.userOperations().getUserProfile();
String fbID=profile.getId();
String name=profile.getName();
String avatar="https://graph.facebook.com/"+fbID+"/picture?type=large&w\u200C\u200Bidth=300&height=300";
System.out.println("fbID: "+fbID +"name: "+name+ " avatar: "+avatar);
}
@Override
public void addConnectionFactories(ConnectionFactoryConfigurer cfConfig, Environment env) {
cfConfig.addConnectionFactory(new FacebookConnectionFactory(
env.getProperty("facebook.clientId"),
env.getProperty("facebook.clientSecret")));
}