Facebook ios sdk: Page not found after integrating it into my application

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

+4
source share
3 answers

The problem is in the URL. You may have edited the FBConnect SDK URL. Check it out again. Or reintegrate it.

Edited Code Add This Code

 -(void)BtnClick{ NSArray *permissions =[[NSArray arrayWithObjects: @"email", @"read_stream", @"user_birthday", @"user_about_me", @"publish_stream", @"offline_access", nil] retain]; Facebook *fb=[[Facebook alloc] initWithAppId:kappId]; [fb authorize:permissions andDelegate:self]; } - (void)fbDidLogin { NSMutableDictionary *params = [NSMutableDictionary dictionaryWithObjectsAndKeys:msg, @"message",nil]; [fb requestWithGraphPath:@"me/feed" andParams:params andHttpMethod:@"POST" andDelegate:self]; } 
0
source

Make sure the callback URL is checked correctly in the APP settings, this may be a problem with the URL.

0
source

You need to install this in your .plist file.

 <key>CFBundleURLTypes</key> <array> <dict> <key>CFBundleURLName</key> <string>000000000000000</string> <key>CFBundleURLSchemes</key> <array> <string>fb164798790305117</string> </array> </dict> </array> 

where 164798790305117 is your Facebook AppID and replace it with your AppID.

0
source

All Articles