参数标签“(withReadPermission:, from:, handler:)”不匹配任何可用的重载

Argument labels '(withReadPermission:, from:, handler:)' do not match any available overloads

刚把一个工程转成Swift3,想不通出现下面的错误。而且我不知道消息的错误在哪里:

Argument labels '(withReadPermission:, from:, handler:)' do not match any available overloads

FBManager.shared.logIn(
    withReadPermission: ["public_profile", "email"],
    from: self,
    handler: { (result, error) in

        if (error == nil) {
            elf.fbLoginSuccess = true
        }

首先,您需要将 pods 更新为 swift 3+ 分支,因为它引入了参数标签 (_) ,并使用此

let facebookLogin = FBSDKLoginManager()

facebookLogin.logIn(withReadPermissions: ["public_profile","email", "user_friends"], from:self, handler:
{

      (facebookResult, facebookError) -> Void in
})