0
當我使用兩個權限登錄時:@「publish_actions」,@「publish_stream」 並且希望在Facebook上發佈。請幫我解決我已經確認並應用於許多計算器解決方案,但沒有人worked.My Facebook的SDK版本是:3.21操作無法完成。 (com.facebook.sdk錯誤5.)在Facebook上發佈時ios
+(void)postFBShare:(NSString *)sArticle
{
NSDictionary *params = @{
@"name" : @"Feed A Puppy",
@"description" : @"Download Feed a puppy on iTunes",
@"link" : @"http://google.com",
@"message" :sArticle,
};
[FBRequestConnection startWithGraphPath:@"me/feed"
parameters:params
HTTPMethod:@"POST"
completionHandler:^(FBRequestConnection *connection,
NSDictionary * result,
NSError *error) {
if (error) {
NSLog(@"Error occurred: %@", [error localizedDescription]);
} else {
NSLog(@">>> FB Shared successfully::%@",result);
UIAlertView* alert = [[UIAlertView alloc]initWithTitle:@"Alert!" message:@"Shared successfully." delegate:self cancelButtonTitle:@"OK" otherButtonTitles:nil];
[alert show];
}
}];
}