Facebook Easy Login in iOS

Maybe a blank URL

look the images

THE CODE

let APP_ID = MYID

let SECRET_KEY = MYKEY

let VERSION_NUM = "v1"



var backendless = Backendless.sharedInstance()



override func viewDidLoad() {

    super.viewDidLoad()

    

    backendless.initApp(APP_ID, secret:SECRET_KEY, version:VERSION_NUM)

    




    easyFacebookLogin()

    

    //logoutUserAsync()

}



   

func easyFacebookLogin() {

    

    backendless.userService.easyLoginWithFacebookFieldsMapping(

        ["email":"email"], permissions: ["email"],

        response: {(result : NSNumber!) -> () in

            print ("Result: \(result)")

        },

        error: { (fault : Fault!) -> () in

            print("Server reported an error: \(fault)")

    })

}

Please compare your facebook settings with the screenshots we have in the documentation. Make sure you didn’t miss anything there.

Looks like you didn’t make the item 3. of this doc:

http://support.backendless.com/public/attachments/8d56ef8727dafe932c6f901771cdd0a7.png</img>

Hi Fernando,

I just created a simple project with easy FB login, it works fine for me, I shared it. You can try it with my backendless app, then set your appId & secretKey and compare the results. Let me know how it works for you.

Regards,
Slava

Hello Vyacheslav , thanks for your help .

I made comparisons / corrections in my study .

I now have a browser screen displayed with null value.

Below printscreen screens .

Grateful

Captura de Tela 2016-05-04 às 11.25.22.png

Captura de Tela 2016-05-04 às 11.24.27.png

Fernando,

Does the popup with error occur when you try to login to FB?

It does not make sense since the screenshots show you have a valid user object.

Can you explain?

Mark

Hey Mark has the aforementioned tutorial been moved?
https://backendless.com/documentation/manage/mgmt_social_settings.htm

I’ve seen reference to it in a few doc locations, but the page I get a 404 for each of the links to it.

Hey @Erika_Chestnut

Here is link for Social Settings https://backendless.com/docs/ios/mgmt_social_settings.html

Regards, Vlad

1 Like