FaceBook get the bigger profile image - facebook

I an using this url to get the image profile of user:
http://graph.facebook.com/userid/picture?type=large
But i noticed that i get image profile in 180*135 and i see that the image profile in my face book profile is more big then this.
It is possible to get the real image? or the large is the maximum?

Well, there is. You would have to create a facebook app, request access to the users picture albums, retrieve the images from the "Profile Pictures" album and scan that album for the currently used image.
If you have luck, its always the first image in the album. If not, you are in trouble and would have to do image comparsions.

Related

Link between current profile picture and the original photo in the profile album

I want to have a link between the currently used profile picture and the original source in the profile album.
I'm getting the profile picture with:
/me/picture?redirect=false
Which will return url, width & height but unfortunately no id. (https://developers.facebook.com/docs/graph-api/reference/profile-picture-source/)
I'm getting all the albums with:
/me/albums?fields=id,type
Then I'm iterating through all the albums to find the one with the type=='profile' and then retrieve all the photos of this album:
/{albumId}/photos?fields=width,height,id,images
How can I identify the photo used as the profile picture?
Since we have no id returned from the /me/picture endpoint I don't see a way to make the link between the two objects.
Also, I'm not sure that we can rely on CDN urls to parse them and try to find the profile picture id.

Graph API: Post Image to User's wall (without Album)

I am somewhat desperate posting images via the graph api to a user's page.
What I want to achieve is: I've got an image in an amazon S3 bucket. I'm using the /userid/photos endpoint to post the image url and the message property like:
{
"url": "http://url.to/image.jpg",
"message": "Image description"
}
Now, the API creates an album called: "AppName Photos". When I post multiple time to the same album, it suddenly arranges all images in a view, but I want them to be seperate posts each by each.
So, what I want to achieve is: Post an image to a user's page without putting it into an album, as if the user uploaded the image hisself.
www.klout.com is able to do this. When I try to share & upload a custom image, the image is being stored in the "Chronic photos". How can I store the image there and not in an app-dependent album?
Got it. Simply iterate over all albums (you need user_photo access) and post to that specific album of type "wall".
It is not the most beautiful solution I've ever seen but at least it works and prevents grouping nicely :)

What are the max dimensions that should be used for showing facebook photos?

I am grabbing the photo's of my user's friends on my site. And, the photos of the friends look very dull, and photos seem to have a very low resolution.
How can I make sure that the photos are sharp ? Do I need to do any post processing ?
What are the max dimensions that should be used for showing photos ?
If you're grabbing profile thumbnail, it's because they get resized when you upload them to Facebook. Facebook does this automatically. If you want higher quality photos, you need to use a different API method than the the one used to get profile photos:
http://developers.facebook.com/docs/reference/api/
I'd suggest "Photos" or "Photo albums" method.
EDIT The actual dimensions for a profile photo are 50x50. If you try to display them larger than this, you're going to get loss. Non vector graphics can only contain so much data per pixel.

set or update profile picture using fbconnect facebook?

i have a image and i want to set this image as the users profile image. i came to know that we cannot upload directly to "Profile pictures" so i uploaded it in some other album and now i want to set this image as its profile pic ???
any idea how can i do that using fbconnect ?
thanks in advance
well i guess this is not possible...
http://developers.facebook.com/docs/reference/rest/photos.upload
3rd paragraph says:
You can upload to a specific user's album by calling photos.getAlbums. However, you cannot upload to a user's profile picture album.
Checkout my answer in this thread: how to set a facebook profile picture using the graph api
You can't set the profile picture, but you can upload it to an album, and then send the user to the "make profile picture"-page for that picture.

Facebook Connect for iPhone: How to upload an image (UIImage) to user's wall without having to use json-embedded link or photos.upload?

Is there any way to upload an image (UIImage) directly from an iPhone app to a user's wall/feed?
All the samples I see are either using a json-embedded link or they use the photos.upload call with album ID (aid) which results in the user getting the image in his photo album(s).
What I want to do is to upload an (UI)Image created (by the user) inside an iPhone app and upload to his/her wall. Is this possible? Sample code would be highly appreciated.
This isn't possible. To understand why, you have to consider the conceptual model that Facebook currently uses: Posts on a user's wall are just bits of text optionally attached to some link URL. That link URL can be some random image on the web, or it can just as well be an image that the user already has in their photo albums.
But a wall post cannot inherently "contain" an image in and of itself. Therefore you need to host the image somewhere, be it on your own site, or on Facebook itself, inside one of the user's albums by uploading it first to there.
I'm trying to figure out the same thing myself. One thing I did find out is that if you post the "Wall Photos" album they do get posted to the wall. However you only have a wall photos album if you've uploaded photos to your wall from your profile page before. And even then, you need to get the album aid and then post to it.
EDIT
Found a much better solution. First upload the photo to your default album, then make a post to the wall with the link to your photo that was returned when uploading (not a link to the image but the page the image is on).