2
我正在嘗試通過Parse進行Facebook登錄。當我授予應用程序權限時,彈出web視圖將變爲空白並掛起。我可以選擇點擊「完成」並關閉網絡視圖,但它不會登錄。我做錯了什麼?無法通過Facebook登錄。授予權限後的空白屏幕
import FBSDKCoreKit
import ParseFacebookUtilsV4
PFFacebookUtils.logInInBackgroundWithReadPermissions(["public_profile","email"]) {
(user: PFUser?, error: NSError?) -> Void in
if let user = user {
if user.isNew {
print("User signed up and logged in through Facebook!")
} else {
print("User logged in through Facebook!")
}
} else {
print("Uh oh. The user cancelled the Facebook login.")
}
}
我沒有收到任何錯誤消息。它只是掛在白色的屏幕上。