Monday, May 13, 2024
HomeiOS DevelopmentFb iOS SDK v17.0 error: In case you are not utilizing Restricted...

Fb iOS SDK v17.0 error: In case you are not utilizing Restricted Login, you have to to deal with all Graph API calls utilizing Graph API


We now have been utilizing Fb login in our app since perpetually and this has at all times labored nicely.

We now have upgraded to the SDK v.17 and have modified the code to make use of restricted login into our app.
Once we open the Fb login display, we’re at all times getting this warning:

“In case you are not utilizing Restricted Login, you have to to deal with all Graph
API calls utilizing Graph API, iOS. The entry token is not going to be legitimate. To
be taught extra about adjustments to the Fb SDK for iOS and how one can
proceed utilizing the Fb Login SDK, go to the weblog.”

enter image description here

That is unusual, as a result of as you may see within the screenshot it does go to restricted.fb.com…

We now have applied it as per the documentation, here’s a code snippet with the related traces of code:

     let facebookManager = LoginManager()
 guard let configuration = LoginConfiguration(permissions: ["email", "public_profile"], monitoring: .restricted, nonce: UUID().uuidString)
else {
    return
}        
facebookManager.logIn(configuration: configuration) { [self] lead to
    change end result {
    case .cancelled:
           // throw cancelled
    case .failed:
           // throw failed
    case .success:
        if let token = AuthenticationToken.present?.tokenString {
           // ship token to server
        } else {
           // throw no token error
        }
    }
}

Why can we get the warning on the Fb Login web page? Aside from the above, is there the rest weI want to alter to make use of restricted login? What are we lacking right here? Additionally the token we get again would not appear to be legitimate (but to be confirmed).



Supply hyperlink

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments