I would like to know the privacy values (CUSTOM, ALL_FRIENDS, etc.) of the stream entries from a Facebook application, but the result does not contain privacy field values for all of the returned entries.
The application requests the following permissions: read_stream, export_stream, user_friends.
The query used by the application:
SELECT post_id, attachment, description, privacy
FROM stream
WHERE source_id = me()
ORDER BY updated_time DESC
LIMIT 20
The privacy part of the result looks like this for most of the entries (there are some which have privacy values):
...
"privacy": {
"value": ""
}
...
If I filter for the value of the privacy field then it seems that only shared links have privacy values:
SELECT post_id, attachment, description, privacy
FROM stream
WHERE source_id = me() AND privacy.value != ""
ORDER BY updated_time DESC
LIMIT 20
I have already tried to run the query with all Facebook permissions available, the result was the same, no privacy values from the application.
But if I run the query in the Graph API Explorer with the same permissions, then I get the correct privacy values for all kinds of entries:
"privacy": {
"description": "Public",
"value": "EVERYONE",
"friends": "",
"networks": "",
"allow": "",
"deny": ""
}
The fql query without any filters:
https://developers.facebook.com/tools/explorer?fql=SELECT%20post_id%2Cattachment%2C%20description%2C%20privacy%20FROM%20stream%20WHERE%20source_id%20%3D%20me()%20ORDER%20BY%20updated_time%20DESC%20%20LIMIT%2020
The fql query with privacy filter (privacy.value != ""):
https://developers.facebook.com/tools/explorer?fql=SELECT%20post_id%2Cupdated_time%2C%20attachment%2C%20type%2C%20description%2C%20privacy%20FROM%20stream%20WHERE%20source_id%20%3D%20me()%20AND%20privacy.value!%3D%22%22%20ORDER%20BY%20privacy.value%20DESC%20%20LIMIT%2020
These are the two apps' settings, although they look identical:
Graph API Explorer settings
MyAppDev facebook app settings
Any ideas how I can get the correct privacy values using a Facebook application?