facebook-fql

Facebook application ( count friends registered )

丶灬走出姿态 提交于 2019-12-06 16:03:25
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! It retrieves uid of friends of the user, specified by ? , that are also users of your application. So instead of ? just put the current user's id. Detailed information about: user and friend fql tables Eddy Chan In case you want to use the uid of

How to use devices field of the user table in FQL query?

心不动则不痛 提交于 2019-12-06 16:02:18
问题 I would like the result of a FQL query to only return friends of a user which have a iOS device in their devices list. The following query: SELECT uid, first_name, devices FROM user WHERE uid IN (SELECT uid2 FROM friend WHERE uid1 = me()) ORDER BY profile_update_time DESC LIMIT 0, 100 returns a list like this: { "data": [ { "uid": 12345678, "first_name": "John", "devices": [ { "os": "iOS", "hardware": "iPhone" } ] }, { "uid": 1234345678, "first_name": "Pete", } } Now I would like to only

Facebook Graph to show Event Attendees

孤者浪人 提交于 2019-12-06 15:58:39
I am looking to display the attendees for a given facebook event on a PHP page. Ideally it would be that graphical display with people's pictures displaying. I believe this could be done using the facebook graph API, but the following is giving me an error requiring signature: https://api.facebook.com/method/fql.query?query=SELECT uid FROM event_member WHERE eid = ... AND rsvp_status = 'attending' Also, how would I even get the eid? Can it simply be parsed off the end of an event page link? www.facebook.com/events/...eid#... Thanks everybody! To get event attendees you can run following FQL

Extract poll results from Facebook Graph API

大兔子大兔子 提交于 2019-12-06 14:57:54
问题 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? 回答1: Sorry, there's currently no way you can do this via the Graph API. 来源: https://stackoverflow

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

大城市里の小女人 提交于 2019-12-06 13:57:36
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 first_name,uid FROM user WHERE contains('pete') AND mutual_friend_count > 1 gives and empty set (and no

How do I get the Facebook Server Time?

别等时光非礼了梦想. 提交于 2019-12-06 13:22:19
I have created a facebook iframe app using Flash on the client and .net on the server. I am using fluorineFX to communicate between the two. I need to get the exact facebook server time from my server. This is for authenticating the user on my server so I don't want to get the time from the client and then pass it to the server. This is the only interaction I need with Facebook from my server, all other interaction is handled by the client using the old rest API. What is the best way to do this? I have read you can use FQL but seeing as its just the time I am looking for is there a way which

From FQL we want to get users current location in php

点点圈 提交于 2019-12-06 13:00:00
问题 I want to get my friends which belongs to my city from facebook and for this i use current_location.city. But its not working... please help me. Thanks 回答1: This FQL query works for me. It returns an array of each user's {uid, current_location} where the current_location includes text of the city that I want. SELECT uid, current_location FROM user WHERE uid in (SELECT uid2 FROM friend WHERE uid1 = me()) AND 'Seattle' in current_location Change 'Seattle' to whatever city you'd like, or use a

Requires user session error while using FQL in facebook

断了今生、忘了曾经 提交于 2019-12-06 12:27:26
问题 I am making a fb app and this is what I need to do: I get the page id of a business page and I need to get the admin_id of the page. I am using the following code and I get the error message which I have copied at the end. Can anyone kindly help me ? Thanks. include_once 'facebook.php'; $facebook = new Facebook($api_key, $secret); //$page_ids == page_id of a business/fan page $query="SELECT uid from page_admin where page_id =".$page_ids.";"; $admins =$facebook->api_client->fql_query($query);

FQL using facebook android SDK

 ̄綄美尐妖づ 提交于 2019-12-06 11:23:33
问题 I'm trying to create an android application using the facebook android SDK (http://github.com/facebook/facebook-android-sdk). I'm trying to figure out if I will be able to use FQL using this SDK. If anyone has any experiences in this regard, please let me know. FQL can apparently be used using https://api.facebook.com/method/fql.query?query=QUERY, the facebook android SDK however doesn't seem to support this. Thanks; 回答1: This is probably a better way than mentioned. Using the current version

Sorting facebook album photos using graph Api

徘徊边缘 提交于 2019-12-06 11:16:08
I am trying to get last 7 updated images from album folder. I used reverse_chronological as well as chronological but its not working. Based on time update i have to sort the images. https://graph.facebook.com/{albumid}/photos?&field=id,created_time.order(reverse_chronological),description&limit=7&access_token={zxczczxczx} Looking at the documentation around ordering , this format should work: https://graph.facebook.com/{album-id}/?fields=photos.order(reverse_chronological) Can you try that? 来源: https://stackoverflow.com/questions/35499896/sorting-facebook-album-photos-using-graph-api