How to return additional fields in photos.getAlbums?


Warning: count(): Parameter must be an array or an object that implements Countable in /home/styllloz/public_html/qa-theme/donut-theme/qa-donut-layer.php on line 274
0 like 0 dislike
34 views
Good day!

Get information about the user albums with photos.getAlbums
Returns this result:
5aec4e10ca46a038888203.jpeg
I also need to get additional fields - the album cover and the number of photos in it.
Try to do using
'fields' => 'album.AID,album.MAIN_PHOTO,album.PHOTOS_COUNT

returns an empty array of albums (with no errors).

Tell me how to get the right fields in the query? Thank you
by | 34 views

1 Answer

0 like 0 dislike
For group albums in the query fields you should use the prefix group_album.
For example, group_album.aid. Full list of fields - https://apiok.ru/dev/types/group.GroupPhotoAlbumBe...
by

Related questions

0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
110,608 questions
257,187 answers
0 comments
40,796 users