facebook-graph-api

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

PHP Session not being stored by Firefox after redirect

痞子三分冷 提交于 2020-01-02 21:19:11
问题 I'm using Facebook's server-side user authentication to attempt to log people in to our site. To prevent CSRF, Facebook recommends creating a random session state variable, pass it to FB, and FB then passes it back to compare the values to ensure no security issues. This seems to work fine in all browsers except Firefox. Firefox is sending the state variable, but it is not storing it upon return to the site. session_start() appears at the top of the document which is not quoted below as I

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 do i get user country Name using facebook api connect?

ⅰ亾dé卋堺 提交于 2020-01-02 16:57:09
问题 I am developing a facebook application. I have to know the country of the logged in user using the graph API. 回答1: You can query the user table through FQL. The column you are looking for is current_location. http://developers.facebook.com/docs/reference/fql/user/ You can use FQL through the graph api: https://api.facebook.com/method/fql.query?query=QUERY 回答2: First of all, during Authentication you might need to request the user_location permission. I don't know if this is required to get

Add friends from facebook with Rails 3 + OmniAuth + FBGraph

感情迁移 提交于 2020-01-02 16:20:12
问题 I'm currently trying to write an add friends step to our registration system, and I've been asked to implement something similar to the way foursquare works. It pulls down your friends from Facebook, checks to see if any of them are already on the foursquare site, and then asks if you want to connect with them. What is the best way to go about implementing this kind of functionality? I have seen examples with the FB JS SDK, however I would prefer a more integrated approach. Thanks Adam 回答1:

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:/

How to write nested Graph API request

南楼画角 提交于 2020-01-02 10:05:11
问题 I am trying to create nested FB Graph API request to get images for public event. The full JSON object is given at this gist: https://gist.github.com/ZeKoU/be92b88440a6ca3d6be3 What I am trying to do is to get only data.0.images object, i.e. I want to get first object from data , then to get images array, and then to pick some fields from there (source for example). However, all my attempts (see picture below) are returning only two fields for each object inside data field. 回答1: Not sure what

Facebook returning empty array from /me/friends

微笑、不失礼 提交于 2020-01-02 09:27:13
问题 So I am use the 2.3 API Version trying to access the /me/friends list that returns all of my friends who are also using the app. Except, it always returns the following: { "data": [ ], "summary": { "total_count": 889 } } I have tried using the Graph Explorer as well as the JS Sdk right within the browser with no luck. I am requesting the user_friends permission and it is actually included by default. And yes, I have many friends who have been using our app. I debugged the token online via