我想在 iPhone 中使用 facebook api 发布图像以喜欢页面墙。我尝试使用图形 api 发布,但只有消息出现在页面墙上,但没有图像。任何人都可以帮助我解决这个问题..我不想发布到我拥有的类似页面,但我喜欢的页面..
提前致谢
奥古斯丁 PA
我想在 iPhone 中使用 facebook api 发布图像以喜欢页面墙。我尝试使用图形 api 发布,但只有消息出现在页面墙上,但没有图像。任何人都可以帮助我解决这个问题..我不想发布到我拥有的类似页面,但我喜欢的页面..
提前致谢
奥古斯丁 PA
将此与您自己的图像一起使用
NSMutableDictionary *args = [[[NSMutableDictionary alloc] init] autorelease];
[args setObject:@"message" forKey:@"caption"];
[args setObject:@"message" forKey:@"message"];
[args setObject:UIImageJPEGRepresentation(screenshotIMG1, 0.7) forKey:@"picture"];
[facebook requestWithMethodName:@"photos.upload" // or use page ID instead of 'me'
andParams:args
andHttpMethod:@"POST"
andDelegate:self];