0
我设法登录与Facebook的工作,并设法得到一个活动会话....但是,我想张贴到Facebook的照片或发布消息到Facebook。你能告诉我,如果我做对了吗?它似乎没有工作,因为我看不到任何东西在我的墙上发布。Facebook的请求withWraphPath:andParams:andHttpMethod:andDelegate
UIImage *image = combinedImage;
NSString *strMessage = @"Check out my photo";
NSMutableDictionary* params = [NSMutableDictionary dictionary];
[params setObject:strMessage forKey:@"message"];
if (image) {
[params setObject:image forKey:@"picture"];
[facebook requestWithGraphPath:@"me/photos" andParams:params
andHttpMethod:@"POST"
andDelegate:self];
} else {
[facebook requestWithGraphPath:@"me/feed" andParams:params
andHttpMethod:@"POST"
andDelegate:self];
}
谢谢你们!