facebook-fql

Facebook API limits

拥有回忆 提交于 2020-01-21 08:13:28
问题 I'm using the Facebook Graph and FQL API from an application (OAuth authenticated). I've been unable to find anything about rate limiting/throttling in the documentation. Normally, I'd expect some kind of limit in class/user... Looking in at the Facebook app page Insigths -> Diagnostics: PI Throttling None during specified period. API Throttling Warnings None during specified period. Feature Limits Feature limit per user, per day Requests 1.0 20 Which indicates some kind of throttling may be

Facebook API limits

让人想犯罪 __ 提交于 2020-01-21 08:12:03
问题 I'm using the Facebook Graph and FQL API from an application (OAuth authenticated). I've been unable to find anything about rate limiting/throttling in the documentation. Normally, I'd expect some kind of limit in class/user... Looking in at the Facebook app page Insigths -> Diagnostics: PI Throttling None during specified period. API Throttling Warnings None during specified period. Feature Limits Feature limit per user, per day Requests 1.0 20 Which indicates some kind of throttling may be

EOFError: end of file reached issue with Net::HTTP

巧了我就是萌 提交于 2020-01-18 19:39:28
问题 I am using ruby-1.8.7-p302/Rails 2.3.11. I am trying to use FQL (Facebook API) to get stats for a link. Here's my code: def stats(fb_post_url) url = BASE_URI + "?query=#{URI.encode("select like_count from link_stat where url=\"#{fb_post_url}\"")}" parsed_url = URI.parse(url) http = Net::HTTP.new(parsed_url.host, parsed_url.port) request = Net::HTTP::Get.new(parsed_url.request_uri) response = http.request(request) response.inspect end And here's the error: EOFError: end of file reached from

EOFError: end of file reached issue with Net::HTTP

假装没事ソ 提交于 2020-01-18 19:36:44
问题 I am using ruby-1.8.7-p302/Rails 2.3.11. I am trying to use FQL (Facebook API) to get stats for a link. Here's my code: def stats(fb_post_url) url = BASE_URI + "?query=#{URI.encode("select like_count from link_stat where url=\"#{fb_post_url}\"")}" parsed_url = URI.parse(url) http = Net::HTTP.new(parsed_url.host, parsed_url.port) request = Net::HTTP::Get.new(parsed_url.request_uri) response = http.request(request) response.inspect end And here's the error: EOFError: end of file reached from

EOFError: end of file reached issue with Net::HTTP

╄→гoц情女王★ 提交于 2020-01-18 19:36:10
问题 I am using ruby-1.8.7-p302/Rails 2.3.11. I am trying to use FQL (Facebook API) to get stats for a link. Here's my code: def stats(fb_post_url) url = BASE_URI + "?query=#{URI.encode("select like_count from link_stat where url=\"#{fb_post_url}\"")}" parsed_url = URI.parse(url) http = Net::HTTP.new(parsed_url.host, parsed_url.port) request = Net::HTTP::Get.new(parsed_url.request_uri) response = http.request(request) response.inspect end And here's the error: EOFError: end of file reached from

running a “join” like FQL for getting a user name along the news feed posts

自闭症网瘾萝莉.ら 提交于 2020-01-14 14:55:13
问题 I am trying to get all the posts in the news feed for a specific user using FQL using the following FQL statement: SELECT post_id, actor_id, target_id, message, created_time, updated_time, permalink, description FROM stream WHERE filter_key in (SELECT filter_key FROM stream_filter WHERE uid=me() AND type='newsfeed') AND is_hidden = 0 AND created_time > xxx But i need the user name (first and last names) of every user that made a post that appears in my news feed (the user name that is

Getting all likes on my domain (facebook)

蓝咒 提交于 2020-01-14 13:31:31
问题 I'm trying to get statistics for likes on my domain. I would like to get all likes (if possible with user ids) for all pages on my domain (which has tens of thousands of pages) What does domain_like_adds actually return? SELECT metric, value FROM insights WHERE object_id=[domain-id] AND metric='domain_like_adds' AND end_time=end_time_date('2011-01-03') AND period=period('month') Returns blank, does anyone know what data domain_like_adds returns? Regards, Niklas 回答1: I don't think there's any

Facebook Like button, can it be made read only?

别等时光非礼了梦想. 提交于 2020-01-13 01:54:06
问题 I'm using Facebook Likes in my site. I have a gallery page which shows picture/video data and the number of likes for that data. Each piece of data has it's own URL which can be liked. However, I want to display the number of likes in the gallery navigation, but I don't want people to be able to "like" from the navigation. Is there a way to display the number of likes without the button? The only way I've seen so far is using the link stat "table" from FQL: http://developers.facebook.com/docs

Using FQL to retrieve only upcoming birthdays from Facebook API

情到浓时终转凉″ 提交于 2020-01-12 10:17:30
问题 Using the information on FQL and the user table from Facebook's Developer's docs, I've come up with the following code. //build fql string $fql = "SELECT name, birthday_date FROM user WHERE uid IN (SELECT uid2 FROM friend WHERE uid1 = me()) AND strlen(birthday_date) != 0 AND substr(birthday_date,0,3) IN ('{$currentMonth}/', '{$nextMonth}/')"; $fql.=$orderBy; $fql.=" LIMIT " . $limit; //query facebook $params = array( 'method' => 'fql.query', 'query' => $fql, 'callback' => '' ); $birthdays =

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

家住魔仙堡 提交于 2020-01-11 23:05:46
问题 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";