How to get the privacy values with FQL query from stream table entries using a Facebook application?

seemann

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 Graph API Explorer settings MyAppDev facebook app settings MyAppDev facebook app settings

Any ideas how I can get the correct privacy values using a Facebook application?

Stéphane Bruckert

If it works in the Graph API Explorer and doesn't in your app, something is wrong in your app. In my opinion, you most probably didn't successfully requested the permissions inside your app.


In your app settings, can you see the permissions you requested, just like on the picture?

App permissions

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

How to get the privacy values with FQL query from stream table entries using a Facebook application?

From Dev

Accessing information from Facebook using fql

From Dev

Facebook FQL Stream Table - News Feed Unreliably Sorted

From Java

How to query a range of values with Fauna and FQL?

From Dev

Facebook API: do a FQL query using Open Graph API

From Dev

Connect my webapp to the facebook api and write fql query using jquery

From Dev

How to get multiple values from an object using a single stream operation?

From Dev

How to make a Facebook FQL query to select all friends

From Dev

How to get the posts that a friend reshares using FQL?

From Dev

How to get unread messages using FQL?

From Dev

How to get an Update Statement to change the values depending on entries from another Table

From Dev

How To Retrive Facebook Profile Picture Comments using Graph API or FQL

From Dev

extract url from facebook FQL

From Dev

How to get values from `ForeignKeyField` using peewee in join query?

From Dev

Get table values from SQL query

From Dev

how to get string array values from a stream?

From Dev

how to get string array values from a stream?

From Dev

how to get from two table checked checkbox values using jquery?

From Dev

How to get insert values from a table into an array using SQL?

From Dev

How to get values from table

From Dev

Query for Insert into using values from other table

From Dev

Unable to use FQL with my Facebook application

From Dev

I need to get Facebook photo stream into my application using their Facebook id javascript

From Dev

Facebook FQL page table "Start Info" field

From Dev

How I get common values from two query in a table and join it with another table in MySql?

From Dev

Protractor Tests get Values of Table entries

From Dev

get table name from query using a regex

From Dev

How to get the required values from a class using JAVA8 stream

From Dev

Using Graph API instead of FQL for Facebook

Related Related

  1. 1

    How to get the privacy values with FQL query from stream table entries using a Facebook application?

  2. 2

    Accessing information from Facebook using fql

  3. 3

    Facebook FQL Stream Table - News Feed Unreliably Sorted

  4. 4

    How to query a range of values with Fauna and FQL?

  5. 5

    Facebook API: do a FQL query using Open Graph API

  6. 6

    Connect my webapp to the facebook api and write fql query using jquery

  7. 7

    How to get multiple values from an object using a single stream operation?

  8. 8

    How to make a Facebook FQL query to select all friends

  9. 9

    How to get the posts that a friend reshares using FQL?

  10. 10

    How to get unread messages using FQL?

  11. 11

    How to get an Update Statement to change the values depending on entries from another Table

  12. 12

    How To Retrive Facebook Profile Picture Comments using Graph API or FQL

  13. 13

    extract url from facebook FQL

  14. 14

    How to get values from `ForeignKeyField` using peewee in join query?

  15. 15

    Get table values from SQL query

  16. 16

    how to get string array values from a stream?

  17. 17

    how to get string array values from a stream?

  18. 18

    how to get from two table checked checkbox values using jquery?

  19. 19

    How to get insert values from a table into an array using SQL?

  20. 20

    How to get values from table

  21. 21

    Query for Insert into using values from other table

  22. 22

    Unable to use FQL with my Facebook application

  23. 23

    I need to get Facebook photo stream into my application using their Facebook id javascript

  24. 24

    Facebook FQL page table "Start Info" field

  25. 25

    How I get common values from two query in a table and join it with another table in MySql?

  26. 26

    Protractor Tests get Values of Table entries

  27. 27

    get table name from query using a regex

  28. 28

    How to get the required values from a class using JAVA8 stream

  29. 29

    Using Graph API instead of FQL for Facebook

HotTag

Archive