facebook-fql

Get Facebook “Like” count for every page on my domain

余生颓废 提交于 2019-11-27 05:06:25
问题 I have integrated the Facebook "Like" button into a lot of pages in my site. I want to display the most "Liked" pages on my site in a list, but I can't figure out how to get that data from Facebook in one request. So far, I have been able to get the "Like" count for individual pages using the following FQL query: SELECT share_count, like_count, comment_count, total_count FROM link_stat WHERE url="http://www.mysite.com/some-page" However, getting the count for each page on my site one at a

How to use Facebook graph API to retrieve fan photos uploaded to wall of fan page?

喜夏-厌秋 提交于 2019-11-27 04:35:02
问题 I am creating an external photo gallery using PHP and the Facebook graph API. It pulls thumbnails as well as the large image from albums on our Facebook Fan Page. Everything works perfect, except I'm only able to retrieve photos that an ADMIN posts to our page. (graph.facebook.com/myalbumid/photos) Is there a way to use graph api to load publicy uploaded photos from fans? I want to retrieve the pictures from the "Photos from" album, but trying to get the ID for the graph query is not like

FQl and Graph API: is tehre a way to get “hidden posts” in a page's wall (feed/stream)

a 夏天 提交于 2019-11-27 03:38:30
问题 In FQL and Graph APi, i am no longer able to get all posts in a page's feed (stream FQL table), i don't see hidden posts, even if i put "... WHERE (is_hidden = 0 OR is_hidden = 1)" 回答1: in https://developers.facebook.com/docs/reference/fql/stream/ there is no documentation on is_hidden flag on the columns list. But there is only one example (the first one on that page) that uses this flag. In https://developers.facebook.com/docs/reference/fql/stream_filter/ there is a flag called is_visible I

Facebook FQL stream limit?

冷暖自知 提交于 2019-11-27 03:26:00
I want to get the full history of my wall. But I seem to hit a limit somewhere back in June. I do multiple calls like this: SELECT created_time,message FROM stream WHERE source_id=MY_USER_ID LIMIT 50 SELECT created_time,message FROM stream WHERE source_id=MY_USER_ID LIMIT 51,100 and so on... But I always end up on the same last (first) post on my wall. Through facebook.com I can go back much longer so Facebook obviously have the data. Why am I not getting older posts? Is there another way to scrape my history? From http://developers.facebook.com/docs/reference/fql/stream : The stream table is

Facebook connect Batch requests and FQL error problem

雨燕双飞 提交于 2019-11-27 02:27:22
问题 I'm developing an iPhone iOS app with FB connect. I'm trying to get a lot of data for each of my friends, and multiple requests are needed. I wonder if there's a way using batch requests in the iOS SDK? and the other problem with FQL multi-queries. The following query is working only for a limit of one friend! weird. SELECT eid FROM event_member WHERE uid IN (SELECT uid2 FROM friend WHERE uid1 = me() LIMIT 2) it returns the error The operation couldn’t be completed. (facebookErrDomain error 1

How to send a FQL query with the new Android SDK

那年仲夏 提交于 2019-11-27 02:20:45
问题 I've been searching over the developers.facebook website looking for a way to use the new SDK and send FQL queries but it seems like everything has changed and the documentation is talking about all sorts of other ways to request me or friends but not specific information such as are those friends using my app or not? so I wrote down a nice FQL query select uid, name, pic_square, is_app_user from user where uid in (select uid2 from friend where uid1 = me()) and now, all I have to do is run it

Handling big user IDs returned by FQL in PHP

喜夏-厌秋 提交于 2019-11-27 01:58:06
I'm using FQL to retrieve a list of users from Facebook. For consistency I get the result as JSON. This causes a problem - since the returned JSON encodes the user IDs as numbers, json_decode() converts these numbers to floating point values, because some are too big to fit in an int; of course, I need these IDs as strings. Since json_decode() does its own thing without accepting any behavior flags, I'm at a loss. Any suggestions on how to resolve this? json_decode() can convert large integers to strings, if you specify a flag in the function call: $array = json_decode($json, true, 512, JSON

FQL and Graph API in iOS

纵然是瞬间 提交于 2019-11-27 01:46:35
问题 have anyone used FQL of graph API in iOS? I am trying to get users posts from different groups I have read FQL documentation but I need to see an example to help me proceed? please help 回答1: Here is an example: NSMutableDictionary * params = [NSMutableDictionary dictionaryWithObjectsAndKeys: @"SELECT uid,name FROM user WHERE uid=4", @"query", nil]; [facebook requestWithMethodName: @"fql.query" andParams: params andHttpMethod: @"POST" andDelegate: self]; 回答2: In the last iOS SDK, the method

How to list facebook users who like a page or interest [duplicate]

杀马特。学长 韩版系。学妹 提交于 2019-11-27 01:20:55
Possible Duplicate: Retrieve Facebook Fan Names I wanna get a list of facebook users who like a page or interest. FQL like ' SELECT user_id FROM like WHERE object_id=113970468613229 ' does not work. Is there a way to do this? I am Partner Engineer at Facebook so I thought I'd chime in here. The Facebook APIs will not give you the user ID of users who have liked a page or interest, this is to guard the privacy of those users. There is no way to get a list of people that like your page via their API, which is why this question never got answered. You can get charts and aggregate information

Get all of a user's likes (all of them) with FQL

杀马特。学长 韩版系。学妹 提交于 2019-11-27 01:10:56
问题 I'm trying to get ALL of a user's likes with FQL. Following is my research including what I've tried and the problems with each attempt. 1) The most simple method would be to query the table on the uid. So this returns 57 (for me) likes on other's stream. SELECT object_id, post_id, user_id FROM like WHERE user_id = me() XML looks like this (note unexplained absence of post_id) <like> <object_id>10150695050005313</object_id> <post_id></post_id> <user_id>xxxxxxxxxxx</user_id> </like> The above