Facebook friend location visited - facebook

I am developing a travel portal and I dont know if this functionality is possible. Basically, my site provides information of exciting destination to visit. I want to integrate a function I saw on TripAdvisor...the ability to know which of your friends on facebook have visited that destination.
If the user is already logged on to facebook, it automatically returns their profile image in a bubble form. If not,it gives them the option to log on to facebook.
I got this idea from TripAdvisor, and wondering if possible.
Thanks for your assistance.
Regards,
Seyi Osinowo

I guess TripAdvisor is using the /{page-id}.context/friends_tagged_at endpoint for that. Therefore, you'd need to know the Facebook placeId for the specific destination. Theoretically, you can use the Place Search in conjunction with lat/lng and radius for that:
GET graph.facebook.com
/search?
q=coffee&
type=place&
center=37.76,-122.427&
distance=1000
See
https://developers.facebook.com/docs/graph-api/reference/v2.4/page.context/friends_tagged_at
https://developers.facebook.com/docs/graph-api/using-graph-api/v2.4#search

Related

How to get link to user's timeline from Facebook Messanger Platform API?

Did I miss sth or it is impossible to get link to user's timeline from Facebook Messenger API?
According to: https://developers.facebook.com/docs/messenger-platform/user-profile User Profile API doesn't return link in fields.
Is there any other option?
You would have to use the User Profile endpoint and use all the information for determining which Facebook user it matches to. If you image match the profile picture and match all the other information, and compare timezone to their location, it is probably possible, but it's probably not easy.
Making a workaround like this might not be a bad idea because Facebook seems to want to keep all the stuff seperate right now, as their user ID's are different for seemingly everything. The User Profile endpoint exists for personalization purposes, but it doesn't identify a user.
The user matching through login might also be useful as a outside of messenger solution, but I'm not sure exactly how that would be done.

How can I get user's best friends throught Facebook Graph API

I am designing an App for iPhone and I want the user to share my App to his or her best friends. Now I can get user's friendlist throught Facebook Graph API. But how could I find user's best friends? I have an idea that I can use the user's wall to find which friend often appears on the wall. However, some pages and famous people like Obama always appears on the wall. Could someone give a feasible solution?
Define “best friends”, please.
If that is supposed to be something based on the user’s personal perspective at the very moment – then probably best to just let them choose their “best friends” the want to a request to themselves via a simple multi-friend selector.
Or are you referring to a user’s list of “close friends”, the default friend list on Facebook that every user can add friends to? That’s available via API, check the /me/friendlists connection. https://developers.facebook.com/docs/reference/api/FriendList/

Retrieving and editting location information associated with photos

I need to be able to retrieve Facebook Places associated with a user's photos, and hopefully also link photos to Places. I'm referring to the way you can use the "Add Location" functionality to choose a Place while looking at a photo. I haven't been able to locate where this link is kept either through fql or open graph calls.
There is no Place information in the Photo object.
An Album can have a 'location', but this is only a string, not a Place, and not specific to a photo.
Places can be associated with Posts or Checkins, but as far as I can tell a Photo isn't necessary associated with either of these.
Hope some one can help!
Brendan
It's not possible with the public Graph API to do what you want. You can contact Facebook to see if the functionality exists on their API they have for white-listed apps.
This is an answer not a comment.
The answer is that it is impossible to do that with the public API. You can check with Facebook to see if it's possible to become a partner or get your app white listed to get that functionality.

Check whether user of non-facebook app likes/shares particular URL on FB

I'd like to know if there is a possibility to check (using Graph API or any other way) whether given user likes / shares a specific link. Probably I'll have this user's facebook ID or facebook login, but my site is non-Facebook application. Actually it's Dot Net Nuke portal (target: .NET with MS SQL Server) with part of it being avaliable as Facebook app, but certainly not greater part of it, so the solution should be out of Facebook Connect, although it's not a showstopper if it's necessary.
We'll be giving points to users who share/like most of links that we serve in our portal and such possibility would be a great help to make a ranking.
Another option we consider is making some kind of "wrapper" or proxy for FB like / share buttons which will at first save some data in our database (probably - this user clicked on like for this link) and then go on with standard FB like / share route. Did anybody of You tried such solution?
If You have any other suggestion on the subject, please, post them, we'll be really thankful.
It is possible to know if a user has LIKED a site or not. You can get all user's likes with Graph API (you need user_likes permission). Take a look at the docs: http://developers.facebook.com/docs/reference/api/user/
I'm not sure if you can know if he has shared your site, but you could try by parsing his wall with the read_stream permission and then look for your site name/URL post by post.
For just general liking of items on your site, you can use a Facebook Social Plugin. However, you won't be able to associate (or really even access) user activity with users on your site without integrating Facebook Connect and creating a Facebook application for your site. At that point you can design with greater control all the possible user activity and interleave with your facebook calls other calls that affect users' accounts on your site.

Get application liker via graph api

How can i get all the facebook user id whose like my application via a graph api.
Please give any suggestion.
Like facebook fan page showing application liker randomly. I also want to access my application liker list and want to save in database.
Please tell me if any possibility? Need your suggestion...
Thanks
Sorry, I don't think that's possible for privacy reasons Facebook doesn't allow it. You need to get people who like you application to install and authenticate it before you can find out more about them. However, I do remember someone managing to scrape the fans of a page before so maybe that's possible for applications as well...