Get the date when two users became friends in php - facebook

It's possible to get the date when two users first interacted on Facebook? For example: in a comment, photo tags, wall post, etc. I need this for a FB app since isn't possible to get the date when two users became friends.
Any idea of I can get this done?
I'm thinking in merging a lot of fql queries but don't figured how to do this yet. If I want this for all my friends, isn't gonna be too slow?

It is possible now to extract dates from which you became friends with another user on Facebook. Try it via the API Explorer Tool: https://developers.facebook.com/tools/explorer/?method=GET&path=UID%2Fposts%3Flimit%3D25%26until%3D1342599743

No, unfortunately it is not possible with the API for existing friendships.
But you should be able to use the Real-time updates (https://developers.facebook.com/docs/api/realtime) to be notified when they become friends with someone. Currently the documentation say they support the friends user connection.

Related

Finding the list of all users who attended a particular college using fql

I want to find the list of all facebook users who attended a particular college using fql.
Is that possible?. If yes then, how do I write that query?.
It appears that this is not possible, looking both at FQL and the Graph API documentation. I don't even believe there's an easy way to get a list of fans of the page. The most obvious reason for them preventing this is to prevent marketers from getting lists full of personal information to use for sending promotions or offers (spam).

How to get the time a friend was made?

I am in the process of creating an app, and one of the pieces of data that I need is the time when a user made a certain friend. So for example do an FQL query where I return the Uid of the friend and the timestamp (date, time) of when that friend was added. I preferably want to do this for all friends of a user.
I have looked through the FQL documentation but wasn't able to find anything about time (other than friend_request but that is only for pending friend requests) and I can't seem to find anything in the Open Graph API either. Any help pointing me in the right direction would be really appreciated.
I have gone through many facebook forums, facbook bug reporter, facebook blog and facebook developers docs. And came to conclusion.
Currently Facebook doesn't provide either time a friend request made or the time a friend was made(friend request is accepted). It comes under facebook privacy policy.

Get id's of people that are using your facebook app at this moment

How can I get a list of all the people that are using my Facebook app at this moment?
Is that even possible?
I need it in order to compare with user's friends, so the users would know if one of their friends playing the game right now...
You would need to store and surface this information in your own system. There is no Facebook API or method that returns this information.

Facebook Graph API: Get date of joinin

Follow up to this question for Facebook Friends.getAppUsers using Graph API that pulls friends using app by
https://graph.facebook.com/me/friends?fields=installed
is it possible to get date of joining also with the id’s?
No, Currently it is not possible to get date of joining of user to app.
But you can do one thing whenever any fb user registers/ connects with facebook application, store current date/time with his facebook id in your system. And when you want display date of joining then map friends id with your database table.
Nope, you can't do this :( Even trying to get all their news feed and choosing the first or most backdated one won't work anymore. A very funny and probably irrelevant attempt could be by searching the user's inbox for a "welcome to facebook" message.
Also, if you could tell us why you need this information, you might be able to get suitable alternatives.

Using the Facebook GRAPH API, can i find out how long two users have been friends?

I want to know the date that two people became friends. assuming i can get any kind of permissions from the user, is there a way to find this out. I want to be able to calculate how long people have been friends. perhaps friends since a certain time. etc. I cant figure out if this is possible.
no theres no such information in the documented tables of fql and graph api.
you would have to observer the friendslist and mark the time of when a new friend shows up in your own application