Spring social and facebook api 2.4 -


i'm using spring-social facebook, <version>2.0.1.release</version> , works fine if use 2.3 facebook version api.

i create new app version 2.4 , doesn’t work correctly, since fb changed api policies: https://developers.facebook.com/blog/post/2015/07/08/graph-api-v2.4/

fewer default fields faster performance: improve performance on mobile network connections, we've reduced number of fields api returns default. should use ?fields=field1,field2 syntax declare fields want api return.

for example post contains id , message , not from-name , from-id, class post contains 2 fields.

now read value need add “?fields=from”.

the question is, there way use spring social version 2.4 ?

it seems problem persists. so, using workaround following method bring fields need:

facebook facebook = new facebooktemplate(accesstoken);  post post = facebook.fetchobject(postid, post.class, "picture, message, source, story, caption, place, description, type, from, link, icon, shares, created_time, name"); 

Comments