64
Views
16
Comments
Solved
[Social Login Mobile] There was an error signing in with Facebook
Question
social-login-mobile
Mobile icon
Forge asset by OutSystems
Application Type
Mobile

There was an error signing in with Facebook using social login mobile plugin 
Could you please some one help me on this?

2021-02-17 18-31-05
Alexandre Jacinto
Staff
Solution

Hi @Vignesh Varadhan ,

Thank you for your interest in our supported Social Login Mobile plugin.

Step 6 of this Facebook Login documentation page shows how to generate both the development and release key hash. 

Does this help?


Best regards,

Alexandre

2022-12-28 08-18-05
Nabil Kriden
Solution

If the error is only still occuring on the mobile app while working on the web. It means that the configs set in the social login configurator are not took into consideration. I think you are missing something or miss writing a certain config. We'll a have a call and I'll check that out.

2026-02-19 13-54-07
Joao Grilo

Hi @Vignesh Varadhan ,

If possible, could you be more clear on what error showed up in your screen?
That way people can check the error and help you more.

2022-12-28 08-18-05
Nabil Kriden

Hi @Vignesh Varadhan . Could you be more specific ?

UserImage.jpg
Vignesh Varadhan

Hi @Nabil Kriden and @Joao Grilo
I am using social login mobile plugin component and social login mobile demo module for to login via facebook 
I have attached an image. I get this error when i tried to login using Facebook.
In Extensibility configurations

{

    "plugin": {

        "url": "https://github.com/OutSystems/cordova-outsystems-sociallogins.git#1.0.3"

    },

    "metadata": {

        "mabs-min": "8.0.0",

        "name": "Social Logins Plugin", 

        "version": "3.0.3"

    }

}


Could you please help me on this?

Outsystems using Cordova
https://github.com/OutSystems/cordova-outsystems-sociallogins
In Reactive social login plugin working fine and authenticated success


Mobile issue error occur flow place




Screenshot_2023-01-20-07-51-23-74_2a8f12aeafe5ff932ea6b66750649eae.jpg
2022-12-28 08-18-05
Nabil Kriden

If you are using the social login configurator and only created configs for a web app, you should add configs for a mobile app. Also you should import the json file( obtained from the social login configurator) and choose Deploy Action: Deploy to target directory.
You can find detailed steps in this thread . It is mostly about Google Auth but it should be working fine. You should also create two apps on facebook. One for Web and One for Mobile( you won't find this in the thread).
I'm Assuming this because you said the login works on a the reactive app but not the mobile. 
Let me know if that helps.

UserImage.jpg
Vignesh Varadhan

Hi @Nabil Kriden
Good Morning

I created two apps configuration in social login configurator one for web and one for mobile
I import the json file( obtained from the social login configurator from the mobile app) and choose Deploy Action: Deploy to target directory --> Done
Now I got different error Login error
I have attached an image.

Screenshot_2023-01-20-16-19-33-67_a23b203fd3aafc6dcb84e438dda678b6.jpg
2022-12-28 08-18-05
Nabil Kriden

Hello,
Please provide me with your config file. Just change your app ids and credentials so I can take a look at it. Also just a reminder, are you mapping your users. When receiving the code from facebook in your OnAuthenticate block, are comparing the email returned by facebook to a one from your database? because that's not mentionned also in the documentation.

UserImage.jpg
Vignesh Varadhan

Thanks for your reponse.
I have pasted json config file
Could you please check and let me know

{"app_deeplink":{"url_scheme":"app245","url_host":"sociallogins","url_path":"/oauthcallback"},"app_configurations":[{"provider_id":"2","client_id":"246800374320059","client_secret":"7c1a969a972aa7acd6c3dc7c837f27d3","application_type_id":"3","client_token":"8851c2f84ad44619d4b0bd8729918b4b

","url_scheme":""}]}



In Reactive flow, Mapping users setup working success
In Mobile, will get error alone

2022-12-28 08-18-05
Nabil Kriden

The error occurs in mobile because it is the last step to do before mapping the users..Could you add the redirect uri after "url_scheme". "redirect_uri': "<yourenv>/SocialLoginConfigurator/rest/SocialLoginAuth/AuthenticateRedirectFacebook " and test it. 

UserImage.jpg
Vignesh Varadhan

Just change My app ids and credentials added redirect uri also
{"app_deeplink":{"url_scheme":"app245","url_host":"sociallogins","url_path":"/oauthcallback"},"app_configurations":[{"provider_id":"2","client_id":"246800374320059","client_secret":"246800374320059","application_type_id":"3","client_token":"246800374320059","url_scheme":"","redirect_uri":"https://Test-dev.outsystemscloud.com/SocialLoginConfigurator/rest/SocialLoginAuth/AuthenticateRedirectFacebook"}]}


Still same issue occur in mobile.
Is there any other way
Your help will be appreciated, Thanks in advance.



2022-12-28 08-18-05
Nabil Kriden
Solution

If the error is only still occuring on the mobile app while working on the web. It means that the configs set in the social login configurator are not took into consideration. I think you are missing something or miss writing a certain config. We'll a have a call and I'll check that out.

UserImage.jpg
Vignesh Varadhan

Hi Nabil
Good Morning
PFA  Android hash key error
Could you please check and let me know
Thanks

Screenshot_2023-01-23-20-22-43-86_a23b203fd3aafc6dcb84e438dda678b6.jpg
Screenshot_2023-01-23-20-26-09-63_a23b203fd3aafc6dcb84e438dda678b6.jpg
2021-02-17 18-31-05
Alexandre Jacinto
Staff
Solution

Hi @Vignesh Varadhan ,

Thank you for your interest in our supported Social Login Mobile plugin.

Step 6 of this Facebook Login documentation page shows how to generate both the development and release key hash. 

Does this help?


Best regards,

Alexandre

2023-01-19 15-05-03
Sirajeddine Bouasker

@Vignesh Varadhan 

If this is solved, please mark as solution the response that helped you so that other developer can see it.


Regards,

Sirajeddine

UserImage.jpg
Vignesh Varadhan

Hi Team,
Sorry for late reply due to some personal issue

@Nabil Kriden  and  @Alexandre Jacinto 

I tried what you suggest method and finally generate both the development and release key hash.
Now working as per expectation.

Thanks

2023-06-15 18-30-12
FRANK JOHNNY GANGUILHET

Thanks for the post and the solution!

2022-12-28 08-18-05
Nabil Kriden

@Vignesh Varadhan I hope I helped you. 
Thanks

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.