facebook-fql

Next birthdays with fql - fbook

天大地大妈咪最大 提交于 2019-12-11 18:53:06
问题 Using Facebook graph API I have the following which shows this months birthdays of a users friends SELECT uid, name,pic_square, birthday_date FROM user WHERE (substr(birthday_date, 0, 2) = "04") AND uid IN (SELECT uid2 FROM friend WHERE uid1 = me()) order by name What I actually want to show is the next 10 birthdays, so it crosses months probably as month is close to end, but, facebook does like the NOW in queries so I'm a little lost how I would achieve this? 回答1: I figured it out - here's

FQL Query from PHP using cURL returning “Method Not Implemented”

随声附和 提交于 2019-12-11 17:51:39
问题 I am using Facebook's Facebook Query Language (FQL) to get information on a user once I already know his user id. When I enter the following URL into Firefox, it returns the correct XML for the request: http://api.facebook.com/method/fql.query?query=SELECT name FROM user WHERE uid= * * ' Namely it returns the user's name. Note: please don't suggest using Graph API as I will in fact be using FQL for things not implemented in Graph yet like networks, this is just a simple example. BUT, when I

using FB.data.query not getting any response back

最后都变了- 提交于 2019-12-11 17:09:16
问题 I am trying to get the user gender and birth date through the following: FB.api('/me', function(response) { var query = FB.Data.query('select birthday, gender from user where owner={0}', response.id); query.wait(function(rows) { console.log(rows[0].birthday); console.log(rows[0].gender); alert(rows[0].birthday); alert(rows[0].gender); }); }); However, I see nothing on the console and there is no alert. Why is this? 回答1: If you want the birthday and gender of an authenticated user (/me) you

Differentiate between mentioned post and post on wall

房东的猫 提交于 2019-12-11 16:52:52
问题 When you query the stream table for a fan page wall contents, you get back contents posted on the fanpage wall mentioning the page and also posts from a fan on their own wall which mention the page. Is there a way to distinguish between these two types in the stream response? For example, here is a fan page http://www.facebook.com/signalhq which pulls a post from a user who has tagged the page in his own post http://www.facebook.com/jeff.judge/posts/10150356144351153 Is there a way to

Some user's album pictures return Unsupported get request, other work fine

十年热恋 提交于 2019-12-11 12:26:50
问题 I'm finishing a flash application. You can see the app here: https://apps.facebook.com/wacky-winter-woolies/ The app sends an FQL query to get the user's albums, generates thumbnails based on cover_object_id. This part works fine. After clicking on an album the app loads photo thumbnails in the same fashion. We've just discovered that although it usually works, for some people and some photos instead of a thumbnail facebook returns the following error: {"error": {"message": "Unsupported get

FQL returns only one photo

一世执手 提交于 2019-12-11 12:14:10
问题 I use this query: SELECT pid FROM photo WHERE owner=$friend_id; It works fine, but for some users(that has more than 1 photo) this query returns only 1 record. Then i tried this query: SELECT pid FROM photo WHERE owner=$friend_id LIMIT 10; But returned result is the same - only 1 record. Permissions : user_activities, user_photos, friends_activities, friends_photos, publish_stream What i have to do to get correct result for anyone user?? 回答1: This depends on the friend's privacy settings for

Using FQL or Graph API to retrieve comments from legacy fb:comments widgets

家住魔仙堡 提交于 2019-12-11 11:42:26
问题 I'm working with a client who has been using the FBML fb:comments widget with the xid parameter to host comments on their blog for quite a while. At some point, they added the migrated=1 parameter. I am trying to retrieve these comments threads by either the Graph API or FQL, without success. I was able to set up a new page with a modern JS comments widget and retrieve those comments via either method, but I am unclear on how legacy comments are different. http://graph.facebook.com/comments/

email_hashes and deprecated connect.registerUsers

白昼怎懂夜的黑 提交于 2019-12-11 11:33:17
问题 It is very important that Facebook Connect and Facebook app users aren't duplicated in our website. So if they already have an account on our website, when they connect through FB Connect or our Facebook app, we want to link rather than create another account. We typically do so by matching email addresses. So I was excited to see an FQL field for email_hashes in the user object. However, that doesn't return anything. I think I need to use the connect.registerUsers REST api function to first

FQL get liked artists

时光总嘲笑我的痴心妄想 提交于 2019-12-11 11:23:46
问题 Is it possible, using FQL, to get the liked artists(music) of a user? I check the permissions and I couldn't find anything related to it and I am not a facebook user so I am not sure if it's even possible. 回答1: The Like table doesn't give back the interests , but: An FQL table that returns the IDs of users who like a given object (video, note, link, photo, or album). That's not what we need. First way - Rapid description In the User table, you'll find a music field which sends back one line

What field type to store the facebook stream tags?

旧巷老猫 提交于 2019-12-11 10:47:21
问题 I have created a simple facebook app and I want to store the facebook stream tags in my mysql database with stream infomation. What field type do I have to use to store the facebook stream tags? Stream Table: https://developers.facebook.com/docs/reference/fql/stream description_tags (content match with description field) message_tags (content match with message field) with_tags tagged_ids attachment sample description with description_tags: "description": "Sanan Umer was tagged in Ar Arslan's