I’m trying to implement social login with google and Facebook into my website , i followed the instructions on Social and OAuth2 Logins - Backendless REST API Documentation
i did all the developer account settings, but when making the request i am getting error message:
const res = await fetch(
“https://sageaddition.backendless.app/api/users/oauth/facebook/request_url”,
{
headers: {
Accept: "application/json",
"Content-Type": "application/json",
},
}
i get the error: GET https://sageaddition.backendless.app/api/users/oauth/facebook/request_url 404 (Not Found)
and for Oauth 2.0 login api:
const res = await fetch(
“https://sageaddition.backendless.app/api/users/oauth/facebook/login”,
{
method: “POST”,
headers: {
Accept: "application/json",
"Content-Type": "application/json",
},
}
POST https://sageaddition.backendless.app/api/users/oauth/facebook/login 400 (Bad Request)
so what is wrong with my code and how can i fix it?