Facing issues during login with facebook
Facing issues during login with facebook
I implemented login functionality with Facebook in swift environment. I got success with redirection on Facebook page or Application. After that I am facing issues like "Invalid Scope:Profile".
Does any one having idea. Please let me know.
Thanks in advance.
Problem is:
please share code, using screenshot how one can identify issue?
– Hardik Thakkar
Sep 12 '18 at 7:07
I am sorry for that ,Company's policy is we can not share a single line of code.
– user7018875
Sep 12 '18 at 7:20
1 Answer
1
Follow this
1) You should add this code on your login with Facebook method
let fbLoginManager : FBSDKLoginManager = FBSDKLoginManager()
fbLoginManager.logIn(withReadPermissions: ["email"], from: self) (result, error) in
if (error == nil)
let fbloginresult : FBSDKLoginManagerLoginResult = result!
if fbloginresult.grantedPermissions != nil
if(fbloginresult.grantedPermissions.contains("email"))
self.getFBUserData()
fbLoginManager.logOut()
2) Make sure your Keychain Sharing must be on
Hope these will helpful to you.Thanks
Let me check I will let you know thanks
– user7018875
Sep 12 '18 at 7:00
Thank you so much @hd1344 . It is working fine and now I am able to get login and fetch the user data from the Facebook. This answer is perfect for me thanks again.
– user7018875
Sep 12 '18 at 7:21
Thanks for contributing an answer to Stack Overflow!
But avoid …
To learn more, see our tips on writing great answers.
Required, but never shown
Required, but never shown
By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.
Can you please share your Facebook login method?
– Hardik1344
Sep 12 '18 at 6:54