Searching for Users Facebook Albums with Graph API - facebook-graph-api

I am using the Facebook Graph API to query the users Photo Albums (I am using the Facebook SDK for Android). I am sending the Request me/albums to Facebook and I receive all albums. After receiving my result I have to filter the result list because I do not want to show the albums which have the attribute can_upload=false.
Can I send any parameter with my request to Facebook which returns only albums with the attribute can_upload=true?
Regards
Michael

If you want Facebook to filter results for you, you need to use FQL.
SELECT name, object_id FROM album WHERE owner= USER_ID AND can_upload = true

Related

how can I access FaceBook Profile_Picture album using FB graph api?

I am accessing FaceBook Developer and I am using me?fields=albums{picture} to access the cover photo of my albums . How can I go to profile picture album ? Basically I want to access the photos of profile picture album. Here is an image about what I want to do
finally I got the answer with the help of #CBroe
to get the album list type :
me?fields=albums
after that type your particular album id :
album_id/photos?fields=source
to get the photos of that particular album

Is there an Amazon.com API to retrieve product reviews for a user?

http://www.amazon.com/gp/profile/profile_id
This will show the reviews written by a user.
Is there an api that can retrieve the user reviews, given a profile id?
My goal is to get number of reviews a user has submitted, review dates and stars.

FQL - how to get all the photos a person is tagged in

I am trying to build a page on our company web site that will show all photos our company is tagged in on facebook. Its the left "Photos of You" tab when in the FB photo page.
Is there a way to select just those pictures for a photo wall on our site?
I'm using FQL to help speed up queries on large albums.
Here is some FQL to select tagged photos for a specific user/page (where 123 is uid).
SELECT object_id, pid, aid, src_big, src_small, caption, like_info,
comment_info, modified FROM photo WHERE object_id IN (SELECT
object_id FROM photo_tag WHERE subject = 123)
Not sure if it helps, but I built an application to create photo slideshows for any Facebook user or page. Feel free to also give that a try, Slideshow App

How to display open graph objects in gallery view in news feed?

I am using Facebook Open Graph with an approved action called "order". When our users make a purchase on the site, we will post what they bought in timeline and news feed. I chose the gallery view in aggregation. It shows up correctly in timeline, but not in news feed. In the newsfeed, the products are in a list view. My guess is that I'm passing the urls of the product page back to facebook, so it shows as a list of items, not just the pictures. What's the right way to make the products show up in news feed as a gallery, like pinterest or instagram?
Here's my code to post the products
purchase.products.each do |product|
graph_api.put_connections("me", "#{namespace}:order?product=#{product_url(product)}")
end
Thanks

Get Facebook profile photos

I am trying to get the photos in a user profile. I tried to use https://graph.facebook.com/me/photos, but it returns tagged photos only. Can I get all the photos in all albums?
You are using the wrong API endpoint, you want the albums endpoint.
https://graph.facebook.com/me/albums
From the API page:
Photo Tags: https://graph.facebook.com/me/photos
Photo Albums: https://graph.facebook.com/me/albums
From that you can then call https://graph.facebook.com/ALBUM_ID/photos.