Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

Thread: FBConnect API
View Single Post
Old 12-20-2009, 12:40 PM   #9 (permalink)
rocotilos
almostfunnydev
iPhone Dev SDK Supporter
 
rocotilos's Avatar
 
Join Date: Oct 2009
Age: 34
Posts: 3,015
rocotilos is on a distinguished road
Default

Hello im looking to do this too.

Basically i need to upload a photo in uncompressed format to facebook, and also need to download from facebook.

for the upload part, i can use the function given by michelle.

Quote:
- (void)uploadPhoto {
// NSString *path = @"http://www.facebook.com/images/devsite/iphone_connect_btn.jpg";
NSURL *aUrl = [NSURL URLWithString:url];
NSData *data = [NSData dataWithContentsOfURL:aUrl];
UIImage *img = [[UIImage alloc] initWithData:data];
NSData* cData = UIImageJPEGRepresentation(img, 1.0);
UIImage *image = [[UIImage alloc] initWithData:cData];

NSDictionary *params = nil;
[[FBRequest requestWithDelegate:self] call:@"facebook.photos.upload" paramsarams dataParamNSData*)image];
NSLog(@"image uploaded");

}
But this method is not standalone right? It needs the FB Connect classes?
rocotilos is offline   Reply With Quote
 

» Advertisements
» Stats
Members: 175,417
Threads: 94,015
Posts: 402,531
Top Poster: BrianSlick (7,978)
Welcome to our newest member, JackLD03
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 12:55 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.