Support Topics Documentation Slack YouTube Blog

Login for Facebook Setup guide update?


(Joshua Parmenter) #1

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


(Oleg Vyalyh) #2

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.)


(Joshua Parmenter) #3

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


(Oleg Vyalyh) #4

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


(Oleg Vyalyh) #5

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”.


(Joshua Parmenter) #6

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?


(Oleg Vyalyh) #7

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.


(Joshua Parmenter) #8

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:

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


(Vladimir Upirov) #9

Hi Joshua

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

Regards Vlad


(Joshua Parmenter) #10

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!
http://support.backendless.com/public/attachments/37c279f8429faecfb098a3ef71cb90f3.png</img>
http://support.backendless.com/public/attachments/22a914fda8d1b00e687017d0e872c5b4.png</img>


(Vladimir Upirov) #11

Thanks you!

We will update our docs asap

Regards, Vlad


(Joshua Parmenter) #12

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

    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

    }


(SnakeEyes) #13

You might need to update the documents as it still does not refer to products. I had to search support to find how