Facebook Photo ID - facebook

Does the Facebook API return the UNIQUE ID of photos I upload to FB through my app?
There are data I would like to keep track of of the photos which Facebook doesn't but I want to present in my app.
Thanks

Each photo was specified with a unique "identity", This identity is specified by the user's id and photo's id
A typical url of a photo looks like this:
http://www.facebook.com/photo.php?fbid=xxxxxxxx&set=a.xxxxxx.xxxxx.xxxxxxxx&type=3
That's a preview mode, in order to access a user's photos you must have also the privileges to access it
Also I know that each photo on fb has a permalink too
Looking like :http://a2.sphotos.ak.fbcdn.net/hphotos-ak-snc7/s720x720/xxxx_10150317692149803_5524802_7778361_2055733189_n.jpg This is also accessible though fb's sdk but also is under user's privileges

I believe it does, but you will most likely need the correct photo privilege to retrieve it. Also if your app is posting the photo. It should return the id of the newly created picture
https://developers.facebook.com/blog/post/498/

Yes you can do it. When your application uploads any photo of facebook, facebook creates a album with your application name. Now you can grab all photos which have aid of your application. For more you can check from here

Yes, the id is unique. An id also tells us the type of object based on where it is within our global block of ids (FBIDs).

Related

Facebook api: get cover photo with app-scoped id

guys!
Is there any possible way to get user cover photo using app-scoped id? Facebook graph-api accepts only actual facebook id.
There is no way to get a cover photo without using an access token belonging to that application.
Only profile pictures are publicly accessible from an app scoped ID.

Facebook GraphAPI to retrieve all user profile images

I need to retrieve all user profile images by user id and access token using Facebook Graph API.
I can take all user's albums in this way: {user-id}/albums?fields=type
In this list I can see an album with type = profile.
Is possible to change my request to filter directly this album?
Are there an others methods to take all user's profile images (for example using a single FB request)
You canĀ“t filter, you have to get all albums and browse through them in your code to find the profile album. After that, you just need to make another API call to /{album-id}/photos to get access to the photos.

Facebook Graph API - Is there is a way to determine if a user has uploaded a photo?

Some FB users have not uploaded a profile photo. When they authenticate to my app I don't want to store these default FB photos like so:
https://fbcdn-profile-a.akamaihd.net/static-ak/rsrc.php/v1/yp/r/yDnr5YfbJCH.gif
Is there an API call I can use to determine if the user has uploaded a custom photo?
Thanks
No.
Don't know what else to tell you :)
The only way I could think of doing it would be to pull the user's albums and look for the "Profile Pictures" album. There's a count element there.
Maybe. Read http://developers.facebook.com/docs/api/realtime/
Your app can subscribe to changes to a user's properties. The profile picture is a property of the user object so you can be notified when it changes. The other photos are not properties of the user object, they are listed under Connections at http://developers.facebook.com/docs/reference/api/user/ so I don't know if you can access them from the real time notification api. Whatever, you need the user_photos permission to list them.

How to use Facebook Photos in an iPhone App?

I have a client who wants to use their Facebook photos in an iPhone app. We want to embed their account into the app so that when people download the app, they see the client's Facebook photos. The user should not need to login or connect to Facebook.
This is different than the standard "connect to facebook so we can access you data" - we have no need to access the users data.
Do I need to create a Facebook App, connect the client's Facebook account to the Facebook app, then use that to get the photo data ?
Ok, here is what I found
My business page is http://www.facebook.com/pages/Feltpad-Web-Mobile/128861547181352
That number at the end (128861547181352) is the business' "Facebook Graph ID"
Then use the Business Graph ID and go to http://graph.facebook.com/128861547181352/albums and you will see a list of all of the Photo Albums associated with the business' page. There is only one album, so that is all the info you get. The first valuable line on that page says "id": "133208113413362" - this is the Facebook Graph ID for the album.
Then use the Album's Graph ID and go to http://graph.facebook.com/133208113413362/photos - this will give you a JSON file with all the data you need for all the photos in the album.
You can also use ?limit=25 and ?offset=50 or both ?limit=25&offset=50 to page through the results.
This should be easy. Facebook gives a public URL for albums that are public to be viewed by the Internet without necessity of logging in. You can see this URL al the bottom of the album page that you may want to share.
It looks like this:
Share this album with anyone by sending them this public link:
http://www.facebook.com/album.php?aid=[ALBUM_ID]&id=[USER_ID]&l=[SOME_PARAM]
(quoted from a public album)
you can easily leach data and extract images from there.
However it is more sane to create a Facebook app (takes hardy a minute) and use Facebook graph-API to make REST calls to retrieve all the data about albums and photos within them in well formatted JSON that will be far easier to handle the HTML. Once you have Facebook App in place, you may use it to fetch all the FB data but it violates both of your requirements (1)Not using Facebook app, and (2) user don't have to sign-in.
But it may worth looking at
http://developers.facebook.com/docs/api
http://developers.facebook.com/docs/reference/api/album
Well, there is some trick. If you go to the API page(http://developers.facebook.com/docs/api). Copy the URL given for Coca-Cola album (https://graph.facebook.com/99394368305) and make a request with photos REST command like https://graph.facebook.com/99394368305/photos you can access all the details of all the photos in the album in JSON format. I could not get it work for my personal public album though.

Facebook Connect and Photo Albums

I am currently developing a site for models/actors, and at this point I am just trying to ascertain what I can and can't do with Facebook Connect (I have virtually no experience in using Facebook Connect or FQL).
Basically there is going to be a facility whereby users will be able to upload their pictures. I want to know is it possible to use Facebook Connect to get the user's photo albums, in order to save the user from re-uploading all the photo's that are already on FB?
If so, do I/should I LINK to these photos, or FETCH them from Facebook and save a copy on my server?
EDIT: Just to clarify, this is what I want to do:
User will register on my site and agree to associate their Facebook ID with my site.
I then want to present the user with a list of all their albums that are on Facebook, the user can then select which albums they want to display on my site.
(optional) The user can select which specific photos in each album they want to display on my site.
Is this possible to do at all?
You can upload photos using the API. Check out this: http://developers.facebook.com/docs/reference/api/photo
If it were me, I would just upload the photo to Facebook and save the URL of the image rather than store it on my own server. You could do either one, but I don't see the sense is storing the image twice. The one issue could be if you wanted your photo at a higher quality than Facebook allows, but their quality is pretty high.