facebook-fql

get list of facebook users who are using specific application using FQL

陌路散爱 提交于 2019-11-27 16:32:54
问题 I am trying to fetch following case using FQL If few users have authorized "Application A" then is it possible to know that currently how many users are using that "Application A" ( users those are not friends of each other) So far i tried following FQL , but following query gives only information of those users who are friends of each other and using the same application , but what about other users who are not friends ? SELECT uid, name, pic_square FROM user WHERE is_app_user=1 AND uid IN

Facebook Graph API: Get post/status attached photos

强颜欢笑 提交于 2019-11-27 15:12:05
问题 How can one get multiple attachments of a post/status in a group? For example: A group status that some member wrote and added multiple photos to.. Currently I am using Graph api to get the group stream with group_id/feed and unable to see images attached to a single status - while accessing the feed from Facebook itself I can validate that there are few photos attached to the status. Using FQL it is possible to get the attachments with the following query: SELECT attachment FROM stream WHERE

Facebook FQL multiquery in iOS SDK

断了今生、忘了曾经 提交于 2019-11-27 15:09:20
问题 I am looking for some documentation or sample code on how to send multiquery fql requests to Facebook via iOS SDK. I found some older samples but they doesnt work for me. I have populated an NSDictionary with the queries and I try to send the request via [[FBRequest requestWithDelegate:self] call:@"facebook.fql.multiquery" params:params]; , as stated in the samples I have read, but I get an "unrecognized selector sent to class" error and I cant find the "requestWithDelegate" method in

How to get facebook share, like, comment count for a url with graph api only (in a non-deprecated way)

江枫思渺然 提交于 2019-11-27 13:08:52
问题 The problem is that after v2.1 of graph api fql will be deprecated. Can someone tell me how to get separate likes, share count for given url using only graph api? I was looking for some documentation, but there isn't any, i can get only total "shares" which is likes + shares + comments. Yes i know there is immortal http://api.facebook.com/restserver.php?method=links.getStats&urls, but what if facebook shuts it down at last? 回答1: The REST API (with calls like http://api.facebook.com/restserver

Retrieve all comments with FQL by application ID

一曲冷凌霜 提交于 2019-11-27 11:47:47
问题 We use the facebook comment plugin to have comments on our site. To moderate those, we use this tool: https://developers.facebook.com/tools/comments However, we want to build our own tool to moderate those comments, and integrate it to our existing software. I can't find a proper way of doing this. the only way I found out now after hours of research is this FQL query: select post_fbid, fromid, object_id, text, time from comment where object_id in (select comments_fbid from link_stat where

List of people who shared on facebook

眉间皱痕 提交于 2019-11-27 11:29:32
I've been scouring the docs for a while now and can't seem to find a way to accomplish this. The information is available publicly (on a facebook page ... the link says "View all # shares") but I can't seem to find a way to access this info either via FQL or the graph API. I know I can get a list of likes for a given post: https://graph.facebook.com/87236249496_134765166623967/likes The goal is to get a list of people who've shared -- but there doesn't seem to be the same sort of thing for shares. Am I missing something? Go to... http://www.facebook.com/ajax/shares/view/?target_fbid

How to get friends likes via Facebook API

做~自己de王妃 提交于 2019-11-27 10:37:44
问题 Is this possible to get all my friends likes?? Now, I'm getting this by 2 steps: Getting all my friends list By iterating those list I'm getting all individuals Likes, but it seems very big process, anybody have idea to improve the performance for this task? 回答1: At last I found it after 2 weeks looking at Facebook API documentation FB.api("/likes?ids=533856945,841978743") FB.api("me/friends",{ fields:'id', limit:10 },function(res){ var l='' $.each(res.data,function(idx,val){ l=l+val.id+(idx

How to list all comments in my domain

China☆狼群 提交于 2019-11-27 08:57:30
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. gardenofwine It is possible, in two different ways, as long as you have a fixed set of sub-pages you want to fetch comments from. If you have a large amount of sub-pages, or a variable amount, then you don't have a good

getting latest photos from friends not working

人盡茶涼 提交于 2019-11-27 07:32:28
问题 I tried getting the latest photos fo my friends using a method described here: FQL - Can i get photos of my friends posted this week At first it seemed to be working fine but then I noticed that some of the photos of my friends weren't being fetched even though they had a higher timestamp (the photos were being sorted by created field from photo FQL table)... After a bit of debugging I noticed that the problem is in SELECT aid FROM album WHERE owner IN (SELECT uid2 FROM friend WHERE uid1=me()

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

本秂侑毒 提交于 2019-11-27 06:28:15
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 /home/rahul/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/net/protocol.rb:135:in `sysread' from /home/rahul/