How is it possible to get the locations of a user's friends nearby(within X km) with v2 or real-time user push of FourSquare API please?
And can those friends be the same friends as the ones from facebook account automatically added (for those fb friends of the user that also login with their fb account to 4sqr too), or, when a user joins 4sqr via fb can they register to an app using 4sqr API and then have that app specify somehow what his friends could be and make them all part of the same group whose last checkins could be searched?
In other words, I would like to list all nearby 4sqr friends that are in the same group (list?) along with a last time stamp of their checkins. Can this be done and how please? Which APIs should I use along with OAuth or something?
Based on the API docs (https://developer.foursquare.com/docs/), it doesn't seem that you'll be able to get the information you are looking for.
It looks like you'll be able to get real time pings when a user that is using your app checks in somewhere. But you can't get just any foursquare user's real time checkin events.
Unfortunately
I guess this is possible, at least until the Graph API v1.0 is still working (until April 30th, 2015), because then all the friends_* permissions will be removed. Have a look at the answer at
Facebook Open Graph API - action-type & object-type of another application (foursquare)
You need to request the user_actions:playfoursquare and friends_actions:playfoursquare permissions first (Reference).
Then, you should be able to request the checkins via
/me/playfoursquare:checkin_to
or
/me/friends/playfoursquare:checkin_to
Related
I would like to get all the posts and updates that are normally displayed in FB official application for MY account (this includes updates from my friends and liked pages).
I wasn't able to find any details how to get that, the only thing I've managed to get is my own posts.
Anyone got any experience with that using current Graph API verion (3.3)?
All the alternate FB clients (ex. Friendly) must be doing this somehow.
There is no way to get ANY data of users who did not authorized your App. Which means, there is no way to get posts of friends. You can only get your own friends, with the user_posts permission and the /me/posts endpoint. If some Apps access friend data without their authorization, they are most likely doing something that is not allowed.
Here is what I found in their API docs:
There are two scopes:
The user feed requires the user's permission
The public feed has fewer capabilities but doesn't require perms
I searched the internet the whole day for this, and came to the conclusion that there is no way to get a user's full friend list since API 2.0 (correct me if I am wrong).
What I want to do is, given the app user and another facebook user, generate a report about their "second level" mutual friends. That is - (friends of mine) who are friends with (a friend of his). Illustration:
Is this kind of thing possible after facebook's restriction since API 2.0 in any platform (Different SDKs, Facebook's Graph API, etc)?
Many Thanks.
This would be the API: https://developers.facebook.com/docs/graph-api/reference/user-context/all_mutual_friends
There is no way to get friends (or users in general) who did not authorize your App. Every list you get will only include users who authorized your App.
I'm working on a web application in which I show the last time the current user (who authenticates with FB and supplies all relevant permissions) user interacted with another user. Example, my ID is 1526632 and would like to find the date of the last message sent between me and another facebook user (either by username, or id #).
I've been reading through their API and it seems this permission existed in version 2.4 of the Chat API but was since deprecated. Is there a new way for developers to get this information somehow?
My guess is this is not possible via the graph API. Assuming this is true, does facebook have unpublished IMAP access to a user's inbox? Or any other creative ways I can do this?
The Chat API is gone, as you have found out already. There is no replacement, what you want to achieve is not possible in any way. The user inbox is off limits now, i´m afraid.
Past & Now
A few years back, Facebook supports FQL in v2.0 to retrieve online friends of an user ( Facebook : Get List of Online Friends Using Graph api )
However this FQL is removed from v2.3, and what's worse is Facebook completely removed Chat API (XMPP) from April 2015.
Goal
Is it still possible to generate a list of Facebook friends and their last active time / currently online using Graph API / or any other method? (basically the same as chat window on Facebook desktop)
This would be useful:
when a user wants to see who's online but don't want to let their friends know they're online atm
or for a simple widget on phone screen, where user can have a quick look at who're online without the need of Facebook login (the widget gets data from 3rd party server which uses API / or some other method to provide that list)
Thanks alot for your input
No, it is not possible - because as you found out already, Facebook removed the required permission/endpoint. The only way would be implement your own routine for this. For example, by storing the timestamp of visiting users. Whenever a friend of that user visits your App too, you can show those to him. Of course it only works for users who authorized your App and youi can only detect if users are online/active in YOUR App, not on Facebook.
I am using spring-security-rest:1.4.0.RC5 api to login with facebook, twitter, linkedin and googleplus in my grails application. I am able to fetch user details like first name, email etc. But I am not getting the contact list of user. How can I get the contact list of the user.
Thanks in advance.
As of version 2 of the graph API you can no longer get the complete list of a user's friends. Instead, you only see the friends who have also authorized your application. This is by design as Facebook does not want developers to be taking list of friends and taking their info.
If you registered for your application key before v2 was released then you can continue to use the old API which allows for this functionality. However, all apps will be automatically upgraded on April 30th, 2015 so you won't be able to use it for long.