Gur*_*uru 7 iphone facebook objective-c facebook-graph-api
NSMutableDictionary *params = [NSMutableDictionary dictionaryWithObjectsAndKeys:
photoDescription, @"message",
image, @"image",
nil];
[facebook requestWithGraphPath:@"me/photos"
andParams:params
andHttpMethod:@"POST"
andDelegate:self];
Run Code Online (Sandbox Code Playgroud)
这就是我将图像上传到Facebook所做的工作.图像成功上传到FaceBook"照片".但我想将图像发布到我的FaceBook Feed.所以我试过,
[facebook requestWithGraphPath:@"me/feed"
andParams:params
andHttpMethod:@"POST"
andDelegate:self];
Run Code Online (Sandbox Code Playgroud)
但它仍然将图像发布到"照片"中.它没有出现在Feed中......
我搜索并使用不同的方法来解决方案,但我找不到任何有用的东西......
不确定你的params样子,但试试这个..
UIImage *image = ...// some image.
NSData *imageData= UIImagePNGRepresentation(image);
NSMutableDictionary *params = [NSMutableDictionary dictionaryWithObjectsAndKeys:
@"some message", @"message", imageData,@"source", nil];
[facebook dialog:@"feed" andParams:params andDelegate:self];
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
2181 次 |
| 最近记录: |