-5
我是新來的ios開發,我感到震驚發表評論ios應用程序Facebook帳戶從ios應用程序只。請你指導我如何實施。提前致謝。使用iOS SDK發佈評論在朋友的Facebook牆上
我是新來的ios開發,我感到震驚發表評論ios應用程序Facebook帳戶從ios應用程序只。請你指導我如何實施。提前致謝。使用iOS SDK發佈評論在朋友的Facebook牆上
NSString * urlString = [NSString stringWithFormat:@「https://graph.facebook.com/YOUR_FRIEND_FB_ID/photos?access_token=%@」,self.accessToken];
UIImage * pic = [UIImage imageNamed:@"green-background.png"];
NSData *picData = UIImageJPEGRepresentation(pic, 1);
NSURL *url = [NSURL URLWithString:urlString];
ASIFormDataRequest *newRequest = [ASIFormDataRequest requestWithURL:url];
[newRequest setPostValue:@"This is Sample Text" forKey:@"message"];
[newRequest setData:picData forKey:@"data"];
[newRequest setPostValue:self.accessToken forKey:@"access_token"];
[newRequest setDelegate:self];
[newRequest setDidFinishSelector:@selector(postToWallFinished:)];
[newRequest startAsynchronous];
永久最佳鏈接http://developers.facebook.com/ios/ – Buntylm