L
L
ld06872018-05-04 15:15:00
Classmates
ld0687, 2018-05-04 15:15:00

How to return additional fields in photos.getAlbums?

Good afternoon!
I get information about the user's albums using photos.getAlbums
Returns the following result:
5aec4e10ca46a038888203.jpeg
I also need to get additional fields - the album cover and the number of photos in it.
I try to do it through

'fields'	=> 'album.AID,album.MAIN_PHOTO,album.PHOTOS_COUNT

returns an empty array of albums (no errors).
Can you tell me how to get the required fields in the request? Thanks

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim Egorichev, 2018-05-06
@ld0687

For group albums, when requesting fields, use the group_album prefix.
For example, group_album.aid. Full list of fields - https://apiok.ru/dev/types/group.GroupPhotoAlbumBe...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question