facebookarchive / fbconsole

A micro api client for writing scripts against the Facebook Graph API.
Other
325 stars 74 forks source link

FQL queries returning nothing #11

Closed hdahme closed 12 years ago

hdahme commented 12 years ago

Hey there,

Most FQL queries from fbconsole seem to not return anything, whereas the queries work from the facebook FQL documentation pages at http://developers.facebook.com/docs/reference/fql/stream/

ie, fbconsole.fql("SELECT post_id, actor_id, target_id, message FROM stream WHERE filter_key = 'others' AND source_id = me()")

returns [], whereas the same query when done via Facebook itself returns all the posts others have made on my wall.

pcardune commented 12 years ago

I believe you need to request the 'read_stream' extended permission as it says at the top of that documentation page. You can do this in fbconsole by setting fbconsole.AUTH_SCOPE=['read_stream'] before calling fbconsole.authenticate()