android - Facebook Graph API calls not retrieving all fields -


i'm requesting me/albums with:

  new graphrequest(         accesstoken.getcurrentaccesstoken(),         "/me/albums",         null,         httpmethod.get,         new graphrequest.callback() {             public void oncompleted(graphresponse response) {                 parsealbumresponse(response);             }         }).executeasync(); 

problem response object contains 3 fields:

{   "data": [     {       "created_time": "...",       "name": "...",       "id": "..."     }, ... 

instead of fields documented here. sames goes /{album-id}/photos:

{   "data": [     {       "created_time": "...",       "id": "..."     }, ... 

instead of this. working last time i've checked of sudden strange behaviour happened. i've tested facebook graph api , result it's same guess it's not problem app.

i'm using 'com.facebook.android:facebook-android-sdk:4.7.0'. did facebook changed in requests parameters?

edit: user luschn suggested:

declarative fields

to try improve performance on mobile networks, nodes , edges in v2.4 requires explicitly request field(s) need requests. example, /v2.4/me/feed no longer includes likes , comments default, /v2.4/me/feed?fields=comments,likes return data. more details see docs on how request specific fields.

so had change requests to:
web console:
me/albums?fields=name, cover_photo, count , /{album-id}/photos?fields=id, images

java:

bundle parameters = new bundle(); parameters.putstring("fields", "id, images");  bundle parameters = new bundle(); parameters.putstring("fields", "name, cover_photo, count"); 

https://developers.facebook.com/docs/apps/changelog#v2_4

search "declarative fields" in changelog, have specify fields want returned.


Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -