I searched a lot of questions regarding this. The page you requested was not found.
when I do this in the sample application then it works well and it successfully connects to facebook and publishes the work. But when I integrate it into my application, then when I click on the Facebook sharing button, after logging in it gives The page you requested was not found
what is the problem please help when i use the latest facebook ios sdk
Please, help!!!
This is my code.
facebook = [[Facebook alloc] initWithAppId:@"App_id" andDelegate:self]; NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults]; if ([defaults objectForKey:@"FBAccessTokenKey"] && [defaults objectForKey:@"FBExpirationDateKey"]) { facebook.accessToken = [defaults objectForKey:@"FBAccessTokenKey"]; facebook.expirationDate = [defaults objectForKey:@"FBExpirationDateKey"]; } if (![facebook isSessionValid]) { [facebook authorize:nil]; } else { [self showShareDialog]; }
///// show the ShareDialog method
NSMutableDictionary* params = [NSMutableDictionary dictionaryWithObjectsAndKeys: @"App_id", @"app_id",nil];
[facebook dialog:@"feed" andParams:params andDelegate:self];
Wow, I donβt know how to deal with this problem. I tried all the solutions, but no one works for me. the problem is when I create a new application and then use the iOS sdk facebook, then it works well, but when I do the same in my own application, then it gives a problem. 1) The requested page was not found 2) does not display the niether dialog box, after which it returns to the main facebook page.
What is the problem? Please, help!!! I set the url in the .plist file but did not work. i have been doing this since last week, please help
source share