You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Requests user's permission to reathorize application's data access, after it has expired due to inactivity.
@param viewController the view controller from which to present the login UI. If nil, the topmost view
controller will be automatically determined and used.
@param handler the callback.
Use this method when you need to reathorize your app's access to user data via the Graph API.
You should only call this after access has expired.
You should provide as much context to the user as possible as to why you need to reauthorize the access, the
scope of access being reathorized, and what added value your app provides when the access is reathorized.
You can inspect the `result.declinedPermissions` to determine if you should provide more information to the
user based on any declined permissions.
@warning This method will reauthorize using a `LoginConfiguration` with `FBSDKLoginTracking` set to `.enabled`.
@warning This method will present UI the user. You typically should call this if `AccessToken.isDataAccessExpired`
is true.
*/
@objc(reauthorizeDataAccess:handler:)
publicfunc reauthorizeDataAccess(
from viewController:UIViewController,
handler:@escapingLoginManagerLoginResultBlock
){
Note specifically "@param viewController the view controller from which to present the login UI. If nil, the topmost view controller will be automatically determined and used.")
Also note that commonLogin and login methods both handle the nil arg just fine
The text was updated successfully, but these errors were encountered:
Checklist before submitting a bug report
Xcode version
16.0
Facebook iOS SDK version
17.1.0
Dependency Manager
CocoaPods
SDK Framework
Login
Goals
I would like to pass a nil ViewController argument to the
reauthorizeDataAccess
method, as documentedExpected results
no Xcode warnings when passing nil argument
Actual results
warning that the argument is non-nil, despite all underlying methods being written to handle nil ViewController
Steps to reproduce
Open FBSDKLoginKit in Xcode and check the docs for reauthorizeDataAccess vs the parameter nullability annotation
Code samples & details
facebook-ios-sdk/FBSDKLoginKit/FBSDKLoginKit/LoginManager.swift
Lines 287 to 308 in 629eb6f
Note specifically "@param viewController the view controller from which to present the login UI. If nil, the topmost view controller will be automatically determined and used.")
Also note that commonLogin and login methods both handle the nil arg just fine
The text was updated successfully, but these errors were encountered: