I'm trying to find the best way to query both news feed and wall using a single request.
First attempt:
- Query me/home and me/feed in batch request.
- Problem: querying me/home gives me bad results due to Graph API bugs (showing blocked items and on the contrary not showing some items that should be shown) so I decided to change to FQL which seems to handle it much better.
Second attempt:
- Use single batch request to query: (1) me/feed directly. (2) fql.query for stream table with filter_key set to 'others'.
- Problem: Needs to also query for user names because the stream table contains only ids.
Third attempt:
- Use batch request to query: (1) me/feed directly (2) fql.multiquery for stream table with filter_key set to 'others' and the names table with "WHERE id IN (SELECT actor_id FROM #stream)".
- Problem: Fails. It returns "Error: batch parameter must be a JSON array" although it is a json array.
Fourth Attempt:
- Use fql.multiquery to get news feed stream, wall stream and names.
- Problem: I have no idea how to get a view similar to me/feed using FQL. The best I could get is a list of all my own posts but it doesn't show photos the user is tagged in (so I guess more things are missing).
Appreciate any hints.
Due to FQL not doing SQL style joins, getting information from multiple tables in one query is currently impossible.