# Weweb xano Facebook Oauth

**URL:** <https://community.weweb.io/t/weweb-xano-facebook-oauth/9665>\
**Category:** Ask us anything\
**Created:** [July 10, 2024, 10:00pm UTC](https://community.weweb.io/t/weweb-xano-facebook-oauth/9665 "2024-07-10T22:00:42Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kkluz](https://avatars.discourse-cdn.com/v4/letter/k/a9a28c/32.png) [@Kkluz](https://community.weweb.io/u/Kkluz)\
**Post date:** [July 10, 2024, 10:00pm UTC](https://community.weweb.io/t/weweb-xano-facebook-oauth/9665/1 "2024-07-10T22:00:43Z")

</div>

Hi~ I am running into trouble using the Xano facebook Oauth in Weweb. I managed to get the Xano facebook Oauth to work, creating a user in my Xano backend.

1: A button to call for facebook\_init from Xano, retrieving a fb\_oauth link. Then I stored the link into a variable i created.

 ![fb_login](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/9/9d9cfc089294ccf3ed0b72ae68855922c1588740.png)

2: Next I created another button in a modal that opens this fb\_oauth link that I retrieved from step 1.

 ![fb_oauth_link](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/a/ab0307836afb34f00b2443c0bfccfbdc9240dd0f.png)

3: On my page as the redirect\_uri, on page load, it will trigger facebook\_continue function that adds the user to my Xano backend and it returns an authentication token.

 ![fb_continue](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/e/ec148f739cf779008fead63de58ba7c76a47ea4f.png)

The problem I am running into is it seems that the user is now logged into my Xano backend but not logged into Weweb. I am not sure if it has to do with the Xano auth plugin which only allows users to log in Only with using the Login Endpoint and not with Facebook Oauth?

![Xano_auth](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/d/d1fee0c282751bbabf5ba5eb7a038e4078abfe68.png)

Is there a way to log in users in Weweb after it triggers Facebook\_continue function? Or am I doing something wrong or missing a step? Thank you for your patience in reading this.

---

<div class="post-metadata">

**Author:** ![jptrinh](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/jptrinh/32/1493_2.png) [@jptrinh](https://community.weweb.io/u/jptrinh)\
**Post date:** [July 15, 2024, 9:31pm UTC](https://community.weweb.io/t/weweb-xano-facebook-oauth/9665/2 "2024-07-15T21:31:54Z")

</div>

Hi @Kkluz 🙂  
Before going futher, did you check the [User doc to implement OAuth with the Xano plugin](https://docs.weweb.io/plugins/auth-systems/xano-auth.html#oauth-social-sign-in)?

---

<div class="post-metadata">

**Author:** ![Kkluz](https://avatars.discourse-cdn.com/v4/letter/k/a9a28c/32.png) [@Kkluz](https://community.weweb.io/u/Kkluz)\
**Post date:** [July 18, 2024, 5:30am UTC](https://community.weweb.io/t/weweb-xano-facebook-oauth/9665/4 "2024-07-18T05:30:58Z")

</div>

Hi~ I’ve watched and followed the video tutorial for Google Oauth. However I receive the same outcome using the Login provider method. Everything seems to be the same as the tutorial video, except the part that I don’t seem to be logged in on Weweb.

Basically after I click on the Login provider button, I was redirected to google, logged in, then redirected back to my post-login page and finally redirected back to my home page. But when I checked my login status, I don’t think I am logged into Weweb.

![auth status](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/1/116819d6e917fd3f1af64a553a04efd227cd1248.png)

---

<div class="post-metadata">

**Author:** ![Kkluz](https://avatars.discourse-cdn.com/v4/letter/k/a9a28c/32.png) [@Kkluz](https://community.weweb.io/u/Kkluz)\
**Post date:** [July 19, 2024, 8:37pm UTC](https://community.weweb.io/t/weweb-xano-facebook-oauth/9665/5 "2024-07-19T20:37:28Z")

</div>

Anyway, I reverted to my initial method doing it manually since I can’t find a way to make it work with the Login provider method. At least from following the docs and tutorial clip I fail to pass the auth token and fetch user data back to my page, so the user remain unauthorized.

I managed to do it manually and stored the auth token and fetched the user. Thanks for your time reading my post.
