facebook-fql

Facebook FQL `like` table retuns max 100 rows?

心不动则不痛 提交于 2019-12-10 20:14:47
问题 OK, so the title mainly says it all. I want to get the number of likes that I gave to people, for which I am doing a query like: SELECT object_id FROM like WHERE user_id = me() However, for large accounts, this always returns 100, even if I add LIMIT 1000 at the end of the query. If I make the limit lower than 100 (eg. 50), it will only show 50 results, so LIMIT works... Is anyone aware of a limitation that Facebook imposes on the number of returned results in this table? I am mainly waiting

Facebook FQL Get All Posts At Location

时光毁灭记忆、已成空白 提交于 2019-12-10 19:01:39
问题 The location_post FQL table is described as the following: An FQL table that returns Posts that have locations associated with them and that satisfy at least one of the following conditions: you were tagged in the Post a friend was tagged in the Post you authored the Post a friend authored the Post So I wrote the following FQL script with the intent of getting all posts my friends and I had made at a certain location: SELECT id, message, post_id, timestamp FROM location_post WHERE page_id

Finding who shared a link publicly and finding who reshared a given link

℡╲_俬逩灬. 提交于 2019-12-10 18:58:32
问题 Two questions regarding tracking shared links: I have a URL and I want to get a list of public shares for that URL. I found this was answered a couple of times here on stackoverflow claiming it's impossible, but I don't understand why this is not allowed. If I can query public posts for given search keywords, like: https://graph.facebook.com/search?q=watermelon&type=post, then why can't I use URLs as my search query? Or is there a way to do this that I just missed somehow? Let's say I have a

Facebook application ( count friends registered )

随声附和 提交于 2019-12-10 11:38:23
问题 Using JS SDK for facebook, is there a way to count number of friends (of currently logged in user) that are also using my application ?? I found this query online SELECT uid FROM user WHERE user.uid IN (SELECT uid2 FROM friend WHERE uid1 = ?) AND is_app_user = 1 But I don't understand it, and I don't know what to put instead of '?' Thanks in advance! 回答1: It retrieves uid of friends of the user, specified by ? , that are also users of your application. So instead of ? just put the current

FQL, search for non-friend people and sort by mutual friends

霸气de小男生 提交于 2019-12-10 10:54:16
问题 I look for facebook users (any user, not just my friends or the friends of a specific user) with a pattern in the name, like this: SELECT first_name,uid FROM user WHERE contains('pete') This returns an array of people who's name contains "pete" (i.e. also "peter"). The number is quite high, so the results are of course truncated. I would like to grab, in this set (before the server-side truncation) who has most mutual friends with me (or with an arbitrary user id). However, issuing SELECT

Facebook FQL / Graph - Get all current pokes

纵然是瞬间 提交于 2019-12-10 10:45:47
问题 How can I get my current pokes (and pokes back)? Normaly they must be in the table "notification" ... I am confused. Hope someone can help me. 回答1: Here is a working example that prompts for read_mailbox permission and uses /me/pokes to retrieve a users pokes. This can be done in any server side language too using the same logic. Get Pokes: <!DOCTYPE html> <html> <body> <div id="fb-root"></div> <a href="#" onclick="getPokes();return false;">Get Pokes</a> <script src="http://connect.facebook

facebook fql query similar to friends checkins

感情迁移 提交于 2019-12-10 10:19:51
问题 Looking for the fql equivalente to the search below. Looking to get all checkins by friends and the name of the place. https://graph.facebook.com/search?type=checkin&access_token=... EDIT temp_time = 2 weeks ago If below, gets me the the page ID(place) and Author ID (user) of checkins SELECT author_uid, page_id FROM checkin WHERE timestamp > #{temp_time} AND author_uid IN(SELECT uid2 FROM friend WHERE uid1=me()) What would be the sql or fql statement to include the user name and place details

Identify Spam from fb:comments via FQL

江枫思渺然 提交于 2019-12-10 10:08:41
问题 I'm running an FQL query to get comments for a particular post made on a site. Is there a way to identify whether it has been marked as spam? If not, I can see that the blog owner removed some comments so that they are not visible on the site. Is there a away to identify which have been "hidden/deleted" by the blog owner? Thanks 回答1: I'm using the is_private attribute. It seems to be set to true when comment is marked as spam or deleted. 来源: https://stackoverflow.com/questions/8301801

Please explain FQL profile table pic_crop

本小妞迷上赌 提交于 2019-12-10 00:26:39
问题 What do the coordinates returned by querying pic_crop mean when related to a profile picture. I have tried working this one out by cannot figure it! Please help! The values for left, top, right and bottom are a decimal like e.g. left 0.20115. What does 0.20115 mean? If you look at the source code for a facebook profile you will see that facebook is using a percentage to offset the profile photo. How does 0.20115 translate to facebook source of style="left:-23.13%;" 回答1: Looking at a few

Why does FQL return different user IDs to Graph API

三世轮回 提交于 2019-12-09 21:51:03
问题 I want to see which users can see a particular album. I use the following query to get my albums and their privacy settings: SELECT id,allow,deny,description,friends,value FROM privacy WHERE id IN (SELECT object_id FROM album WHERE owner=me()) and it returns something like this for each album: { "id": 212102865605678, "allow": "211824028961234,212367312342178", "deny": null, "description": "John Doe, Work People", "friends": "SOME_FRIENDS", "value": "CUSTOM" } The second ID in the allow