facebook-fql

SSL Connection timeout in facebook fql

不羁岁月 提交于 2019-12-05 06:18:26
I am using facebook api to get backup of the facebook photos using access_token and fql. Using fql I got the list of albums of the user $client = new Facebook(array('appId' => 'xxxx', 'secret' => 'xxxxxx')); $fql_albums = "SELECT aid,name from album where owner=$user_Id"; $albumId = $client->api(array( 'method' => 'fql.query', 'access_token' => $user_access_token, 'query' => $fql_albums, )); After getting this list I run a query to get all the photos in the album and then download that album and then moves to the next album. It only download 2 albums and then gets an error as shown below ( ! )

Facebook emails always return null through FQL and RestFB

柔情痞子 提交于 2019-12-05 06:15:59
I'm trying to convert friend pages into fan pages (most businesses have created friend pages by mistake) and am trying to email everyone on a friend list about the move. I've tried FQL "SELECT email FROM user WHERE uid=xxxx" Creating groups (not good for 5000 friend pages) Restfb: Connection myFriends = facebookClient.fetchConnection("me/friends", User.class) etc; The FQL and RestFB methods are both returning nada, group email method is just plain messy. Is this a security feature or can this data ever by returned for my purpose? Cheers to access user's private informations like email,posts

How to filter by category in FQL

删除回忆录丶 提交于 2019-12-05 06:07:39
As you can see here , Businesses have their category information: Local Business, Sport, Education.. etc. It is the field "category". I would like to know, is there a way to filter businesses by their category and position with FQL? I haven't found how to do it. For instance: give me all the sports center in this circle (lat, lon, radius). thanks I have been looking for something and haven't found anything. It appears that only the graph api has the category information for a page. The "category" attribute in the "page" table is called "type". Here is a query to filter the logged-in user's

Why are some friends' likes unavailable through the Graph API or FQL?

拈花ヽ惹草 提交于 2019-12-05 04:40:16
问题 I have some friends whose likes I can see if I look at their timelines. However, I can't access those likes using the Graph API. I'm returned an empty set when I run: https://graph.facebook.com/DAT_USER_ID/likes?access_token=DAT_ACCESS_TOKEN or https://graph.facebook.com/fql?q=SELECT url FROM url_like WHERE user_id=DAT_USER_ID&access_token=DAT_ACCESS_TOKEN I do have the friends_likes permission granted. I created a Facebook bug report here: http://developers.facebook.com/bugs/112253515590244

Get music listens using FQL [closed]

本小妞迷上赌 提交于 2019-12-05 04:22:06
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 11 months ago . I am trying to get music.listens for a user and a user's friends using FQL. Does anyone know what is the FQL query for getting music.listens? Thanks! 回答1: You cannot currently query for Open Graph actions using FQL You need to use the Graph API. You'll need the user_actions.music and/or friends_actions.music

how to find friend's past checkins near a location?

爱⌒轻易说出口 提交于 2019-12-05 03:45:09
问题 In my app, a user is at a location and is looking for her friends who have been anywhere withing 10 miles of where she is. How do I find this with either FQL or graph? The only way that I can see is by running a search like so: https://graph.facebook.com/search?type=checkin and then running through the results to find out which location was within 10 miles. Is there a better way for this? Thanks for your help! Doles 回答1: From http://developers.facebook.com/docs/reference/fql/location_post/ It

Facebook - max number of parameters in “IN” clause?

▼魔方 西西 提交于 2019-12-05 02:38:00
In Facebook query language(FQL) , you can specify an IN clause, like: SELECT uid1, uid2 FROM friend WHERE uid1 IN (1000, 1001, 1002) Does anyone know what's the maximum number of parameters you can pass into IN ? I think the maximum result set size is 5000 thaddeusmt It may seem like an odd number (so perhaps I miss counted, but it's close ~1), but I can not seem to query more than 73 IN items. This is my query: SELECT object_id, metric, value FROM insights WHERE object_id IN ( ~73 PAGE IDS HERE~ ) AND metric='page_fans' AND end_time=end_time_date('2011-06-04') AND period=period('lifetime')

How to get who and when a user shared a Facebook post

为君一笑 提交于 2019-12-05 00:20:19
问题 For my Facebook posts my friends share (not likes) I would like get who shared it and when. Using the graph api I can get the like or comment information and the number of times a post has been shared. What I am looking for is a graph api call or Facebook fql query for shares which returns a result set similar to this: data": [ { "id": "user_id_1", "name": "Username 1", "created": "some date" }, { "id": "user_id_2", "name": "Username 2", "created": "some other date" } ] 回答1: I am also looking

Graph API / FQL Does not return all events for a page

故事扮演 提交于 2019-12-05 00:09:36
问题 Facebook Page: http://facebook.com/getwellgabby/events/ currently has 8 events on it. I can see them. Non-admins can see them and can join them. However, when I make calls via the Graph API or FQL, only 4 future events are returned. Results can be seen here: http://getwellgabby.org/events?raw=1 (Scroll to bottom for raw response.) FQL Query is: SELECT eid, name, start_time, end_time, location, venue, description FROM event WHERE eid IN ( SELECT eid FROM event_member WHERE uid =

Extract poll results from Facebook Graph API

試著忘記壹切 提交于 2019-12-04 22:17:35
Is there a way to extract the data of a given Facebook Question/Poll that is inside a group? It does not need to be automatized. There is a single poll result that I want to manually retrieve the answers and analyze them. I thought of using the Question GET, but is was deprecated in v1.0, as shown here: https://developers.facebook.com/docs/graph-api/reference/v2.3/question Is there another way? Sorry, there's currently no way you can do this via the Graph API. 来源: https://stackoverflow.com/questions/30335053/extract-poll-results-from-facebook-graph-api