Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GraphRequest.start { connection, result, error } doesn't complete after the app is deauthorized from account #2336

Open
5 tasks done
iandis opened this issue Jan 23, 2024 · 0 comments

Comments

@iandis
Copy link

iandis commented Jan 23, 2024

Checklist before submitting a bug report

Xcode version

15.2

Facebook iOS SDK version

16.3.1

Dependency Manager

CocoaPods

SDK Framework

Login

Goals

I'm trying to get the error from GraphRequest.start { connection, result, error } when the app is deauthorized from a FB account. I tried to do the same on the Android SDK and it worked, this one didn't.

Note: I used the test app instead of the live one

Expected results

The method should complete with error

Actual results

The method doesn't complete until after a few more calls

Steps to reproduce

  1. Login using SDK with any FB account
  2. Call the GraphRequest.start
  3. Go to the FB account's settings -> Apps and websites -> Remove the app
  4. Call the GraphRequest.start again

Code samples & details

// login
loginManager.logIn(permissions: permissions, from: viewController, handler: { result, error in
            if error != nil {
                print("error")
            } else if result!.isCancelled{
                print("canceled")
            } else {
                print("success")
            }
        })

// graph request
GraphRequest(graphPath: "me", parameters: ["fields": fields]).start { connection, result, error  in
            if let result = result as? NSDictionary, error == nil {
                print("success")
            } else {
                print("error")
            }
        }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant