facebook-fql

How to handle the big int facebook uid returned by FQL?

断了今生、忘了曾经 提交于 2019-11-29 01:59:41
问题 I've a problem in handling the big userid's of facebook and properly storing them into my database.. As the fql.query REST api is going to be deprecated ,I'm using the GRAPH API for getting the results of the FQL. I want to get the list of my friends with sex,relationship_status . The query i executed is $allFriends = $facebook->api("/fql ?q=SELECT+uid,+name,+sex,+relationship_status+FROM+user+where+uid+in+ (SELECT+uid2+FROM+friend+WHERE+uid1+=$fbuid)" ); I tried the above in the Graph API

Facebook Graph API: Get post/status attached photos

可紊 提交于 2019-11-29 00:02:31
How can one get multiple attachments of a post/status in a group? For example: A group status that some member wrote and added multiple photos to.. Currently I am using Graph api to get the group stream with group_id/feed and unable to see images attached to a single status - while accessing the feed from Facebook itself I can validate that there are few photos attached to the status. Using FQL it is possible to get the attachments with the following query: SELECT attachment FROM stream WHERE post_id = each_post_id Considering I will have to send this request per post and that FQL will soon be

Facebook FQL multiquery in iOS SDK

混江龙づ霸主 提交于 2019-11-28 23:59:48
I am looking for some documentation or sample code on how to send multiquery fql requests to Facebook via iOS SDK. I found some older samples but they doesnt work for me. I have populated an NSDictionary with the queries and I try to send the request via [[FBRequest requestWithDelegate:self] call:@"facebook.fql.multiquery" params:params]; , as stated in the samples I have read, but I get an "unrecognized selector sent to class" error and I cant find the "requestWithDelegate" method in FBRequest.h either. Is it deprecated? Some help on this would be very appreciated! // Construct your FQL Query

Retrieve all comments with FQL by application ID

时光总嘲笑我的痴心妄想 提交于 2019-11-28 18:44:27
We use the facebook comment plugin to have comments on our site. To moderate those, we use this tool: https://developers.facebook.com/tools/comments However, we want to build our own tool to moderate those comments, and integrate it to our existing software. I can't find a proper way of doing this. the only way I found out now after hours of research is this FQL query: select post_fbid, fromid, object_id, text, time from comment where object_id in (select comments_fbid from link_stat where url ='URL_HERE') That doesn't work because we have thousands of different URL's and I cant query each of

How to get friends likes via Facebook API

微笑、不失礼 提交于 2019-11-28 17:39:02
Is this possible to get all my friends likes?? Now, I'm getting this by 2 steps: Getting all my friends list By iterating those list I'm getting all individuals Likes, but it seems very big process, anybody have idea to improve the performance for this task? dupdup At last I found it after 2 weeks looking at Facebook API documentation FB.api("/likes?ids=533856945,841978743") FB.api("me/friends",{ fields:'id', limit:10 },function(res){ var l='' $.each(res.data,function(idx,val){ l=l+val.id+(idx<res.data.length-1?',':'') }) FB.api("likes?ids="+l,function(res){ console.log(res); }) }) Carson

How to get all the Open Graph Beta actions generated by an app?

有些话、适合烂在心里 提交于 2019-11-28 10:53:28
It is already possible to get all actions for custom app actions and objects: https://graph.facebook.com/me/ {appNameSpace}:{action}/{object} This will list all the actions generated by an app, but only for a given user... How do I get all the actions generated by an app (for all its users)? I've tried this request with an app access token : https://graph.facebook.com/ {appId}/{appNameSpace}:{action}/{object} But it does not work... I was also looking for an activities or actions FQL table, since each action has an id , they should be accessible somewhere. Any suggestions? AFAIK there is no

Facebook online friend

只愿长相守 提交于 2019-11-28 08:50:11
ive tryed some solution found here to get a list of my friend online: Facebook FQL query to get all users online How to get list of online friends using FQL with facebook API? this is my fql query: $fql = "SELECT uid, name, online_presence, status FROM user WHERE uid IN ( SELECT uid2 FROM friend WHERE uid1 = '".$me['id']."')"; But the presence field is empty for 99% of my friends. I get the presence (active, idle, offline), only for 6/7 friends. the same for the status field. How i can get the complete presence and status data? What i'm missing? I need to request a particular permission for my

fql result count

↘锁芯ラ 提交于 2019-11-28 08:48:46
问题 how to find fql result count? 回答1: FQL doesn't support a COUNT function. Get the results, and just enumerate them. See here: http://blogs.x2line.com/al/archive/2007/10/07/3287.aspx 回答2: I think it's a decision taken by design. It would be potentially very expensive to allow COUNT over huge tables like Facebook ones. I've seen they have tables to store specific counts so you can query them already calculated. 来源: https://stackoverflow.com/questions/2841569/fql-result-count

Get all of a user's likes (all of them) with FQL

一曲冷凌霜 提交于 2019-11-28 06:02:55
I'm trying to get ALL of a user's likes with FQL. Following is my research including what I've tried and the problems with each attempt. 1) The most simple method would be to query the table on the uid. So this returns 57 (for me) likes on other's stream. SELECT object_id, post_id, user_id FROM like WHERE user_id = me() XML looks like this (note unexplained absence of post_id) <like> <object_id>10150695050005313</object_id> <post_id></post_id> <user_id>xxxxxxxxxxx</user_id> </like> The above seems like a logical step, but Facebook doesn't index the user_id field so I can't use the following

How mark a Facebook notification as read via Facebook API?

喜夏-厌秋 提交于 2019-11-28 05:44:19
问题 I have managed to get a list of new Facebook Notifications but can't seem to find a way of marking them as read? I am using FQL with the PHP SDK . Please can someone point me to some documentation with examples. 回答1: To mark a notification as read, POST to graph.facebook.com/NOTIFICATION_ID with param "unread"=0 . If you've received the notification object via Grapth API, NOTIFICATION_ID equals the id of the notification object. If you've received the notification object via FQL, you'll have