facebook-fql

FQL query to get the Immediate family (name, birthday and relationship)

試著忘記壹切 提交于 2019-12-12 05:26:27
问题 I trying to get my immediate family data from facebook using FQL. I run this statement: SELECT first_name, middle_name, last_name, birthday_date from user where uid IN (SELECT uid FROM family WHERE profile_id = me() and (relationship = 'brother' or relationship = 'sister' or relationship = 'father' or relationship = 'mother' or relationship = 'son' or relationship = 'daughter' or relationship = 'wife' or relationship = 'husband')) But I want to have also the relatioship in the data. It gives

get friend ids from friend_list using fql

為{幸葍}努か 提交于 2019-12-12 03:56:36
问题 Forgive me if this has been answered before, but looking at the questions asked I did not see my answer already in StackOverlow. I am an experienced PHP programmer getting to know the Facebook API. I think the FQL implementation is pretty freaking cool. My knowledge of SQL statements will make the learning experience very smooth. However, Facebook's documentation seems to negate that a few times. I see a list of objects I can query, but I feel like the list is missing certain relational

Facebook - retrieving comment-count from fb:comments using href?

半城伤御伤魂 提交于 2019-12-12 03:09:20
问题 I've integrated fb:comments using the href parameter, but I am now stuck in a situation where I need to retrieve the comment count without fb:comment-count. I normally use an FQL query such as below... $result = $facebook->api(array( 'query' => 'SELECT post_id FROM comment WHERE xid = "' . $xid . '"', 'method' => 'fql.query')); $comment_count = count($result); However, there is no href column present in the comment table. Is there another way to do this? I have tried seeing if xid and href

Facebook App invitation request

邮差的信 提交于 2019-12-12 02:54:42
问题 I want to send the App req to 5 people , i have managed to get the UserID's of 5 people but its always those same 5 people , isnt there a way to randomise the USERID's which i get from Facebook ? <script> var profilePicsDiv = document.getElementById('profile_pics'); FB.getLoginStatus(function(response) { FB.api({ method: 'friends.get' }, function(result) { Log.info('friends.get response', result); var user_ids="" ; var numFriends = result ? Math.min(5, result.length) : 0; if (numFriends > 0)

FQL return 0 as like count for few pages

我们两清 提交于 2019-12-12 02:34:43
问题 While running FQL query for retrieving page like count, i get 0 count for few pages. For most pages count comes fine but for few its always 0 Steps to reproduce: Hit the following query: 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+IN+(select+page_url+from+page+where+page_id+in+(344556287396,127535033990841,77277900503,293373084463))+ Expected Behavior Correct

how to get user ID (uid) by third_party_id in Facebook API 2.1

我的未来我决定 提交于 2019-12-12 02:02:55
问题 Facebook API 1.0-2.0 has FQL, so I can get ID by FQL. But FQL will be removed in version 2.1. $result = self::getAPI()->api("fql", "GET", array('q' => 'select uid from user where third_party_id="'.$thirdPartyId.'"', 'access_token' => Const::APPACCESS_TOKEN)); so question is how to get user id by third_party_id in API 2.1? 回答1: You could still get facebook uid by facebook third party id by sending GET request to this Graph API endpoint: https://graph.facebook.com/[THIRD_PARTY_ID]?access_token=

How to get the image from a facebook photo comment?

我怕爱的太早我们不能终老 提交于 2019-12-12 01:23:40
问题 Either API or FQL, I am trying to get the photo submitted as comment in a photo post. To make clearer here is what I am saying I post a photo on my page timeline. people now post comments on the said photo either text comment or attaching photo in each comment. Now, what I am getting is the comment information only. I want to get the information about the photo used in comment also. Thanks. 回答1: The picture (in the comment ) could be fetched with the attachment parameter. By default, you did

Getting from Facebook API total number of likes per post

血红的双手。 提交于 2019-12-12 01:02:20
问题 I'm working with the following Facebook API endpoints: /statuses , /links , /photos For each returned object I'm only getting likes and comments objects which display top25 results, and a pagination that leads to the next 25. I'm only interested in the number of likes . Is there a way to get that number through a different API call which doesn't require multiple pagination calls? 回答1: You can return the total number of likes for various objects using FQL. Here's the documentation for how to

How do I determine the object that was liked by a user?

岁酱吖の 提交于 2019-12-11 23:52:42
问题 I'm doing a FQL query to get posts from a user: { "feeds": "SELECT type, actor_id, target_id, app_data, action_links, permalink, post_id, viewer_id, created_time, updated_time, source_id, message, description, attachment FROM stream WHERE filter_key = 'owner' AND source_id = <userId> AND is_hidden = 0 LIMIT 50" } For the most part, the results are great. However, if the result contains a post about the user "liking" something, how can I determine what was "liked"? For example: { "type": null,

Accessing “Review” table using facebook api

老子叫甜甜 提交于 2019-12-11 21:20:47
问题 How to fetch the review data(particularly ratings) of restaurants, movies, books from facebook using their api(graph or fql)? Using the way as mentioned in https://developers.facebook.com/docs/reference/api/Review , it doesn't give ratings for many(none to whatever I sampled) restaurants even though you find them to be rated when you search for restaurants nearby in graph search bar. Is it intentional by facebook? Or if it is possible, kindly share it here with a working example. 回答1: That