sparkle
sparkle

Reputation: 7390

How to get all posts of a Facebook's user Newsfeed?

This return all of my post

SELECT post_id, actor_id, target_id, message, likes FROM stream WHERE source_id = me()

but I'd want to get all posts a user sees on its Newsfeed. Is that possible?

I've tried this:

SELECT post_id, actor_id, target_id, message, likes FROM stream 

but I get

{ "error": {

"message": "(#601) Parser error: unexpected end of query.", 
"type": "OAuthException", 
"code": 601   } }

Upvotes: 0

Views: 110

Answers (1)

C3roe
C3roe

Reputation: 96306

FQL queries need a WHERE clause.

You could use the news feed stream filter: … WHERE filter_key = 'nf'

Upvotes: 1

Related Questions