FacebookAgent update: Now upload a photo and then change status in a single call using Facebook connect for iPhone
GET THE LATEST CODE FROM HERE: http://code.google.com/p/iphone-facebook-twitter-connect-easy-integration-tool/
PLEASE JOIN THE PROJECT
In my previous post I shared a FacebookAgent to simplify integrating Facebook connect in iPhone and using common actions without
handling login, permission check etc but in a single method call like:
- Publish feed
- Change status
- Upload photo
Scotopia from iphonedevsdk.com shared an excellent idea of implementing a method which would upload a photo and then update status.
I have updated the FacebookAgent according to that. Now it has few more functions:
/** * Upload photo */ - (void) uploadPhoto:(NSString*)imageurl; - (void) uploadPhotoAtURL:(NSString*)imageurl withCaption:(NSString*)captionOrNil toAlbum:(NSString*)aidOrNil; - (void) uploadPhotoAsData:(NSData*)imagedata withCaption:(NSString*)captionOrNil toAlbum:(NSString*)aidOrNil; /** * Upload photo with status */ - (void) uploadPhoto:(NSString*)imageurl withStatus:(NSString*)status; - (void) uploadPhotoAtURL:(NSString*)imageurl withStatus:(NSString*)status caption:(NSString*)captionOrNil toAlbum:(NSString*)aidOrNil; - (void) uploadPhotoAsData:(NSData*)imagedata withStatus:(NSString*)status caption:(NSString*)captionOrNil toAlbum:(NSString*)aidOrNil; /** * Ask permission to auto approve uploaded photo and add photo to an album. */ - (void) askUplaoadPhotoToAlbumPermission;
-
gc
-
Unleech
-
Johnryan1
-
Johnryan1
-
Unleech
-
moholy
-
Shaikh Sonny Aman
-
Johnryan1
-
Shaikh Sonny Aman
-
Moholy
-
Shaikh Sonny Aman
-
nickthedude
-
Jack
-
Fawad
-
Shaikh Sonny Aman
-
Fawad
-
Shaikh Sonny Aman
-
Fawad
-
Shaikh Sonny Aman
-
Me
-
Me
-
Unleech
-
Unleech
-
Shaikh Sonny Aman
-
Shaikh Sonny Aman
-
dev
-
Shaikh Sonny Aman
-
Laurent Falorni
-
Shaikh Sonny Aman
-
dylanmalone
-
Transton
-
danbaumbach
-
dev
-
Shaikh Sonny Aman
-
dylanmalone
-
danbaumbach
-
Transton
-
Unleech
-
Unleech
-
Shaikh Sonny Aman
-
Shaikh Sonny Aman
-
Dan Baumbach
-
Dan Baumbach
-
Shaikh Sonny Aman
-
danbaumbach
-
Brian
-
Shaikh Sonny Aman
-
Brian
-
Brian
-
Shaikh Sonny Aman
-
Brian
-
Shaikh Sonny Aman
-
Brian
-
Brian
-
Shaikh Sonny Aman
-
Brian
-
Shaikh Sonny Aman
-
Brian
-
Shaikh Sonny Aman
-
Brian


(6 votes, average: 4.17 out of 5)
(4.50 out of 5)