如何将图像发布到朋友的Facebook墙上

时间:2013-01-09 10:41:15

标签: ios facebook-ios-sdk

NSData* imageData = UIImageJPEGRepresentation(self.qqqimage, 90);
NSMutableDictionary * params = [NSMutableDictionary dictionaryWithObjectsAndKeys:
                                self.messegeSend.text, @"message",
                                imageData, @"source",
                                nil];

postPath = [postPath stringByAppendingFormat:@"%@/feed",[friendList objectAtIndex:i]] ;

[FBRequestConnection startWithGraphPath:postPath
                             parameters:params
                             HTTPMethod:@"POST"
                      completionHandler:^(FBRequestConnection *connection, id result, NSError *error)
 {

这是我的代码,但收到错误http 200

我还尝试使用postPath @"%@/photos",friendID,但再次使用http 200

0 个答案:

没有答案
相关问题