FB OpenGraph : Obtaining the privacy level on a Photo object, specifically from Timeline, Profile Picture or Cover Albums

时间:2016-02-12 21:30:03

标签: facebook facebook-graph-api privacy

For those specific 'system' albums (Profile Photos, Timeline Photos and Cover Image), a user may specify the privacy level for each photo. This behavior differs from user-created albums, where the privacy of the album dictates the privacy of the photos within.

My objective is to show my user with a list of their public facebook pictures, so they can pick a few for their profile. Those pictures will be shown to anyone, hence why I only want to show pictures that have a scope of "everyone.

For user-created albums, querying the privacy of the album works.

                   A         B         C
Date                                    
2000-01-01 -0.501547 -0.227375  0.275931
2000-01-02  0.994459  1.266288 -0.178603
2000-01-03 -0.982746 -0.339685  0.157390
2000-01-04 -1.013987 -1.074076 -2.346117
2000-01-05 -0.101157 -0.698663  1.025318
2000-01-06 -1.697615 -0.081638  1.075712
2000-01-07  0.617587 -1.561204 -1.685774
2000-01-08  0.049115  0.579139 -1.036961

All pictures within this album are safe to show.

But when it comes to, e.g. Profile Picture albums, the privacy is now on a per-photo basis, and the Photo opengraph node doesn't have a Privacy Field.

me/albums?fields=name,id,privacy

returns:
"data": [
...
{
  "name": "Full Public",
  "id": ...,
  "privacy": "everyone",
},

The privacy for this album is "everyone", however I can change the privacy of individual pictures inside from within Facebook, so I don't know which ones are safe. There is no privacy fields on the pictures inside.

How can I tell which photos are public for these types of albums?

I'm using Facebook SDK for iOS and Android, targetting OpenGraph v2.5.
Thanks in advance!

0 个答案:

没有答案