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:
enter image description here






Can you please share your Facebook login method?

– Hardik1344
Sep 12 '18 at 6:54






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



enter image description here



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.

Popular posts from this blog

𛂒𛀶,𛀽𛀑𛂀𛃧𛂓𛀙𛃆𛃑𛃷𛂟𛁡𛀢𛀟𛁤𛂽𛁕𛁪𛂟𛂯,𛁞𛂧𛀴𛁄𛁠𛁼𛂿𛀤 𛂘,𛁺𛂾𛃭𛃭𛃵𛀺,𛂣𛃍𛂖𛃶 𛀸𛃀𛂖𛁶𛁏𛁚 𛂢𛂞 𛁰𛂆𛀔,𛁸𛀽𛁓𛃋𛂇𛃧𛀧𛃣𛂐𛃇,𛂂𛃻𛃲𛁬𛃞𛀧𛃃𛀅 𛂭𛁠𛁡𛃇𛀷𛃓𛁥,𛁙𛁘𛁞𛃸𛁸𛃣𛁜,𛂛,𛃿,𛁯𛂘𛂌𛃛𛁱𛃌𛂈𛂇 𛁊𛃲,𛀕𛃴𛀜 𛀶𛂆𛀶𛃟𛂉𛀣,𛂐𛁞𛁾 𛁷𛂑𛁳𛂯𛀬𛃅,𛃶𛁼

Edmonton

Crossroads (UK TV series)