Backendless Support
 
Need Answer

Login for Facebook Setup guide update?

While stepping through the directions to set up Facebook login, I can't see the OAuth steps in the Facebook dashboard for my app. Is the setup guide still up to date on the Backendless site?

Thanks in advance for your help!

Josh

Leave a Comment

Comments (11)

photo
1

Hi, Joshua.

Which documentation do you use?

Here about Login with FacebookSDK and Backendless: https://backendless.com/documentation/users/android/users_facebook_login.htm#login-with-sdk

Which step in our documentation lead to difficulties?

Did you read official doc on facebook? (https://developers.facebook.com/docs/android/getting-started.)

photo
1

On this page:

https://backendless.com/documentation/manage/mgmt_social_settings.htm

under Facebook login, steps 7 and 8 seem to not appear in the FB portal anymore.

Thanks!

Josh

photo
1

Thanks. We'll check it on our app and write here.

photo
1

I'll check. Everything is in place.

Please, check again.

On the left side of dashboard of you app look at the Products section, and here should be "Facebook Login".

photo
1

so - in the dashboard for your app at developer.facebook.com, you see OAuth as a field for Settings->Advanced? This is the pane I'm in (attached) - and there is nothing with OAuth mentioned at all. This is also using Facebook's 2.8 API. Could that be something causing a difference?

photo
1

No. Not here.

I have written above that this section is situated in Products section (in the bottom of the dashboard on your screenshot).

If you have none of it, just add this product.

photo
1

OK - even without the OAuth setting, I'm getting easy FB login to succeed. However, the AppDelegate method to handle the URL never gets called (step 4 in the easy FB implementation). However, the method:

  1. func application(_ app: UIApplication, open url: URL, options: [UIApplicationOpenURLOptionsKey : Any] = [:]) -> Bool

in the AppDelegate DOES get called, but the web view that loaded the FB permissions does not dismiss (returning true from this method, or false, does not drop you back into the app).

Any ideas there? iOS 10 SDK with Swift 3.

Thanks!

Josh

photo
2

Hi Joshua

You can setup OAuth setting here http://take.ms/4iNJr

Regards Vlad

photo
1

There it is! OK - there are two steps missing in the official guide then - You need to add a product first, then you have the settings available as mentioned above.

Thanks!

37c279f8429faecfb098a3ef71cb90f3

22a914fda8d1b00e687017d0e872c5b4

photo
2

Thanks you!

We will update our docs asap

Regards, Vlad

photo
photo
1

For my second problem (with the AppDelegate delegate methods) - this finally got me back into the app:

  1. func application(_ app: UIApplication, open url: URL, options: [UIApplicationOpenURLOptionsKey : Any] = [:]) -> Bool {

    let backendless = Backendless.sharedInstance()

    if let user = backendless?.userService.handleOpen(url) as? BackendlessUser {

    print("AppDelegate -> application:openURL: user = \(user)")

    // do something, call some ViewController method, for example

    self.window?.rootViewController?.dismiss(animated: true, completion: {

    })

    return true

    }

    return false

    }