facebook-fql

FQL query through category_list

只愿长相守 提交于 2019-12-04 21:43:50
I've built the following FQL query but I'm facing problems to add a filter. SELECT about, attire, categories, checkins, company_overview, culinary_team, description, fan_count, food_styles, founded, general_info, general_manager, hours, keywords, location, mission, name, page_id, page_url, parent_page, parking, payment_options, phone, price_range, products, public_transit, restaurant_services, restaurant_specialties, talking_about_count, TYPE, username, website, were_here_count, pic FROM page WHERE page_id IN (SELECT page_id, latitude, longitude FROM place WHERE distance(latitude, longitude, '

Please explain FQL profile table pic_crop

ぃ、小莉子 提交于 2019-12-04 21:27:21
What do the coordinates returned by querying pic_crop mean when related to a profile picture. I have tried working this one out by cannot figure it! Please help! The values for left, top, right and bottom are a decimal like e.g. left 0.20115. What does 0.20115 mean? If you look at the source code for a facebook profile you will see that facebook is using a percentage to offset the profile photo. How does 0.20115 translate to facebook source of style="left:-23.13%;" Looking at a few examples of pic_crop from my friends' profiles, it seems like the left, right, top, bottom figures are

FQL using facebook android SDK

[亡魂溺海] 提交于 2019-12-04 19:13:10
I'm trying to create an android application using the facebook android SDK ( http://github.com/facebook/facebook-android-sdk ). I'm trying to figure out if I will be able to use FQL using this SDK. If anyone has any experiences in this regard, please let me know. FQL can apparently be used using https://api.facebook.com/method/fql.query?query=QUERY , the facebook android SDK however doesn't seem to support this. Thanks; This is probably a better way than mentioned. Using the current version of the API you don't need to manually add the access token or use Util.openURL. Bundle params = new

<fb:comments-count> not working on my WordPress powered blog

戏子无情 提交于 2019-12-04 18:34:22
I am using the Facebook comments plugin on WordPress and the comments box is working fine but I want to access the number of counts on the index page and on single pages. On the pages, the Facebook Javascript is loaded on the pages. Here's the code I used: <fb:comments-count href=<?php echo get_permalink() ?>/></fb:comments-count> comments But it doesn't count the FB comments. Is there a simple code that let me retrieve the number of comment counts? Thanks, ifennec Include this function somewhere in your template file : function fb_comment_count() { global $post; $url = get_permalink($post->ID

How to use devices field of the user table in FQL query?

冷暖自知 提交于 2019-12-04 18:30:52
I would like the result of a FQL query to only return friends of a user which have a iOS device in their devices list. The following query: SELECT uid, first_name, devices FROM user WHERE uid IN (SELECT uid2 FROM friend WHERE uid1 = me()) ORDER BY profile_update_time DESC LIMIT 0, 100 returns a list like this: { "data": [ { "uid": 12345678, "first_name": "John", "devices": [ { "os": "iOS", "hardware": "iPhone" } ] }, { "uid": 1234345678, "first_name": "Pete", } } Now I would like to only retrieve users who have at least one device where the os is "iOS". I have tried including devices.os = "iOS

FQL - Can i get photos of my friends posted this week

半城伤御伤魂 提交于 2019-12-04 16:03:35
问题 I try to get my friend's photos. posted last week till now how i can get this using FQL ? 回答1: You would need to prompt for the friends_photos extended permission. The FQL query would be something like: SELECT pid, caption, aid, owner, link, src_big, src_small, created, modified FROM photo WHERE aid IN (SELECT aid FROM album WHERE owner IN (SELECT uid2 FROM friend WHERE uid1=me()) ) AND created > One_week_ago_in_unix_time ORDER BY created DESC Here is a full example: <!DOCTYPE html> <html>

Facebook API: How to get count of group members

放肆的年华 提交于 2019-12-04 15:56:46
Im working on fb app using PHP client and FQL.Looks like that fb api doesnt support this. You can get max random 500 members with FQL. But when group has more than 500 members there is no way how to get total count of members. I need only number dont care about member details. Anyone can help me please? You can use the summary parameter which will return a total_count value. /v2.11/{GROUP_ID}?fields=members.limit(0).summary(true) It also works when searching for groups: /v2.11/search?q=stackoverflow&type=group&fields=id,name,members.limit(0).summary(true) { "data": [ { "id": "667082816766625",

Facebook #Hashtag: How to retrive feed by Hastags?

若如初见. 提交于 2019-12-04 14:24:18
问题 As we can get feeds of specific user or fan page, I wanted to know that how can I get feeds from specific Hashtag like in twitter by fql or Graph API ? I am using Facebook SDK 3.5.2 Thanks. 回答1: As far as I can tell, searching specific posts by hashtags is currently unavailable. You can still find posts regarding a #hashtag querying a user's stream for a specific message: SELECT message FROM stream WHERE (source_id IN (SELECT uid2 FROM friend WHERE uid1 = me()) OR source_id=me() ) AND strpos

how to write an fql query to list friends in a particular location

随声附和 提交于 2019-12-04 12:34:14
问题 I can't find anywhere an fql query to list my facebook friends according to a location I that I specify.I am trying to implement this fql query in android.Someone please help me. 回答1: The FQL you are looking for will be select name, current_location from user where uid in (select uid2 from friend where uid1 = me()) and current_location.country = "India" and current_location.state ="Delhi" The above FQL filters out the friends of the user and returns list of user's friends with current

Facebook Like button, can it be made read only?

。_饼干妹妹 提交于 2019-12-04 08:15:55
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/reference/fql/link_stat/ Is there an easier way because this seems like a fair amount of work to