私は Objective C プログラミングの初心者で、いくつかのアプリケーションの開発を始めています。Facebook の写真をアップロードするための便利なライブラリを探しています。5.1 シミュレーターで Xcode の更新バージョンを使用しています。
1386 次
1 に答える
0
アプリケーションで使用したものは次のとおりです。
- (void)uploadImage:(UIImage *)image withName:(NSString *)name
{
if (image)
{
incomingRequests++;
//Image settings/parameters
NSMutableDictionary *params = [NSMutableDictionary dictionaryWithObjectsAndKeys:
name,@"caption",image, @"picture",
nil];
//method to upload images
[self.facebook requestWithMethodName:@"photos.upload"
andParams:params
andHttpMethod:@"POST"
andDelegate:self];
NSString *tempRequestString = [[NSString alloc] initWithString:@"photoUpload"];
self.facebook.request_string = tempRequestString;
[tempRequestString release];
}
}
理解を深めるために、このチュートリアルを参照してください: How To Use Facebook's New Graph API from your iPhone App .
于 2012-08-03T10:27:17.583 に答える