ios Facebook SDK v4.x access token null despite being logged in via FBSDKLoginButton

前端 未结 6 549
花落未央
花落未央 2021-01-04 12:34

My facebook access token is null despite the fact that the button shows that I\'m logged in. Anyone know why this would be?

From RootViewController.m



        
6条回答
  •  迷失自我
    2021-01-04 13:09

    You should use tokenString instead, like this:

    FBSDKAccessToken* access_token =[FBSDKAccessToken currentAccessToken].tokenString; NSLog(@"Access Token, %@",access_token);

提交回复
热议问题