facebook-fql

Facebook — best way to do FQL “join” with event and event_member?

北城余情 提交于 2020-01-11 23:02:30
问题 In a Facebook app I need to get a user's events for a date range and his rsvp status for each event. I can get the user's events fine, but at the moment I'm looking up the rsvp status for each event one at a time, and the app is timing out for people with a large number of events. I'm getting the user's events this way: $fql = "SELECT eid, name, start_time, end_time FROM event WHERE eid IN (SELECT eid FROM event_member WHERE uid = $user) AND start_time > '$timestamp' ORDER BY start_time";

Facebook — best way to do FQL “join” with event and event_member?

僤鯓⒐⒋嵵緔 提交于 2020-01-11 23:02:03
问题 In a Facebook app I need to get a user's events for a date range and his rsvp status for each event. I can get the user's events fine, but at the moment I'm looking up the rsvp status for each event one at a time, and the app is timing out for people with a large number of events. I'm getting the user's events this way: $fql = "SELECT eid, name, start_time, end_time FROM event WHERE eid IN (SELECT eid FROM event_member WHERE uid = $user) AND start_time > '$timestamp' ORDER BY start_time";

Facebook Connect and Photo Albums

北战南征 提交于 2020-01-11 11:22:08
问题 I am currently developing a site for models/actors, and at this point I am just trying to ascertain what I can and can't do with Facebook Connect (I have virtually no experience in using Facebook Connect or FQL). Basically there is going to be a facility whereby users will be able to upload their pictures. I want to know is it possible to use Facebook Connect to get the user's photo albums, in order to save the user from re-uploading all the photo's that are already on FB? If so, do I/should

How can I get the list of top 10 artciles shared on Facebook using Graph API or FQL?

天涯浪子 提交于 2020-01-11 03:28:04
问题 On my site, I have Facebook share plugin so that users can share articles on Facebook. Now I want a report of top 10 articles shared on Facebook from my site in last one week or month. I tried using FQL, https://graph.facebook.com/fql?q=SELECT url, normalized_url, share_count, like_count, comment_count, total_count FROM link_stat WHERE url like '%www.indiatimes.com%' order by total_count desc limit 10 But 'like' keyword doesn't work in fql. Please advice. 回答1: I suggest you to do this way:

How can I get pic_squre and sex from user id's I already have

孤者浪人 提交于 2020-01-07 03:17:27
问题 I am creating an application in which user can select 10 friends of the user to tag. I can get those selected 10 friends uids into an array, like: xyz[0]=1234567 xyz[1]=5364753 What is the FQL query to select pic_squarw and uid where the user id is id in the array, xyz[] . 回答1: $data->sex http://graph.facebook.com/zuck cropped picture http://graph.facebook.com/zuck/picture 来源: https://stackoverflow.com/questions/7786618/how-can-i-get-pic-squre-and-sex-from-user-ids-i-already-have

fql query character encoding

大兔子大兔子 提交于 2020-01-06 20:01:30
问题 I am executing a FQL query, and if I print the array with the results I get wrong characters. For example instead of ò I get ò. my webpage is set to: text/html; charset=ISO-8859-1 I think it's an issue with facebook and not with me.. Have you experienced something similar and did you manage to solve it? 回答1: The results from Facebook are in UTF-8 encoding. ò character is c3b2 in UTF-8 (hex) 0xC3 - à 0xB2 - ² To convert the results to ISO-8859-1 from UTF-8 in PHP you may use utf8_decode

Can't get inner text from FQL using Xpath C#

一世执手 提交于 2020-01-06 19:39:10
问题 I'm trying to get the inner text from a XML tag called sharecount, I need to get it by the normalized_url tag like so: string ShareCount; string Url = "'" + "http://www.example.com/Article.aspx?id=" + GuideID + "'"; XmlNode Node; try { //return Share count (using Xpath). XmlDoc.SelectSingleNode("fql_query_response/link_stat[normalized_url=" + Url + "]/share_count"); ShareCount = XmlDoc.InnerText; int.TryParse(ShareCount, out Value); //Turn string to int. return Value; } catch { return 0; }

Facebook FQL url likes of friends work strange

北慕城南 提交于 2020-01-06 15:18:12
问题 Hi I would like to count the url likes of my friends based on a given url, I have the following piece of code: function mQ(url){ FB.api({ access_token:'CAACEdEose0cBABMG67fV8Yn5cHo5fkb6kT6npRWO7YQL8zagoFLrz5OFLFIEPVUJhMwf9rql9oAqktDUJMKBGr5NNRXJ73jf418gspbfklvdJs6Kx1EkCRutYhSnSW4Binb4F9AlOUIHfXZC052SOdlgtxTSng6gM4CAZAstpLAoOd1p5pnCpNadnlluMqOxjHo1jx1QZDZD', method: 'fql.multiquery', queries: { "query1":"SELECT total_count, like_count, click_count, normalized_url FROM link_stat WHERE url='"

FQL API issues with array translation?

坚强是说给别人听的谎言 提交于 2020-01-06 13:57:16
问题 Just wanted to know if anyone has come across this issues, I can't seem to fix it - lol. Using Facebook fql to get all user friends data, it loads 90% of the UID's correct and then loads the others like this " http://fb.com/1.0000411781126E+14 " It's scaling the UID ... but I am not telling it to all all. Code: // run fql query $fql_query_url = 'https://graph.facebook.com/' . 'fql?q=SELECT%20uid%2Cfirst_name%2Clast_name%2Cname%2Cemail%2Ccurrent_location%2Cbirthday_date%2C%20contact_email

Facebook API - See Posts which have tagged my Facebook page

非 Y 不嫁゛ 提交于 2020-01-06 12:54:09
问题 I want to use the Facebook API to retrieve all posts/status updates on all users which have tagged my Facebook page. I have searched a lot and did not find any solution. Any solution that you know of guys? 回答1: Facebook does not expose an API that supports this scenario. 回答2: You can use this API. When you use /{page-id}/tagged to show the posts that tag this page, the results include posts from other pages only if those pages are verified. Link : https://developers.facebook.com/docs/graph