Ios `[FBSDKAccessToken currentAccessToken]`返回null

Ios `[FBSDKAccessToken currentAccessToken]`返回null,ios,facebook,xcode7,facebook-sdk-4.0,Ios,Facebook,Xcode7,Facebook Sdk 4.0,我遵循了Facebook提供的每一步,将其SDK集成到iOS中。我得到一个登录按钮,点击后,它会打开safari并询问Facebook凭据,但成功登录后,我在[FBSDKProfile currentProfile]中得到空值。第二次登录后,[FBSDKAccessToken currentAccessToken]返回null

我遵循了Facebook提供的每一步,将其SDK集成到iOS中。我得到一个登录按钮,点击后,它会打开safari并询问Facebook凭据,但成功登录后,我在
[FBSDKProfile currentProfile]
中得到空值。第二次登录后,
[FBSDKAccessToken currentAccessToken]
返回null