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.
Related
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.
I'm writing an application for uploading the photos to the user's account from my application.
With following code i 'm succeeded of uploading the photo but still those photos doesn't directly uploads into the Album .
Album thumbnails shows empty album whereas detail page comes withe following warning .
Would you like to add these photos to your album?
The photos below were uploaded from another application, you'll need to approve them.
I want to avoid following instruction . Do I need to set any permission parameter in my Facebook app count ?
Thanks in advance !!
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.
How to post a picture to a specific album in page from app without posting the image on page wall? Currently I can post picture to a specific album, but I don't want to see that on page wall becouse the app will post a lot of pictures. So how that is possible?
This is an example of app that uploads generated picture to specific album but dosn't publish it on its wall, I'm trying to do the same.
http://www.facebook.com/MercedesBenz?sk=app_318742408161371
Yes this is possible by providing no_story parameter equal to 1 while uploading photo.
POST https://graph.facebook.com/ALBUM_ID/photos?no_story=1
This information once was documented for photo object, but not anymore exists in current documentation.
This is described in Developer Blog post: Suppressing auto-generated feed stories when uploading photos
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).