Dragon
Dragon

Reputation: 1088

Get Total Photo Count via Facebook Graph API

I am trying to get the total photo count of a user.

I tried these

me?fields=photos.limit(200).fields(images)
this returns id,not photo count

me/albums?fields=photos

me/albums?fields=photos?fields=source,name,id

me/albums?fields=photos&fields=source,name,id
gives cover photo ,profile photo

me?fields=albums.fields(id,name,cover_photo,photos.fields

on Graph API explorer with required permissions but either they are giving unnecessary info or the API returns an error.

Upvotes: 2

Views: 1728

Answers (1)

phwd
phwd

Reputation: 19995

You need the count field for each album

me/albums?fields=count,name

Upvotes: 5

Related Questions