I am migrating the Facebook API that I use, from FQL v.1.0 to Graph API. I discovered that some things have deprecated. My problem is related to getting all the users that are using my application.
In FQL I can do this with:
/fql?q=select+uid+FROM+user+WHERE+is_app_user+AND+udi=
Question 1 : Table user contains all the users friends and non-friends? Or just the friends?
In Graph Api, I have understood that is_app_user is not used anymore, instead there is fields=installed that does the same thing.
I have found two ways of using fields=installed :
me/friends?fields=installed
OR
me/fields=installed
Question 2 : There is a difference between these two syntaxes?
Many thanks for your help.
Passing installed as parameter with /me/friends makes no sense because
/me/friends
returns only friends who are already using the app.
With v2.0, Facebook has made it impossible to fetch users who are not my friends but are using the app. If you still need such users,the best solution would be to store the user-ids of all your app users in a persistent storage. A workaround using FQL should be avoided as its getting deprecated too with v2.1.
Related
I am trying to get all Facebook following users list (which I am following) and follower users list from Facebook using Graph API, I am Googling little bit but did not get anything.
Can any one help me to find the solutions.
This isn't possible with any application v2.0+ and higher. The user_subscriptions permission has been removed.
My application allows a user to manage their friend list. Using v1.0 of the Graph API I am able to retrieve a lot more users than when using v2.2. I am curious to know if there is an alternative solution to getting a list of members to a an authenticated user's friendlist.
How would I GET landmarks, like new job/ married/ moved, etc. from the facebook (or any other 3rd party) API??
I'm trying to make a timeline of 'big' moments using facebook, specifically on iOS
I found an answer here stackoverflow.com/questions/12400522/… that lets you use FQL instead of the graph API to send requests and then returns more exact information.
Facebook's FQL reference is here: https://developers.facebook.com/docs/technical-guides/fql/
I'm trying to use Facebook API to get a list of people who checked into a place.
When typing in the search box in Facebook UI People who have been to THE_PLACE I get a long list containing many people, also people who are not my friends or friends of friends.
However, when I try to get the same information from the Facebook API, I get a list that only contains my friends who checked in. The FQL I used is the following (and also some other variants that didn't do better): SELECT author_uid FROM checkin WHERE target_id = THE_UID_OF_THE_PLACE
Am I doing something wrong or is this simply impossible to get via API the same information I can access through the UI?
For privacy reasons, this is not possible at all. Also, FQL is deprecated. I have answered a similar question here: facebook graph API - get last checked users to place/page
Is there a way to list all friendship requests using the facebook graph API? I didn't find anything in the docs, but with the experience I've undergone concerning the quality of this doc so far, I wouldn't be surprised if there was a way to it.
I think it's not possible using only Graph API. You will need to use any SDK and then make a FQL query.
Here you go:
http://developers.facebook.com/docs/reference/fql/friend_request/