Facebook iOS SDK 不工作
我的类是 FBRequestDelegate ,我在构建时没有收到任何错误,但我没有从 didFailWithError
或 didReceiveResponse
中得到任何信息。我已经搜索了近一周了,但根本无法弄清楚出了什么问题:
-(BOOL)postToFacebook:(NSString *)status{
NSLog(@"Posting to Facebook with status: \"%@\"", status);
NSMutableDictionary *params = [[NSMutableDictionary alloc] init];
[params setObject:status forKey:@"message"];
[facebook requestWithGraphPath:@"me/feed"
andParams:params
andHttpMethod:@"POST"
andDelegate:self];
params = nil;
return YES;
}
My class is a FBRequestDelegate
and I'm not getting any errors on build yet I get nothing from didFailWithError
or didReceiveResponse
. I've been searching for close to a week now and simply cannot figure out what is wrong:
-(BOOL)postToFacebook:(NSString *)status{
NSLog(@"Posting to Facebook with status: \"%@\"", status);
NSMutableDictionary *params = [[NSMutableDictionary alloc] init];
[params setObject:status forKey:@"message"];
[facebook requestWithGraphPath:@"me/feed"
andParams:params
andHttpMethod:@"POST"
andDelegate:self];
params = nil;
return YES;
}
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我最终只是暂时将整个项目切换到 Facebook 的旧 REST API。在使用 ARC 时,我在 Facebook iOS SDK 上遇到了很多麻烦,甚至不再值得了。
I ended up just switching my entire project over to Facebook's old REST API for the time being. I've had so many troubles with the Facebook iOS SDK while using ARC, it isn't even worth it anymore.