【发布时间】:2012-11-21 15:14:32
【问题描述】:
FBOpenGraphAction 的NSArray * tags 期待什么样的元素?从Open Graph Explorer 工具看来,它似乎只是想要一些 facebook ID 作为素材。但是,当这样做时
id<OpenGraphObject> event = (id<OpenGraphObject>)[FBGraphObject graphObject];
event.url = @"http://example.com/obj1234?fb:app_id=1111&og:type=myapp:share";
id<OpenGraphShareAction> action = (id<OpenGraphShareAction>)[FBGraphObject graphObject];
action.object = event
action.tags = [NSArray arrayWithObjects:[NSNumber numberWithInt:3300252], [NSNumber numberWithInt:585025503], nil];
然后用
发帖[FBRequestConnection
startForPostWithGraphPath:@"me/myapp:share"
graphObject:action
completionHandler: ...
];
但是这不起作用 - [__NSCFNumber dataUsingEncoding:]: unrecognized selector sent to instance
【问题讨论】:
标签: objective-c facebook-graph-api facebook-opengraph facebook-ios-sdk