how to get to which album a photo belongs by facebook graph api - facebook-graph-api

Using facebook graph api, I can retrieve an alubm obejct by sending a request to
graph.facebook.com/99394368305 (Coca-Cola fan page wall photos)
I can also retrieve a photo obejct by sending a request to
graph.facebook.com/98423808305 (A photo from the Coke fan page)
However the returned JSON string doesn't contain information which album the photo belongs to.
Is there any work around solution?

my dear its simple solution is to query the photo table of facebook using FQL if you are having aid and pid.
http://developers.facebook.com/docs/reference/fql/photo/

Related

How to get the Profile name/Profile id of the Person who has liked the post in a fb page using facebook insights Graph API

I wanted to create a recommendation engine. I have a business page in facebook. I want to fetch the user names/user id and extra information of the persons who have liked the posts (like how google analytics gives for the website viewers). As far as i analysed, Facebook Graph API gives the count of the likes,comments etc.Could i get the user id's and timestamp of the person who have liked the posts along with the count

check if facebook post is album post?

When getting feeds from news feeds connection with graph api, How can I know if some feeds are album feed and not picture ?
I'm using graph api and fql in my application.
Thanks in advance

API photo datetime taken

I need to get photos from a album via Facebook API and I also need a datetime taken of the photos. Is is still not possible? Isn't it there some workaround? Thanks
Facebook doesn't give you a taken time on their photos, only a time when the photo was uploaded to the Facebook system via the created field in FQL or created_time in the Graph API.
You could try downloading the largest version of a photo Facebook has on their system and checking for EXIF data. I doubt that there will be any.

FQL doesn't return mobile photos groups uploaded via the Facebook Camera app

It looks like the FQL query to return photos from a user's Mobile Uploads album doesn't return all of a user's uploaded the photos. This is the case for any photo groups (when uploading more than 1 photo at a time) from the Facebook Camera app. These photos get grouped into their own data entity, and do not get returned when I query for all photos from Mobile Uploads via FQL. However, if I do the same query but via the Graph Api, all those photos do get returned, so it looks like there's an inconsistency between the way the Graph Api returns the photos data and the way FQL returns it. The Graph Api seems to return a more comprehensive set of results.
I've found that if you upload multiple photos they gets categorised as a status update and you need the user's "user_status" permission to access them through the API, even though they're in the mobile uploads album (any other photo in there you can access with only the user_photos permission)

How to assign a past date while uploading a photo via Facebook Graph API, so that it gets placed at the right point in Timeline?

Using the Facebook Graph API, I have been able to upload a photo. It is an old scanned photo. I would now like to modify the timestamp, so that it is shown at the appropriate point in the timeline. Does the API provide a way to do this?
Here is an article that says we can assign past dates to Facebook Timeline Posts - http://www.allfacebook.com/facebook-timeline-timestamp-2011-10 . I want to assign a past date to a photo I uploaded, and I would like to do it via the Graph API. Any leads would be helpful.