There was an error signing in with Facebook using social login mobile plugin Could you please some one help me on this?
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
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.
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.
Hi @Vignesh Varadhan . Could you be more specific ?
Hi @Nabil Kriden and @Joao GriloI 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 Cordovahttps://github.com/OutSystems/cordova-outsystems-socialloginsIn Reactive social login plugin working fine and authenticated success
Mobile issue error occur flow place
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.
Hi @Nabil KridenGood Morning
I created two apps configuration in social login configurator one for web and one for mobileI import the json file( obtained from the social login configurator from the mobile app) and choose Deploy Action: Deploy to target directory --> DoneNow I got different error Login errorI have attached an image.
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.
Thanks for your reponse.I have pasted json config fileCould 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 successIn Mobile, will get error alone
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.
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 wayYour help will be appreciated, Thanks in advance.
Hi NabilGood MorningPFA Android hash key errorCould you please check and let me knowThanks
@Vignesh Varadhan
If this is solved, please mark as solution the response that helped you so that other developer can see it.
Regards,
Sirajeddine
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
Thanks for the post and the solution!
@Vignesh Varadhan I hope I helped you. Thanks