facebook-fql

How to get large photo URL in one API call?

戏子无情 提交于 2019-12-03 05:28:27
问题 I want to display large photos in my Facebook app's feed view immediately. Is it possible to get the large photo src URL from a stream/feed using one API call? The photo id is returned in the stream/feed and one can of course then supply this photo id in an additional FQL or graph API call to retrieve all the information about that photo. However, is there a way using multi-query or batch calls to get a larger photo src url using one API roundtrip? 回答1: I haven't tried this with stream/feed

Graph API - Get events by owner/creator

北慕城南 提交于 2019-12-03 05:09:57
问题 Is there a way with the Facebook Graph API to get a list of all events created by a single profile? Our client creates a bunch of events and we want to pull a list of them all. I said that they would just have to make sure they set themselves to be attending the event, because then I can easily pull the list of events that profileId is attending, but I'm curious if there's another way. Maybe an FQL query? They look to require a query on the primary key though. And what would that FQL query

What is the difference between a Facebook Page “Like” and an external URL “Like”? And will the “user_likes” permission scope give access to both?

心已入冬 提交于 2019-12-03 04:33:10
问题 I'd like to pull a list of all Facebook "Likes" for a user, whether they are Facebook pages or external URLs. Example: If you "Like" the Facebook Platform, I know I can see it via the /me/likes API call. However, if you like an external URL, I'm not sure how to pull that. Are both supposed to be pulled via the /me/likes call? Or is there another call to handle external likes ? Further, what about newsfeed / stream likes? For example, if I "Like" a photo, video, status or link that I see in my

GET Facebook Page Fans

橙三吉。 提交于 2019-12-03 04:02:24
I'm trying to get a list of all my Facebook Page Fans. All I can get from FQL is the total amount of fans for my facebook page. I can't know WHO my fans are? I have tried this: https://graph.facebook.com/somepage Anyone with an idea of how to know WHO my fans are? I.e. list the User IDs of all my fans for a specific page? I also know that I can get more information about my fanpage using FQL and "insights", from there I can get "page_active_users" and so forth, but not a list of all my fans? I know that Facebook doesn't support this (in public), but any ideas on how to get around it? https:/

Facebook FQL user table `sex` field : how to return male/female even the user is using different locale?

故事扮演 提交于 2019-12-03 03:52:13
Situation: my facebook application ( http://apps.facebook.com/mymagicmirror/ ) needed to detect user's gender, and then query opposite sex or male or female FQL: SELECT uid, name, pic, sex FROM user WHERE uid IN (SELECT uid2 FROM friend WHERE uid1='.$user_id.') and sex='male' Problem: When the facebook user is using other locale, then the 'sex' field doesn't match 'male' and 'female' anymore. Instead, say in Chinese, the sex will become 男性 / 女性, and the FQL for where sex='male' will return zero results. Any solution to query all male / female friends even if the facebook user is having locale

Facebook invites - who's invited whom

夙愿已清 提交于 2019-12-03 03:38:24
I have an event on Facebook, generally it's shared to around 400 people and then people share further. How can I track which user shares the most? I have seen answers for apps but I can't see the URL modifier which allows me to see who's invited whom to the event. On the main Facebook page, if you hover over someones name it tells you who invited them so Facebook must keep a record of this. What about using FQL? This query will get you the list of inviters for each invited user: SELECT inviter, uid FROM event_member WHERE eid = <event_id> and inviter You can use this query as basis. Order by

Query optimization and API throttling

半腔热情 提交于 2019-12-03 03:36:57
We are tracking Facebook Page and Post metrics for a number of clients, and we have some questions regarding high CPU intensity and too many calls for Post/comments - according to what is being reported by the developer insights console (Insights -> Developer -> Activity & Errors). The documentation is somewhat unclear on the limits and restrictions for the Graph API, and we'd simply like to make sure we have the correct understanding of what resources we have available. We are working on optimizing our software and queries to decrease the error rate and number of requests. Related to this

In Facebook graph API how to find which all of your friends like a particular book or movie

寵の児 提交于 2019-12-03 02:29:04
问题 I'm trying to figure out how to find how many of my friends like a particular entity. For example, for a given book or movie, how can I look up how many of my friends have already liked the same book or movie. I believe that information does appear when we display the fb:like button social plugin but I want to get that count so I can programatically display the most popular books among my friends etc is descending order. My backend is php but I'm also using Javascript SDK. Thanks for your

FQL facebook query language: how can i query the list of friends of a specific user that has my application installed?

为君一笑 提交于 2019-12-03 00:39:04
When a user logs in to my facebook application, i want to show him a list of all of his friends that has my application installed. can I use FQL to query who's of his friends have my application installed? and if so how ? thanks! Actually, you can do pull list of friends who installed an app through FQL. SELECT uid, name, pic_square FROM user WHERE is_app_user AND uid IN (SELECT uid2 FROM friend WHERE uid1 = me()) You can do it like this also, if is_app_user=1 then its app user. NSString *query = @"SELECT uid, name, pic_square,is_app_user FROM user WHERE uid IN " @"(SELECT uid2 FROM friend

How do i use FQL with php api? and access token

时间秒杀一切 提交于 2019-12-02 23:28:14
问题 Grr... I cant seem to get fql working. One thing, I think the docs are old because i dont think api() likes just an array. Anyway: $user_id = $facebook->getUser();//works $access_token = $facebook->getAccessToken();//works $fql = 'SELECT name from user where uid = ' . $user_id; $ret_obj = $facebook->api(array( 'method' => 'fql.query', 'access_token' => $access_token, 'query' => $fql, )); print_r($ret_obj);// dont work. actually I get exceptions I've tried all kinds of combinations of params