facebook-fql

FQL: Limit and Offset variance return unexpected results

萝らか妹 提交于 2019-12-11 03:52:41
问题 FQL is hard. Making sure it returns all possible results is one of the most mystifying exercises I can think of. Consider these queries, that only differ by limit and offset, and their returned results: SELECT caption FROM photo WHERE aid IN (SELECT aid FROM album WHERE owner = me()) AND 0 < created AND created < 1299952078 LIMIT 400 OFFSET 0 Returns 400 results. Okay, cool. SELECT caption FROM photo WHERE aid IN (SELECT aid FROM album WHERE owner = me()) AND 0 < created AND created <

Can FQL be used to extract a list of all applications a user uses?

霸气de小男生 提交于 2019-12-11 03:44:43
问题 Is it possible, using FQL, to find out which applications a user is using? I have looked at the stream and application tables and am able to get a bit of info from there, but only for updates posted the past 30 or so days. And it also gives me a lot of info that i do not need. So, is it somehow possible to get a list of app ID's, canvas names and descriptions of all (active published) applications a user has subscribed to? 回答1: No, there isn't a good way to do this. An app can check if it is

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

Retrieve list of sent friend requests from friend_request FQL table

谁说胖子不能爱 提交于 2019-12-11 02:29:50
问题 I need to display a list of friend request that I have sent to. I tried using FQL: SELECT time, message FROM friend_request WHERE uid_from = me() However, this alway returns an error message: The uid_from field is not indexed Is there any way to achieve this? 回答1: This is not possible - the Documentation for the friend_request FQL table clearly shows that the only indexable field in the table is uid_to You can read a list of friend requests sent to the current user, or check the status of any

Facebook: Is there a way of getting the current_location of users who are not my friends? Graph API or FQL

℡╲_俬逩灬. 提交于 2019-12-11 02:19:14
问题 Let's imagine I have a user ID and username. I manually open her Facebook page (namely, http://www.facebook.com/username. And there it is! The "lives in" field appears saying she lives in wherever. Nevertheless, when I try to fetch her current_location using FQL (using Python): q = 'SELECT uid, username, current_location FROM user WHERE uid=%s' % aUser I get None in the field current_location. On the other hand, I can easily retrieve the current_location from my friends (I mean, for those

Getting Facebook Share, Like and Comment Counts for a Given URL with API Graph v2.6

半世苍凉 提交于 2019-12-11 00:42:09
问题 As both Legacy REST API and Facebook Query Language (FQL) will no longer be available after 7th August I am looking for an API Graph v2.6 based on alternative to: https://api.facebook.com/method/links.getStats?urls=http://www.imdb.com/title/tt2015381/&format=json https://graph.facebook.com/fql?q=SELECT url, normalized_url, share_count, like_count, comment_count, total_count,commentsbox_count, comments_fbid, click_count FROM link_stat WHERE url='http://www.imdb.com/title/tt2015381/' So far,

What is the parameter “distance” when using search fql?

南笙酒味 提交于 2019-12-11 00:27:13
问题 What does "distance" refer to? Amount of miles? Radius? I can't find any documentation on it. What's the maximum limit FB will allow us to grab? $nearby = $facebook->api('/search?type=place&center='.$_GET['lat'].','.$_GET['lon'].'&distance=1000&limit=200'); 回答1: Distance refers to the radius with respect to the latitude and longitude of the location in meters. As mentioned by Chris, the maximum is 50,000 m. 来源: https://stackoverflow.com/questions/9501449/what-is-the-parameter-distance-when

FQL returning empty set?

纵饮孤独 提交于 2019-12-10 23:04:52
问题 I am trying to get my feet wet in the Facebook API and FQL. My query is returning an empty set, and I'm not sure what permissions to change. I had started an old app years ago when the API first came out. I am trying to use that app and the fql.query test console For starters, I am trying to get my wall posts: SELECT actor_id, message FROM stream WHERE source_id = xxxxx limit 50 And the return is: [] So then I tried the same query with source_id = yyyyy , a friend's ID, and I got his posts.

How can I get all open graph pages owned by an application?

你离开我真会死。 提交于 2019-12-10 22:11:08
问题 I am trying to get all open graph pages owned by an application. I tried this query, but it returned an empty data set. I want to try this with the app id instead and wondering if there is a way to do that. https://graph.facebook.com/fql?q=SELECT page_id, type from page_admin WHERE uid=me()&access_token={token} 回答1: I haven't found a way to get the pages owned by an application. But there is a way to get pages owned by a user: https://graph.facebook.com/USER_ID/accounts?access_token=ACESS

How to retrieve all email addresses in Facebook through API

Deadly 提交于 2019-12-10 21:57:06
问题 Facebook users can add multiple email addresses. I know, with the extended "email" permission, you can retrieve the primary email address through the graph API. How do you retrieve the rest of the email addresses? This is important for my app so that I can find their existing account in my database rather than unnecessarily creating a new account. 回答1: The alternative email addresses are not available. They are not listed on the FQL table or the Graph API. 来源: https://stackoverflow.com