facebook-batch-request

Quoting/escaping jsonpath elements for in clause of dependent fql queries

戏子无情 提交于 2019-12-25 09:52:32
问题 Using the facebook php sdk, I am trying to get a list of comments for every post made to a person's wall by someone else. I'm using FQL in a Batch API request as follows: $getStream = urlencode("method/fql.query?query=SELECT post_id, actor_id, target_id, source_id,viewer_id, message FROM stream WHERE app_id= '' and message != '' and source_id=$fbprofileId and target_id=$fbprofileId and is_hidden=0 limit 100"); $getComments = urlencode("method/fql.query?query=select object_id, post_id, fromid,

Quoting/escaping jsonpath elements for in clause of dependent fql queries

故事扮演 提交于 2019-12-25 09:51:21
问题 Using the facebook php sdk, I am trying to get a list of comments for every post made to a person's wall by someone else. I'm using FQL in a Batch API request as follows: $getStream = urlencode("method/fql.query?query=SELECT post_id, actor_id, target_id, source_id,viewer_id, message FROM stream WHERE app_id= '' and message != '' and source_id=$fbprofileId and target_id=$fbprofileId and is_hidden=0 limit 100"); $getComments = urlencode("method/fql.query?query=select object_id, post_id, fromid,

How to do batch request of fql queries in graph api?

不打扰是莪最后的温柔 提交于 2019-12-21 06:34:53
问题 I am having 4-5 fql queries in single function. Each of them taking 2-4 seconds to execute. Total 14-15 seconds are required to execute that whole function. User required to wait for long time. So I want to reduce that processing time. ( There is not well supported multi-threading concept in PHP.) I have heard of batch request concept in graph api. And I have googled a lot but didn't understand how to use batch request for fql queries in graph api. Can anyone give explanation with example for

Linking responses to requests with Facebook Batch Requests

纵饮孤独 提交于 2019-12-10 15:59:15
问题 I'm using Facebook's Batch Requests to post to multiple feeds and I need to link the correct response to every request in the batch. Since I found no definitive info on the documentation, do the members of the returned array appear in the same order as the requests? In other words, if I get an error in the third member of the returned array, does that positively mean that the error refers to the third request I sent in the batch? I can use the id for succesful requests, but error messages

facebook batch request for multiple users

不羁的心 提交于 2019-12-07 17:44:01
问题 I have a user database from facebook. I want to get their data (interests and friends birthdays) using batch request. Now I can make 1 batch request for 1 user. But considering the no. of users in my app is huge definately it will reach a limit. I want to know if there is any way to get multiple users data in a batch request I tried the following but it didn't work "access_token": "USER_A_ACCESS_TOKEN", batch=[ {"method": "GET", "access_token": "USER_A_ACCESS_TOKEN", "relative_url": "me

facebook batch request for multiple users

谁说胖子不能爱 提交于 2019-12-06 03:40:40
I have a user database from facebook. I want to get their data (interests and friends birthdays) using batch request. Now I can make 1 batch request for 1 user. But considering the no. of users in my app is huge definately it will reach a limit. I want to know if there is any way to get multiple users data in a batch request I tried the following but it didn't work "access_token": "USER_A_ACCESS_TOKEN", batch=[ {"method": "GET", "access_token": "USER_A_ACCESS_TOKEN", "relative_url": "me/friends"}, {"method": "GET", "access_token": "USER_B_ACCESS_TOKEN", "relative_url": "me/friends"} ] For

How to do batch request of fql queries in graph api?

半世苍凉 提交于 2019-12-03 21:55:09
I am having 4-5 fql queries in single function. Each of them taking 2-4 seconds to execute. Total 14-15 seconds are required to execute that whole function. User required to wait for long time. So I want to reduce that processing time. ( There is not well supported multi-threading concept in PHP.) I have heard of batch request concept in graph api. And I have googled a lot but didn't understand how to use batch request for fql queries in graph api. Can anyone give explanation with example for using batch request of fql queries ? By what time query processing time will reduce? Is there any