6

I'm messing around with FQL, and I have this query:

SELECT created_time, attachment, message FROM stream  WHERE source_id = me() LIMIT 1000

which returns 1000 results, most not relevant to me. I'd like to filter, for example, on MESSAGE IS NOT NULL. Is that (or something equivalent) possible with FQL?

blueberryfields
  • 45,910
  • 28
  • 89
  • 168

2 Answers2

12

Just adding AND message to the WHERE clause works as well – an empty value is considered “false” by FQL.

CBroe
  • 91,630
  • 14
  • 92
  • 150
3

Add type to the SELECT clause and in the WHERE clause add AND type > 0.

Michael Waterfall
  • 20,497
  • 27
  • 111
  • 168