Retrieving and editting location information associated with photos - facebook

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.

Related

Is facebook profile "view as" feature exists also in the graph api?

Facebook has this option in their gui of viewing your own profile as is seen by someone else.
My question is, is there any similar thing in the graph API?
i.e. - Can I, given an user's access token, tell what other groups of people (say his friends) can see about him? (or if a specific detail in his profile is viewable by this group).
I searched in the documentation but didnt find anything, and also, the privacy field is limited to posts, photos and videos, and does not contain other information - So I'm looking for ways to work this around and to be able to tell what detail is accessable to which person.
Thanks.

Facebook friend location visited

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

Providing users with a way to detag their Facebook photos

I run a social membership club and my website users can log into my site with each having their own profile page.
On each of my user's profile pages, I want to display a list of photos which have been tagged with that user on Facebook. I know this part is possible.
The bit I am struggling with is giving each of my users the ability to 'untag' themselves in each photo of them that is displayed in the list. The 'untagging' should happen directly from my site. Is this possible and how could I go about doing this?
Hope someone can help/has ideas?
Unfortunately, there's no facbeook API that allows removal of photo tags at this time of writing.
Its not documented and I haven't tested this but I'd chance issuing a DELTE request to
/PHOTO_ID/tags/USER_ID
Worth a shot through the graph explorer anyway.

Facebook: Gender-specific dummy profile pictures via graph API

I want to retrieve gender-specific dummy profile pictures via the graph API if possible. By trial and error, I found a URL that retrieves the genderless picture: https://graph.facebook.com/picture?type=square. So I'm hoping male and female might be available too.
How about creating two test users under your app, one of each sex.
Then point to their generic pictures
http://graph.facebook.com/TEST_USER_ID/picture?type=square,
That way if at any point Facebook changes their pictures, you automatically get those changes. :)

Facebook: where is location of photo in graph

Since we can now add location to individual photo in Facebook, does anyone know how to access that piece of information on the graph?
For example, at this link: https://developers.facebook.com/docs/reference/api/
if I look at my News Feed graph, I see the recent photos I've uploaded with location.
But if I look at Photo Tags or the Photo API,
nothing is said about the location.
1.) Can someone explain to me why is that?
2.) How do I get all my geo-referenced photos then?
Correct, Facebook is either hiding that information from API users, or has not gotten around to exposing it in the public version of their API.
We must wait for Facebook to expose this information to 3rd party developers.