我想从我的应用程序发布我的Facebook墙上的消息。首次发布成功。然而在第二次和连续的时间里,我得到了“操作无法完成(FacebookErrDomain:10000)”。请帮助我。Facebook发布
P.S:我没有使用ARC,最终没有静态变量。 尝试实施Facebook的SSO功能。
我打电话的应用三种方法,
-(void)signintoFacebook{
if (![self.facebook isSessionValid]) {
NSArray *permissions=[NSArray arrayWithObjects:@"read_stream",@"publish_stream", nil];
[self.facebook authorize:permissions];
NSLog(@"first permission");
}else{
NSLog(@"second");
if ([self.delegate respondsToSelector:@selector(signedIntoFacebook)]) {
[self.delegate signedIntoFacebook];
}
}
}
-(void)postToFacebook{
NSMutableDictionary *params = [NSMutableDictionary dictionary];
[params setObject:@"Good Morning..!!" forKey:@"message"];
[self.facebook requestWithGraphPath:@"me/feed" andParams:params andHttpMethod:@"POST" andDelegate:self];
}
的第一篇作品的罚款。在第二次尝试我的错误信息是陷入这种方法
-(void)request:(FBRequest *)request didFailWithError:(NSError *)error{
NSLog(@"The request failed to load %@",[error localizedDescription]);
}
为什么你的错误到来了?因为你的代码不正确?我们能帮你什么吗?我们需要看到你的代码 – MCKapur
请找到我编辑的问题。 – user1188275
也许它帮助,如果你看到我是如何实现它:https://github.com/blockhaus/BMSocialShare/blob/dev/iOS/BMSocialShare/BMSocialShare/BMSocialShare.m – vinzenzweber