Do OR and AND instructions form Facebook FQL instructions?

I am trying to execute a translucent query using Facebook FQL.

SELECT message FROM stream WHERE actor_id= userid_1 AND source_id=userid_2 OR actor_id=userid_2 AND source_id=userid_1

Every time I run it, it becomes empty, although there are messages between the two users on the walls, so is this possible or do I need to use some alternative method?

+3
source share
1 answer

It should work with a combination. Why aren't you trying to include the appropriate brackets, for example

SELECT message FROM stream WHERE actor_id = userid_1 AND (source_id = userid_2 OR actor_id = userid_2) AND source_id = userid_1

+2
source

Source: https://habr.com/ru/post/1751676/


All Articles