Facebook sdk - error: http status code 400

So, I'm trying to get facebook to work with my new application, and I just can't figure it out. I got everything that was done in the training document on their website. And when I start the application, I get "Error: HTTP status code 400"; and nothing more. I read throughout that this is a server error on facebook, but seriously? Does this work for some people?

This is my code anyway:

FBSession* pFacebookSession = [[FBSession alloc] init]; [FBSession setActiveSession: pFacebookSession]; if (FBSession.activeSession.state == FBSessionStateCreatedTokenLoaded) { NSLog(@"openWithCompletionHandler start."); [FBSession.activeSession openWithCompletionHandler:^(FBSession *session, FBSessionState status, NSError *error) { NSLog(@"openWithCompletionHandler FINISHED!"); }]; } 

not sure if this is exactly what it should look like.

+4
source share

Source: https://habr.com/ru/post/1444832/


All Articles