Search photo & videos from facebook - facebook-graph-api

Can we search public photos & videos from facebook by tags as input perameter as we do in flickr using the tags we search photos and flickr API returns list of photos.
Any help or suggestion would be greatly appriciated.
Thanks
Gaurav

last time I checked, photos uploaded to Facebook do not have tags. Therefore, it isn't possible to return photos that match a tag. What you could do, is search for groups or apps on Facebook and then retrieve the public photos there.
The search URL format is https://graph.facebook.com/search?q=watermelon&type=post&access_token=AAAAAAITEghMBAHwKSuFoX7OpcyCezYGO1JkVzBaQq6fBdXoHPayxZCxta4EZC0fYSLPjO16Yf9FKOAkhOHrU2ROZCZB9fcbLsDtPFgy67dK5TXOeYJqG, where q is your query. More info can be found here. https://developers.facebook.com/docs/reference/api/

Here is an app that allows you to search facebook photos!

The below api query will return everything that has that object_id tagged.
https://graph.facebook.com/[object_id]/tagged
An example of this would be looking for everything tagging Heat Ultra Lounge (a project I'm working on). To get the objects tagged with this tag, I would use the below get address and include &access_token=[my or my app's access token]. Like so:
https://graph.facebook.com/118613151504271/tagged?access_token=[youraccesstoken]

Related

Fetch a random photo from Google Photos with API

I want to write an app that fetches a random photo from my Google Photos set of photos using the Google Photos API. This is the new Google Photos, not the old one that was linked to a Google Drive.
In my review of the API Docs, it seems that you can list albums, and perhaps list what the albums contain, but it's not obvious to me how to download a photo itself. Can anyone figure it out?
Try with this API: https://developers.google.com/photos/library/reference/rest/v1/mediaItems/list
It lets you list the photos from your library and returns two parameters, productUrl and baseUrl, that you could use to get the photo.

Is there query API for Google Photos (photos.google.com)

We can choose cat photos taken in a location in the google photos app, but I wonder if there is any API for that?
I did some search and people suggested we can use the old google+ API for upload, but I'm looking into getting a list of photos that match the search.
Or, perhaps to get a list of photos in a given public photo albums?

photo not in any album facebook

i've noticed that there are some photos that doesn't appear in any albums. This photos are published by fan on a facebook page.
Is there any way to get this photos by the API ?
The API call /feed returns all the posts of the wall, but many of this photo that i seen in the wall on browser doesn't appear in the response of the API.
Any idea ?
Try using below
https://graph.facebook.com/<YOUR_PAGE_NAME>/picture
Hope this help
Kaushik
I use
graph.facebook.com/PAGEID/photos
Permissions Needed: user_photo_video_tags or friends_photo_video_tags.
refer to: http://developers.facebook.com/docs/reference/api/user/ user photos
http://developers.facebook.com/tools/explorer/?method=GET&path=me%2Fphotos
I have a live example of this usage is you wish to test. it is an iframe plugin that feeds the photos for a page. "is not set up for users".
Just replace "anotherfeed" page user name with any page.
https://anotherfeed.com/api.beta.php?type=photos&pageid=anotherfeed&width=350&height=500&limit=20&offset=0

Is there an API to create albums and upload photos to Pages and groups?

In our APP we are successfully creating albums and uploading photos to users accounts however there does not seem to be a way to create albums and upload photos to albums in Pages and groups.
Looks like we can publish photos to streams of pages and groups but not really manage albums.
Does anyone know how to do this?
You can totally create create albums and post photos to Pages. There is a post on this here:
https://developers.facebook.com/blog/post/498/
To post to a page you just replace the user id with the page id, and make sure you have requested the publish_stream permission.
However, up until recently it seems that groups did not have albums and you could only publish a photo to the group timeline.
Groups now have albums, but it seems like you can't create them. When I try to I get a permissions error. Has anyone else managed to create an album for a facebook group?

Pretty photo like functionality does not share the image as expected due to the #prettyphoto in the url

Facebook like does not work as expected with pretty photo.
Here is my url:
http://somedomain.com/photography/#!prettyPhoto[set_3]/0/ this url show an image in the pretty photo.
What i am seeing is that only till http://somedomain.com/photography/ is shared in the facebook, the link after the # is ignored.
Due to this issue all the images in the photography gallery shows the same like count.
How can i fix the issue?
What does the developers.facebook.com/tools/debug tool say about the links you're trying to share?
An og:url meta tag or, canonical link meta tag, etc will redirect Facebook and may result in metadata being pulled from a page you weren't expecting it to be pulled from