小编Ban*_*kul的帖子

使用UIImage作为@"图片"分享facebook对话框

这是简单的代码

UIImage *ScreenShot = [self getScreenshot];

NSMutableDictionary *params = [NSMutableDictionary dictionaryWithObjectsAndKeys:
                               @"Name", @"name",
                               @"Caption.", @"caption",
                               @"Description.", @"description",
                               @"www.example.com", @"link",
                               ScreenShot, @"picture",               
                               nil];

[ facebook dialog:@"feed"
                  andParams:params
                andDelegate:self];
Run Code Online (Sandbox Code Playgroud)

当我编译它时得到这个消息

Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[UIImage length]: unrecognized selector sent to instance 0x1288bb90' *** First throw call stack:
Run Code Online (Sandbox Code Playgroud)

facebook objective-c cocos2d-iphone ios

1
推荐指数
1
解决办法
2671
查看次数

标签 统计

cocos2d-iphone ×1

facebook ×1

ios ×1

objective-c ×1