我想從我的應用程序發佈我的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