我想检索用户签到或在iOS(目标C)中从脸书中发布位置信息。
这是示例代码,我已经尝试过,但我没有取得任何成功。
请查看此内容并分享一些想法,以便继续进行此操作。
注意:我正在尝试使用GraphAPI。
代码:
[FBRequestConnection startWithGraphPath:@"me/feed" parameters:@{@"place":@"fbuser-id"} HTTPMethod:@"POST" completionHandler:^(FBRequestConnection *connection, id result, NSError *error) {
//verify result
if(error) {
NSLog(@"Error publishing story.");
}
else {
NSLog(@"Story published.");
}
}];