Skip to content

Unable to sign in with facebook on iOS #1684

@kashif789us

Description

@kashif789us

Hello guys. I have parse server running on aws beanstalk and mlab is used for mongodb. I am unable to sign in using facebook.

I am using SWIFT, here is the code snippet I am using

           PFFacebookUtils.logInInBackgroundWithReadPermissions(["public_profile","email"]) {
            (user: PFUser?, error: NSError?) -> Void in
            if let user = user {
                if user.isNew {
                    print("User signed up and logged in through Facebook!")
                }
                else {
                    print("User logged in through Facebook!")
                }
            }
            else {
                print("Uh oh. The user cancelled the Facebook login.")
            }

I am getting both user and error nil. I googled it and found 2 things.

  1. Add facebookAppIds : ['fbAppId'] to my index.js and I did
  2. Add Environmental variable FACEBOOK_APP_ID and I did

Still I am facing the same issue. How to fix it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions