Facebook: where is location of photo in graph - facebook

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.

Related

Facebook Graph API insights

I'm new on working with Facebook and honestly I found it very confusing, terminology and documentation seems to be very ambiguous in many cases. Can somebody please help me out with a plain english explanation on how I can achive the following?
Post and image to Facebook (on the user page) and then check the stats (insights) of that post.
Till now I have managed to:
1) Create an app
2) Post the image on the user page with the desired message
I'm not able to understand how I can retrieve information about the particular image which was uploaded through my app. I want to know how many people have viewed that image, how many likes did it get, how many times it was re-shared.
Is it possible at all?
I'm posting to /photo not too /feed and I will like to keep it this way if it is possible.
Sorry if this was answered already but I spent a few hours trying to find an appropriate answer but wasn't able to get the right documentation.
UPDATE 1
After having a couple of days off from this topic and receiving the first 2 answers, I took another dive into this. Now I have tried the Graph API Explorer as suggested, and using the ID of a POST I can get some details about the POST, but the insights aren't showing anything, just next and previous.
My goal is to be able to gatther some stats about the pictures uploaded through the app. If this is not possible directly what should be the approach I need to take?
I don't believe a personal /photo has /insights attached to it - the Insights Object documentation page suggests that they do not - but you should be able to get likes, shares, and comments via the API.
It would appear FB has launched a redesign/reorganization of its documentation in the last couple of weeks, but the documentation for the /photo graph object is here -- you will need the user's Access Token, and the API endpoints you're looking for each have links to their own documentation pages there, including example code for each type of request.
Edit (summarizing discussion in comments):
There is no method via the Facebook API to gather insights for all photos posted to individual user timelines via an app. The app can gather likes, shares, and comments for each of those objects individually via API requests, and can make API requests for insights for photos posted to its own timeline. Neither of those options solves the intended use case here.
I'd recommend a solution that uses Sharing rather than an app integration, as this allows for better access to insights on the photos being shared. This is also a much simpler integration, and less brittle wrt future Platform changes. The main tradeoff is that the original photos being shared are expected to expire after a couple of months -- if this is unavoidable, I'd suggest implementing a redirect for requests for expired objects on the site.
We are able to get different kind of photos or picture Using Graph API
like as below:
1.Page Photos
Photos for a Facebook Page.A Page Access Token is required for all methods.Find here
2.Page Picture
Picture belonging to a Facebook Page. Find here
3.Photo
Represents an individual photo on Facebook. Find here
4.User Photos
Photos for a person.Find here
I hope it's helps you.

Get user's detailed newsfeed(wall) posts in Facebook

I would like to build a project to know users' behavior when they surf facebook website, especially the advertisements showing in their timeline wall. I have learned the basic idea of facebook graph api, knowing how to access the users' information and their feeds. However, I found that the feeds returned by facebook graph api is not "exactly" what user really see when they open facebook url in their browser. First, in graph api, it doesn't show the advertisements posted by sponsors. Second, the feeds returned by facebook api seem only regarding to my own posts(e.g. the photo tagging me, the posts tagging me). So, I would like to know how to access these information to rebuild a testbed that looks like exactly same as the real facebook website to record people reaction to it and continue my research?
Any idea is welcome ^^
This isn't really possible or rather I don't know any API (Facebook/Twitter/etc) that would do this to their third-party developers. The point of the API is to pull user data, not ads.
Also it sounds like you are using /me/posts or/me/feed instead of /me/home

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.

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.

How to display my photo albums and photos that are in FB on my own website

I would like to display my photo albums and photos that are in FB on my own website. However everything I have tried requires an access token that I seem to only get if I login to FB. I don't want visitors to my site to have to login to FB to see my photos.
Is there a way to get this data and not require a login? I want to pull data from my own FB account. Or is there a different way to authenticate my access behind the scenes so visitors don't have to login, to see my photos?
Facebook has recently launched a way to share the album with public without having to Signin. Every album will have link below this key word Share this album with anyone by sending them this public link. Take a look at this HOW TO for more information.
EDIT: However, for embedding refer this SO which explains how to grant permanent access to your photo albums
Another option is using 8 photo restricted Facebook Photo Badge
Showzey seems to be working on liberating your photos and provides widgets.
Facebook has a badges page that has different options for embedding Facebook content onto your site. The photo badge should fit your criteria.
May be this method could help you guys.
You can do it through a public fan page or a business page.
I put this script together a while back: http://roughgiraffed.com/FBalbum/. Working on a more legit version - will post when complete.
You can combine galleria (open source javascript image gallery framework) with a plug-in to integrate with facebook.
You can find the links bellow:
http://galleria.io/
http://www.alexanderinteractive.com/blog/2012/03/display-facebook-photos-on-your-website-with-galleria/
I'm using this very nice plugin for Joomla. Take a look.