Friday 15 August 2014

facebook fql - How to create FQL query within query using userid from first query? -


I think the list of people who have commented on a post is returning a FQL question: -

Select the time from the comment, from, like, post_ id_cursor where post_id = '331288023558058_592220760798115' by order 'DESC limit 5000

What do I do to include another query within this query For a person leaving a comment

select Sex, first_name, middle_name, last_name, user name, location, PROFILE_URL, Manual from pic_square_with_logo WHERE uid = {person fromid leave comments}

Is it possible to combine the questions that get all the figures I have at the same query? Any ideas how?

thanks

Jonathan

use multiqueries

commentquery = "select time, fromid, like, post_id_cursor from comment where post_id = '331288023558058_592220760798115' by 5000 order time DESC LIMIT"

userquery = Select sex, first_name, middle_name, Last_name, user name, location, PROFILE_URL, user from pic_square_with_logo Where uid = (select from from #commentquery)

For user multiple FQL queries, you need json_encode queries in an array. ? To specify / Fql q = parameter

to specify:

  $ questions = []; $ Queries ['comments'] = "select time, from ..."; $ Queries ['user'] = "select sex, ... where in the UID (from ##############) $ Fql = json_encode ($ Queries); // do not work with curl or whatever // (multivariate PHP sdk $ facebook-> API () believe me) http://graph.facebook.com/fql ? Q = $ fql    

No comments:

Post a Comment