fql.multiquery

Facebook FQL url likes of friends work strange

北慕城南 提交于 2020-01-06 15:18:12
问题 Hi I would like to count the url likes of my friends based on a given url, I have the following piece of code: function mQ(url){ FB.api({ access_token:'CAACEdEose0cBABMG67fV8Yn5cHo5fkb6kT6npRWO7YQL8zagoFLrz5OFLFIEPVUJhMwf9rql9oAqktDUJMKBGr5NNRXJ73jf418gspbfklvdJs6Kx1EkCRutYhSnSW4Binb4F9AlOUIHfXZC052SOdlgtxTSng6gM4CAZAstpLAoOd1p5pnCpNadnlluMqOxjHo1jx1QZDZD', method: 'fql.multiquery', queries: { "query1":"SELECT total_count, like_count, click_count, normalized_url FROM link_stat WHERE url='"

Friend with the highest number of mutual friends

こ雲淡風輕ζ 提交于 2020-01-02 07:53:13
问题 I want to find my friend whom I share with them the highest number of mutual friends. I tried to do it with FQL and graph API the following way: Get the friends list of the current logged in user. FQL: SELECT uid1 FROM friend WHERE uid2="MY_USER_ID" and uid1 IN (SELECT uid1 FROM friend WHERE uid2=me()) Graph API: $facebook->api('/me/friends?format=json&limit=5000') For each one of the uid's in the list, I can get the list of mutual friends and count it. FQL: SELECT uid1 FROM friend WHERE uid2

How to use fql.multiquery with C# SDK

我的未来我决定 提交于 2019-12-25 08:48:00
问题 I am using the facebook-c#-sdk with VB. my code: dim facebook As New FacebookApp() dim queries as string=" ""2011-4-13"" : ""SELECT metric, value FROM insights WHERE object_id=173249789387842 AND metric='page_active_users' AND end_time=end_time_date('2011-4-13') AND period=period('day')"",""2011-4-14"" : ""SELECT metric, value FROM insights WHERE object_id=173249789387842 AND metric='page_active_users' AND end_time=end_time_date('2011-4-14') AND period=period('day')""" dim oFQLResult As

Facebook New PHP SDK For Graph API - Multi Query

邮差的信 提交于 2019-12-21 09:57:29
问题 I'm at my wits end in what the queries parameter value should look like. So to sumbit a multiquery accross the graph API library, the following would be the code method to perform it, as far as I can tell. $param = array( 'method' => 'fql.multiquery', 'queries' => $multiQuery, 'callback' => ''); $queryresults = $facebook->api($param); Using this method in the new PHP SDK library from Facebook, has any one made this work? If so can you drop an example on how you build the complete value of the

Starting multiquery in client throws parser error

做~自己de王妃 提交于 2019-12-21 06:56:04
问题 I have a following problem in c# SDK: when I try to run multiquery in my desktop application with following string (searching for pairs of IDs of mutual friends) I get a parser error: string strCommonFriendsQuery = "{ \"user_friends\":\"SELECT uid2 FROM friend WHERE uid1 = me()\", \"mutual_friends\":\"SELECT uid1, uid2 FROM friend WHERE uid1 IN (SELECT uid2 FROM #user_friends) AND uid2 IN (SELECT uid2 FROM #user_friends)\" }"; fb.Query(strCommonFriendsQuery); Parser error: unexpected '{' at

Is the 'is_minor' column in the Facebook FQL user table always NULL?

泄露秘密 提交于 2019-12-13 06:51:23
问题 The Facebook FQL user table has a column called is_minor . The Facebook platform documentation does not indicate that any special Permission is required to access the data in this column. However, all of my attempts to get any data from this column always return NULL. And I've tried everything I can think of... (I have no problem accessing all sorts of other data from other columns in the FQL user table.) Does anyone know... is the is_minor column simply not populated at all? Has anyone had

How to get picture of user who has commented on my facebook post?

瘦欲@ 提交于 2019-12-13 05:08:55
问题 I have post_id of the status which user share by iOS app, Now with graph api, I'm getting comment info and like info: POST_ID?fields=likes.fields(pic_square,name),comments With above, I'm able to fetch most of the details, but not profile pic of user who commented on post. check details which I'm getting:- { "id": "POST_ID", "updated_time": "2014-03-25T07:07:14+0000", "likes": { "data": [ { "pic_square": "https://fbcdn-profile-a.akamaihd.net/static- ak/rsrc.php/v2/yo/r/UlIqmHJn-SK.gif", "name

FQL.Multiquery - query syntax when passing as parameter

强颜欢笑 提交于 2019-12-11 18:41:26
问题 Looking for a little help with a simple task...the syntax for a facebook multi-query, where you'd pass in the query as a parameter. Here is my method: public dynamic FBFQL(string strQuery) { try { var fb = new FacebookClient(this.FacebookAccessToken); //dynamic objFQL = fb.Get("fql", new { q = strQuery }); dynamic objFQL = fb.Get("fql", new { q = new { strQuery } }); if (objFQL == null) { return null; } else { return objFQL; } } catch (FacebookApiException ex) { FacebookErrorHandler(ex);

FQL Multiquery Returned Info

白昼怎懂夜的黑 提交于 2019-12-11 09:05:58
问题 I'm trying to use an FQL Multiquery to obtain my most recent Facebook question and options with one query using an http request. So far the query I tried to use is: SELECT name, votes FROM question_option WHERE question_id IN (SELECT id, question FROM question WHERE owner = me() ORDER BY created_time DESC LIMIT 1) Unfortunately this only returns the name and votes from the outer query and not the question text from the inner one. Is there a way to retrieve all 3 without making 2 queries? 回答1:

FQL: query for event table returns venue.name instead of venue.id

ぃ、小莉子 提交于 2019-12-11 03:28:39
问题 When making a query to get event details I seem to get venue.name instead of venue.id in the result set. Has there been an unannounced change in the table structure or am I doing something wrong. The Graph API Explorer gives the venue.id yet when using FQL through PHP SDK in my own web site it's the venue.name I get. Heres the code: $fql='{ "event_info": "SELECT name,description, pic_small,pic_big, eid,venue,location FROM event WHERE eid ='.$_GET['id'].'", "event_venue":"SELECT name, username