OAuth2 Facebook Login How To Assistance

Just wanted to check in and see if anyone would be able to help me out with the auto login process. I still have not been able to make it work. :frowning:

Hi Scott, what do you mean? What exactly happens and in which of the two cases - then/else?
I just tested this and it logs in and redirects perfectly fine.

Also why in the else and then steps you have repeat steps and some queryies and not just security provider + register/log in and redirect steps?

Your server action steps should just be:

@Teodor, in your setup, how do you define the values for the security login (username/password)? With the repeat, the values are able to be selected. Without the repeat, I am not able to select the values to be used.

Where do you select your values from?
They must come from your api action step…

This is what you use for logging users in.

@Teodor, thank you so much!

I figured out my error now by retracing my steps. I had a security restrict on my “is_user_logged_in” query and that is where the error was coming from. I feel so silly now… :frowning:

I had created the “is_user_logged_in” query a long time ago and included in my include header file which I rarely look at anymore.

There are many solutions in this thread so I am not sure which to mark as the best one. But I do want to thank everyone who provided assistance!

So, is everything working fine now?

I will make a tutorial out of the steps explained in this topic :slight_smile: will be useful for the other users wondering how to set up this in Wappler.

5 Likes

@Teodor,

Yes, everything is working perfect now! I was going to ask if you wanted to do a tutorial for this because I agree, it will be helpful for everyone who wants to integrate a Facebook login in addition to a regular login.

4 Likes

Please :pray: tutorial

1 Like

Yes please, a tutorial is a must!

1 Like

As i explained in my last post - I am working on this guys.

4 Likes

I need to log in to my app and can’t log in.

what url have to put here?

Waiting for the Teodor Tutorial :slight_smile:

this is very hard my god

https://graph.facebook.com/v4.0/me

1 Like

https://graph.facebook.com/v4.0/me is the URL that goes there.

Unable to load URL: The domain of this URL is not included in the application domains. Before you can load this URL, add all domains and subdomains to the App Domains field in the app settings.

I’m sorry, i don’t understand Portuguese.

Translation probably means that you do not have Valid OAuth Redirect URIs set properly? I am guessing because I can not copy and paste the image into google translate.

  1. Click on Facebook Login
  2. Click on Settings
  3. Enter the URIs in the Valid OAuth Redirect URIs field (make sure to include https)
1 Like

You can if you use Snagit to grab the image. Google translate comes up with:

Unable to load URL: The domain of this URL is not induced in the application domains. In order to load this URL. add all domains and subdomains to the App Domains field in the app settings

(which is sort of English)

1 Like

yes