facebook-fql

Facebook mutual friends and FQL 4999/5000 record limit

随声附和 提交于 2019-11-27 00:58:47
问题 I'm trying to select all mutual friends' connections with PHP/FQL. Using my UID (540 friends), which means >12,000 connections, of which >6500 are unique. So this code should return all the connections but Facebook apparently has a 4999/5000 row limit on FQL queries. // select mutual unique friends $unique_connections = $facebook->api_client->fql_query(" SELECT uid1, uid2 FROM friend WHERE uid1 IN (SELECT uid2 FROM friend WHERE uid1=$uid) AND uid2 IN (SELECT uid2 FROM friend WHERE uid1=$uid)

How can I count the total friends of a Facebook user by uid?

元气小坏坏 提交于 2019-11-27 00:46:46
问题 How can I count the total friends of a Facebook user by uid ? 回答1: There is a friend_count field against the user table that you can query. SELECT friend_count FROM user WHERE uid = me() Just replace me() with the UID of the user that you want to query. 回答2: @Scott This very much works, I didn't expect it to :) https://graph.facebook.com/fql?q=SELECT friend_count FROM user WHERE uid = 273103345 I tried with a random user id who is not a friend in Graph API. However for few random uids it

Graph API how get facebook page members/likes

对着背影说爱祢 提交于 2019-11-27 00:44:58
问题 Facebook like check I've found an interesting app . This fb-app get all likes from any fanpage and sort it by mass and country! My question: how do these app get the data from the graph api ? First: get the fanpage-object no access token needed https://graph.facebook.com/cocacola/ { "about": "The Coca-Cola Facebook Page is a collection of your stories showing how people from around the world have helped make Coke into what it is today.", "checkins": 146, "description": "Created in 1886 in

Facebook API - How to get user's address, phone #?

核能气质少年 提交于 2019-11-26 22:55:00
Is anyone able to get facebook user's address, phone # using FQL or Graph api? Have tried the following FQL and was able to get 'Current City' and 'Hometown' which are under 'Basic information' but not the 'Address' or 'Phone' which are under 'Contact Information'. SELECT name,first_name,last_name,birthday_date,current_location,hometown_location,pic,profile_url,timezone,username,profile_update_time FROM user WHERE uid IN (xxxx) Nick Craver These attributes are specifically and intentionally not available via the API, for spam prevention reasons (maybe other reasons as well)... bkaid Facebook

Facebook FQL: Get checkins within range

对着背影说爱祢 提交于 2019-11-26 21:41:08
问题 Is there a way to use FQL to select all my friends Checkins that are in range of a specified location? I can use FQL to return my friends checkin coords: https://api.facebook.com/method/fql.query?access_token={0}&query=SELECT coords FROM checkin WHERE author_uid IN (SELECT uid2 FROM friend WHERE uid1 = me()) but how can I add to the above query to do something like... Where coords Within 10 miles of [(New York City, NY) | (long, lat) | (user.current_location)] Any help would be greatly

Does facebook fql contain the sql like operator?

只谈情不闲聊 提交于 2019-11-26 21:27:05
问题 I am building a small facebook app. Trying to search for values in an auto compelte manner. Is it possible to use sql's like operator in fql? 回答1: There is no LIKE operator in FQL. However, you may have luck with the IN operator: WHERE "Stanford" IN education_history.name This page may also help and has sample queries: FQL 回答2: Another way for you is to use the strpos(message, "content you want") >= 0. I don't know why, but the IN operator does not run for me. Did anyone try it? 回答3: I know

Getting the Facebook like/share count for a given URL

浪尽此生 提交于 2019-11-26 21:23:19
I'm using the Facebook API to get the like/share count for given URLs. The strange thing is that it seems to be quite inconsistent in returning results. For example, this page returns results: https://api.facebook.com/method/fql.query?query=select%20total_count,like_count,comment_count,share_count,click_count%20from%20link_stat%20where%20url='http://www.groupon.com/deals/seattlehelitourscom-by-classic-helicopter-corp'&format=json Whereas, this one does not: https://api.facebook.com/method/fql.query?query=select%20total_count,like_count,comment_count,share_count,click_count%20from%20link_stat

Retrieve Facebook Fan Names

↘锁芯ラ 提交于 2019-11-26 20:22:10
I'm trying to grab the names of fans of a Facebook fan page that I administer. I've done some snooping around, and apparently, the FB API doesn't support that, but Facebook actually uses AJAX/JSON to populate the list. Anyways, can anyone suggest a way to make that call myself and grab the data as plain text? Also, I've found a hack that a guy wrote in Ruby, but I am completely unfamiliar with the language. Thanks for the help in advance! At the current time the FQL schema would suggest that there is no way to get a collection of FANS for any given PAGE. I think they are hiding this

How to list all comments in my domain

此生再无相见时 提交于 2019-11-26 17:47:26
问题 I am using the HTML5 version of Facebook Comment in my website. I have my own Facebook APP Id. Using Graph-API , and FQL (I think this is how to do it), I want to list all the Comments posted in my website. Example - Page Title1 --Comment1 --Comment2 --Comment3 Page Title2 --Comment1 --Comment2 --Comment3 Page Title3 --Comment1 --Comment2 --Comment3 etc. Please help me out. 回答1: It is possible, in two different ways, as long as you have a fixed set of sub-pages you want to fetch comments from

Facebook API, Phone Numbers

孤街浪徒 提交于 2019-11-26 16:42:49
问题 I am developing a Facebook Application that I need to get all the information of user, including mobile phone. However, even this page claims https://developers.facebook.com/blog/post/446 that user_mobile_phone permission exists, neither the documentation includes a field of mobile phone number. I am creating a synchronization of contacts, so the phone field is very important. Why this is blocked? Spamming with mobile is not a very nice spamming approach, it has a cost. They even let e-mails