Save UIImage to photos album and then open Photos app - iphone

Currently I am saving a UIImage to the photos album using UIImageWriteToSavedPhotosAlbum, which works fine.
Is there a way to then open the Photos app showing the just-saved photo? (I assume my app must close before opening Photos, which is fine.)
Simply opening the Photos app to the Saved Photos Album would be a not-quite-as-good alternative if the above isn't possible.
Thanks.

It is not possible to open the photos app. But, as a workaround, you can open the album where you saved the photo using UIImagePickerViewController. Then, the user can click on the image and see it. That way, they won't even have to exit your application.

No, it's not possible using the SDK. If this is something you think is needed, you should file an enhancement request.

Related

Path of the photo album from iphone device

In my project, i want to do something like this.
I just want to read the Path of the photo albums from the iPhone device,from where i want to get the photos. After getting the photos, i want to display the photos as views with swiping methodology, similar in the photo albums but in my project.
Is there is a way to achieve this?
Please advice me??
Unfortunately, you can not directly access the photo library from what I am aware of, but you can always use the image picker, which seems to have your required functionality.
https://developer.apple.com/library/ios/#documentation/UIKit/Reference/UIImagePickerController_Class/UIImagePickerController/UIImagePickerController.html%23//apple_ref/doc/uid/TP40007070

upload photo and publish story using FBConnect

In my iphone app,I want to let the user upload an image to his facebook photo Album and publish a story at the same time.The story's media field contains the uploaded image's url.I successly uploaded the photo and got the result's "link" and "src_small" property.But when I use FBStreamDialog to publish the story,I got:
(source: sinaimg.cn)
At last,I find this:http://developers.facebook.com/live_status#msg_625,it says:
We no longer allow stream stories to contain images that are hosted on the fbcdn.net domain. The images associated with these URLs aren't always optimized for stream stories and occasionally resulted in errors, leading to a poor user experience. Make sure your stream attachments don't reference images with this domain. You should host the images locally.
It seems that I can't finish my job,What's your solution? thanks in advance!
you can't use that picture or the picture from facebook itself
you can upload the picture on other servers or upload it to online photo sharing like picasa
I got this functionality to work with ShareKit - it's really good:
http://www.getsharekit.com/
It's also open source, so you can see how they do it inside...
Good luck!

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).

how to implement photo album application?

I am implementing photo album application same as default photo album application in iphone.
can any body suggest me how to start?
I've written a simple and easy to use photo browser called MWPhotoBrowser. I decided to create it as Three20, while very good, was too heavy/bloated as all I needed was a photo viewer. Take a look:
MWPhotoBrowser can display one or more images by providing either UIImage objects, or URLs to files, web images or library assets. The photo browser handles the downloading and caching of photos from the web seamlessly. Photos can be zoomed and panned, and optional (customisable) captions can be displayed. The browser can also be used to allow the user to select one or more photos using either the grid or main image view.
Have a look at the Three20 project started by Facebooks Joe Hewitt, it contains several reusable controls like a photo viewer which mimics the iPhone's Photos app.
"TTPhotoViewController emulates Apple's Photos app with all of its flick n' pinch delight. You can supply your own "photo sources", which works similiarly to the data sources used by UITableView. Unlike Apple's Photos app, it isn't limited to photos stored locally. Your photos can be loaded from the network, and long lists of photos can be loaded incrementally."
http://github.com/facebook/three20/

How to replicate facebook photo view and show photos very fast from web

I have to create same functionality as facebook has does like all the photos display at one view and from that user can choose photo and it goes to large photo. This photos are showing very fast. I have 5 photos from web but it take so much time. Does anyone know how they shows photo very fast.
I don't know the answer but I suggest you look at the three20 source code on github. Joe Hewitt (who wrote the Facebook app) published much of its code including the photo view. There is also a Google group that discusses three20.
I don't know about the iphone app in particular, but I do know that the main facebook website prefetches images in photo albums.
Facebook creates multiple sizes of each photo when it is uploaded. They also convert all the photos to png I'm pretty sure, likely reducing the file size of the original photo. I know creative has often complained about the "quality" of photos after uploaded to Facebook.
This allows them to deliver the appropriate sized image (both dimensions and file size) for quick display rather than delivering a full sized image and having the client resize it.