facebook-fql

Random Friend using FQL

女生的网名这么多〃 提交于 2019-12-06 10:40:57
I am right now using fql which brings all the friend list in array. Then I sort that array to get a random friend. But it seems to take long time since i have to collect all the friends to get single random friend. How do i go this in fql to get random friend? SELECT uid, name, pic, sex FROM user WHERE uid IN (SELECT uid2 FROM friend WHERE uid1=me()) SELECT uid, name, pic, sex FROM user WHERE uid IN (SELECT uid2 FROM friend WHERE uid1=me()) order by rand() limit 1 来源: https://stackoverflow.com/questions/11465976/random-friend-using-fql

How can I retrieve the number of fans my Facebook page had on a given day?

给你一囗甜甜゛ 提交于 2019-12-06 09:28:00
How can I retrieve the number of fans my Facebook page had on a given day? I am trying to find a way to display a plot of date vs number of fans, but I can't find a way to get the number of fans by date. I have tried this: select active_users from metrics where end_time = 1263812045 and period = 2592000 in the Facebook developers tools page for my Page ( http://developers.facebook.com/tools.php ), but it retrieves an empty set. Firstly: you can retrieve statistics such as active users for apps, but it won't tell you how many fans your page has. To retrieve fans you need to query the fan_count

Facebook FQL / Graph - Get all current pokes

旧时模样 提交于 2019-12-06 08:35:58
How can I get my current pokes (and pokes back)? Normaly they must be in the table "notification" ... I am confused. Hope someone can help me. Here is a working example that prompts for read_mailbox permission and uses /me/pokes to retrieve a users pokes. This can be done in any server side language too using the same logic. Get Pokes: <!DOCTYPE html> <html> <body> <div id="fb-root"></div> <a href="#" onclick="getPokes();return false;">Get Pokes</a> <script src="http://connect.facebook.net/en_US/all.js"></script> <script> FB.init({ appId : '**yourAppID', status : true, cookie : true, xfbml :

Possible to get when a facebook friend request was issued?

百般思念 提交于 2019-12-06 08:25:47
问题 The friend_request stream contains 2 fields - uid_from and uid_to. There's no date info on when the request was made. Is ther any other table that contains that information? Thanks! 回答1: Got word back on the Facebook forums - it's not possible 回答2: You can track that yourself, on a going forward basis, but subscribing to friend events. The subscribe API falls under the "real-time" updates. Not sure what you are trying to do. http://developers.facebook.com/docs/api/realtime 回答3: If you look at

how to get all my facebook application users?

耗尽温柔 提交于 2019-12-06 07:00:04
问题 I want to get the list of users who have connected to the app. Is there a way to do it using FQL or Graph API? 回答1: With FQL, just do : $fql="SELECT uid FROM user WHERE uid IN (SELECT uid2 FROM friend WHERE uid1 = ".$me['id'].") AND is_app_user = 1"; This is self explanatory. AFAIK, its not possible via GRAPH API 回答2: I used this and works fine. This will get you a lists of your friends who have approved the app, not all the users function getUsersApplication(){ var url = "https://api

Facebook Api getting feeds and comments

痴心易碎 提交于 2019-12-06 05:29:29
问题 I'm trying to get the feeds on a public wall and the associated comments. So every X minutes I'm doing a query in order to get what's new (feeds and comments). I need the feeds (the new feeds since myDate) and comments (comments posted on the new feeds and comments posted on older feeds). So if someone posted a comment on a older feed I want to get it. I tryied to do this using FQL and Graph API but I don't manage to find the best solution. With FQL there are some problems (bugs) with LIMIT

FQL query for finding public event

痴心易碎 提交于 2019-12-06 05:15:13
I would like to execute an FQL query for retrieving all the public events in a specific area (using longitude,latitude and maximum distance or simply location name). Do you know if it's possible? Apparently, somebody is able to do it, somehow: http://elmcity.info/fb_events?location=tokyo It is possible indeed to receive events using location based "search" To do so you'll need the longitude and latitude coordinates of the location you want to search and a access_token with user_events permission (i think you could also use the public search) Here's an FQL example how can you get all the events

List of all facebook events in a given location in the last two years

谁说胖子不能爱 提交于 2019-12-06 04:23:41
问题 What I am trying to do I am trying to extract a list of all public facebook events that have happened in a given city in 2012 and 2013. Furthermore for each of them, I want to extract the following: event name event description date location number of people on attending/maybe/declined What I have tried so far I have been trying the following query in graph explorer search?q={Oslo}& [type={event}](#searchtypes) I have ignored the date range constraint for now. I figure that I can fix that

Is there a way to get the ID of a message thread in Facebook? [closed]

血红的双手。 提交于 2019-12-06 03:05:23
If I have the URL of a facebook thread from a user's messages, is there a way to get the id of that thread? I get how to construct a url given an id, but not the other way around. The URL can have two formats: https://www.facebook.com/messages/123456789 or https://www.facebook.com/messages/<username> I need to be able to handle both cases. Thanks. Stéphane Bruckert SELECT thread_fbid FROM unified_thread WHERE single_recipient = <USER ID> Doc: https://developers.facebook.com/docs/reference/fql/unified_thread This gives exactly what you want. The problem is: (#298) You must be a developer of the

Facebook Javascript, How to detect if user is a fan of my facebook page? While on my site?

不问归期 提交于 2019-12-06 02:09:19
I have the following JS code. The code's purpose is to first get the users facebook id, and then using FQL check that id against my page ID and make sure the user is a fan. The problem I am running into is that the only time the code actually works is if i login with my own personal facebook profile. I think its because my profile and the FB.init appid are somehow linked? Can someone take a look at this code and show me where I am going wrong? My goal again is to use JS to first get the users id (thus their thumbnail image), and then cross reference that against my own facebook page to check