[英]Facebook AccessToken returns nil
I can no longer sign-in-with-Facebook
inside my app as AcessToken
return nil...由于
AcessToken
返回 nil,我无法再在我的应用程序中sign-in-with-Facebook
...
Here is my function
:这是我的
function
:
let accessToken = AccessToken.current
guard let accessTokenString = accessToken?.tokenString else {
print("bruh")
return
}
It currently prints
the "bruh".它目前
prints
“bruh”。
It was working the other days!前几天还在工作!
I didn't change anything inside that file.我没有更改该文件中的任何内容。 But I changed the Project Name and the Bundle Identifier .
但是我更改了Project Name和Bundle Identifier 。 Could this have anything to do with the error?
这可能与错误有关吗?
UPDATE: I deleted the old Facebook-Project and created a new one with the correct Bundle-ID
.更新:我删除了旧的 Facebook-Project 并创建了一个具有正确
Bundle-ID
的新项目。 I also changed the ID and Secret Token inside Firebase.我还更改了 Firebase 中的ID和Secret Token 。
Is there anything else I need to do???还有什么我需要做的吗??? really annoying ... Is there maybe a way to show an error to see what the actual problem is?
真的很烦人......有没有办法显示错误以查看实际问题是什么?
It seems to be about changing of Bundle Identifier
,这似乎是关于更改
Bundle Identifier
,
You should set the new one on https://developers.facebook.com/您应该在https://developers.facebook.com/上设置新的
I fixed the issue!我解决了这个问题! The problem was that I had the old ID inside my
info.plist
问题是我的
info.plist
有旧ID
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.