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.
Related
I am building a basic app for a research project. Basically, we want to see if brain surgery alters behavior based on user's facebook posts and interactions. In other words, we are trying to read all wall posts from specific users.
My initial ideas was this: As long as the researcher is friend's with the subject, I can call https://graph.facebook.com/UID/posts and https://graph.facebook.com/UID/feed. A combination of those two should give me all relevant posts.
This works perfectly for some users, but for others, I'm only getting some random posts while missing many others. For some users, I'm not getting anything at all. I cannot find any pattern as to when posts are shown and when not. Does anyone have an idea what the problem could be and how to solve it?
I'm using the read_stream permission.
The most likely answer is that the user's friend disabled API platform access in their settings or locked down the privacy in some of their posts.
I have a quick question for the Facebook Guru's here.
A couple of years back I have written a facebook app that retrieves the amount of likes assigned to a photo. At the time, I was surprised to find out that neither FQL nor the Graph API returned accurate like counts at the time.
Now, I have been asked to develop a photo contest where people can vote on a few photo's to pick a winner. This contest is supposed to run on a Facebook page, as a facebook app and I'm trying to evaluate if I can use facebook's likes as voting mechanism.
I figure since Facebook's API changes rather often, maybe they have resolved the accuracy problems by now. I tried digging around in facebook's developer documentation, but I could not find if any of the current Facebook API's return accurate like counts on user submitted photo's.
Does anyone know if FQL or Graph API are currently able to provide accurate like counts for user-submitted photos?
I can't attest to accuracy but a Photo's 'likes' connection can be queried generating alist of likes as per the documentation. See example call below.
https://graph.facebook.com/10151509108346729/likes?access_token={any_valid_access_token}
I am developing an app that processes <used_id>/posts connection to read the posts a user have made and count the likes and comments that have been received.
Yesterday I noticed that Instagram photo posts do not appear in posts connection. After a little search I found this Posts from Instagram not showing up on Facebook Open Graph API after which I was able to see Instagram photos in Feed connection if permission user_actions:instapp was added (or friends_actions:instapp for friend posts).
But two problems remain:
1) The posts still do not appear in Posts connection, which is more convenient for usage in my case because I am not interested in Posts of other users which may appear in Feed.
2) Even if I use Feed connection the posts do not have Likes field filled, does not matter whether I specify it directly or not. I assume that the same goes with Comments. Therefore in my case Feed is also useless because I need Likes data.
The only solution that works is by using <user_id>/instapp:take - there I get all photos also with Likes. So I might use it, but the trouble is - then I need to do double API call, because Instagram posts are not the only in which I am interested in (I still need to call <user_id>/posts).
I have submitted this bug report: http://developers.facebook.com/bugs/131821543664928
Perhaps someone has an idea for a better solution than calling instapp:take?
Thanks!
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.
Howdy- I have been tooling around with the Facebook Graph API and successfully retrieved back a list of my likes, and a list of my friends (once I authenticated using OAuth). But what I really want to achieve is pulling back my friend's likes. When I try and do that, obviously using the same URL that I use to pull back my own likes but subbing the friend's user id for "me", I don't get anything back, unless they have installed the app as well. Then I get them no problem. To be clear, I can only see the likes of friends who have installed my application. So clearly I am running into a security/rights issue of some sort.
I could see where this would be the case; you simply aren't allowed to see your friend's likes unless they have installed the same app. Fair enough, but then how is blekko.com doing it? I even tried using FQL without much luck. I suspect I am missing something totally obvious. Anyone had any luck with this? Maybe with the Javascript API or one of the other access methods? Thanks in advance for any guidance.
Your application needs the permission "friends_likes".
Check http://developers.facebook.com/docs/authentication/permissions for more info on the different permissions.
This SO answer might help if you're having trouble with the authentication / permission request process.