简体   繁体   English

带有Swift / Xcode beta 5的iOS 8中的Facebook SDK在更新后返回accessToken但没有userID

[英]Facebook SDK in iOS 8 with Swift/Xcode beta 5 returning accessToken but no userID after update

After updating my project and setup to iOS 8 / Swift / Xcode beta 5, the Facebook iOS SDK no longer returns a userID from accessTokenData.userID when the Facebook App is installed (it is nil). 将我的项目更新并设置为iOS 8 / Swift / Xcode beta 5之后,Facebook iOS SDK在安装了Facebook App时(不再是nil)不再从accessTokenData.userID返回userID This is happening when the state changes to FBSessionStateOpen . 当状态更改为FBSessionStateOpen时,就会发生这种情况。 accessTokenData.accessToken does returns a value, and I'm fairly sure that access token is the same as the access token that the browser returns after I try signing in when the Facebook App is deleted. accessTokenData.accessToken 确实会返回一个值,并且我相当确定访问令牌与尝试删除Facebook App时登录后浏览器返回的访问令牌相同。 Everything works fine if I sign in with the browser, same account and everything. 如果我使用浏览器,相同的帐户以及其他所有功能登录,则一切正常。

Is this something that is on my end, or is it the Facebook iOS SDK not working anymore with the current status of the beta? 这是我的事吗,还是Facebook iOS SDK在Beta的当前状态下不再起作用? And if so, should I ignore the issue above and continue development by only logging in through Safari, then revisit the issue when Facebook releases their official iOS 8 SDK update? 如果是这样,我是否应该忽略上述问题,仅通过Safari登录来继续开发,然后在Facebook发布其官方iOS 8 SDK更新时重新访问该问题? I've noticed that they were putting out weekly updates, but now they have not updated for a month. 我注意到他们每周发布一次更新,但是现在他们一个月都没有更新了。

更新到这个分叉的Facebook iOS SDK解决了我的问题,似乎已经解决了另一个问题: xcode beta 3 swift和FBLoginViewDelegate

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM