facebook-fql

Get friends emails with facebook api

穿精又带淫゛_ 提交于 2020-01-02 21:47:27
问题 I read lots of question about this issue. There is a way to get my friends emails, with Graph Api, FQL or something? I really need to import my Fb contacts into my App. But it seems there is not possible. Even setting a friend's email as public, I can't get it. 回答1: Friend emails are not available, and probably never will be, via the Facebook Graph API or FQL. If you look at the documentation, it says "N/A" in the friend column for the email row. 来源: https://stackoverflow.com/questions

Sorting facebook album photos using graph Api

时间秒杀一切 提交于 2020-01-02 20:03:38
问题 I am trying to get last 7 updated images from album folder. I used reverse_chronological as well as chronological but its not working. Based on time update i have to sort the images. https://graph.facebook.com/{albumid}/photos?&field=id,created_time.order(reverse_chronological),description&limit=7&access_token={zxczczxczx} 回答1: Looking at the documentation around ordering, this format should work: https://graph.facebook.com/{album-id}/?fields=photos.order(reverse_chronological) Can you try

Sorting facebook album photos using graph Api

﹥>﹥吖頭↗ 提交于 2020-01-02 20:02:40
问题 I am trying to get last 7 updated images from album folder. I used reverse_chronological as well as chronological but its not working. Based on time update i have to sort the images. https://graph.facebook.com/{albumid}/photos?&field=id,created_time.order(reverse_chronological),description&limit=7&access_token={zxczczxczx} 回答1: Looking at the documentation around ordering, this format should work: https://graph.facebook.com/{album-id}/?fields=photos.order(reverse_chronological) Can you try

How can I retrieve the number of fans my Facebook page had on a given day?

a 夏天 提交于 2020-01-02 18:03:26
问题 How can I retrieve the number of fans my Facebook page had on a given day? I am trying to find a way to display a plot of date vs number of fans, but I can't find a way to get the number of fans by date. I have tried this: select active_users from metrics where end_time = 1263812045 and period = 2592000 in the Facebook developers tools page for my Page ( http://developers.facebook.com/tools.php ), but it retrieves an empty set. 回答1: Firstly: you can retrieve statistics such as active users

Facebook API - Get Life Events (graph-api or FQL)

六眼飞鱼酱① 提交于 2020-01-02 11:03:46
问题 After reading extensively FB's documentation for graph-api and FQL I still can't find a way of obtaining my friends' life events (e.g. graduation date, anniversary, new home, etc). The only event explicitly available in their documentation are birthdays (which is quite obvious). I'm almost certain that it is possible to do the above because the IPhone App "Karma" (http://itunes.apple.com/us/app/karma/id457143798?mt=8) provides automatically that information after logging with FB (rulling out

Random Friend using FQL

不羁岁月 提交于 2020-01-02 10:26:25
问题 I am right now using fql which brings all the friend list in array. Then I sort that array to get a random friend. But it seems to take long time since i have to collect all the friends to get single random friend. How do i go this in fql to get random friend? SELECT uid, name, pic, sex FROM user WHERE uid IN (SELECT uid2 FROM friend WHERE uid1=me()) 回答1: SELECT uid, name, pic, sex FROM user WHERE uid IN (SELECT uid2 FROM friend WHERE uid1=me()) order by rand() limit 1 来源: https:/

Friend with the highest number of mutual friends

こ雲淡風輕ζ 提交于 2020-01-02 07:53:13
问题 I want to find my friend whom I share with them the highest number of mutual friends. I tried to do it with FQL and graph API the following way: Get the friends list of the current logged in user. FQL: SELECT uid1 FROM friend WHERE uid2="MY_USER_ID" and uid1 IN (SELECT uid1 FROM friend WHERE uid2=me()) Graph API: $facebook->api('/me/friends?format=json&limit=5000') For each one of the uid's in the list, I can get the list of mutual friends and count it. FQL: SELECT uid1 FROM friend WHERE uid2

Is there a way to get the ID of a message thread in Facebook? [closed]

时间秒杀一切 提交于 2020-01-02 07:40:30
问题 Closed . This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 6 years ago . If I have the URL of a facebook thread from a user's messages, is there a way to get the id of that thread? I get how to construct a url given an id, but not the other way around. The URL can have two formats: https://www.facebook.com/messages/123456789 or https://www.facebook.com/messages/

Facebook emails always return null through FQL and RestFB

不羁的心 提交于 2020-01-02 03:34:07
问题 I'm trying to convert friend pages into fan pages (most businesses have created friend pages by mistake) and am trying to email everyone on a friend list about the move. I've tried FQL "SELECT email FROM user WHERE uid=xxxx" Creating groups (not good for 5000 friend pages) Restfb: Connection myFriends = facebookClient.fetchConnection("me/friends", User.class) etc; The FQL and RestFB methods are both returning nada, group email method is just plain messy. Is this a security feature or can this

What is the best way to get list of photos with me and a friend tagged in them?

旧城冷巷雨未停 提交于 2020-01-01 17:27:09
问题 I'm doing this fql: SELECT object_id, pid, src_big, src_big_height, src_big_width, src, src_height, src_width FROM photo WHERE pid IN (SELECT pid FROM photo_tag WHERE subject= [me_uid]) AND pid IN (SELECT pid FROM photo_tag WHERE subject= [friend_uid] ) limit 0, 20 This works fine until I use 2 users ids who have thousands of photos with hundreds of them tagged with both uids. In this scenario, FB returns a 500 error: "Error loading script", error code 1 I need to incrementally retrieve data