Logging in to Remember Me in Not Working

I integrate Facebook login into my C # desktop application. I am using facebook login by opening the following url in webview.

https://www.facebook.com/dialog/oauth?client_id= & redirect_uri = https:% 2F% 2Fwww.facebook.com% 2Fconnect% 2Flogin_success.html & response_type = token &; display = popup & volume = email% 2Cuser_about_me% 2Cuser_birthday

The page opens and I can log in to Facebook successfully. However, the β€œKeep me logged in to” option does not work - every time I restart the C # application, I need to enter the password to log in again, even if I checked this parameter at the last login.

Interestingly, my email address is always remembered in the facebook login dialog, regardless of whether the Remember Me option is set or not. Consequently, facebook definitely knows who last logged in, but in fact it does not support a login session.

So can someone please advise what is wrong here?

Please do not:

  • In the settings of my facebook application, I made a public application
  • In configuring the oauth client, I enabled the OAuth Login / Web OAuth Login / Embedded Browser OAuthn Login client
  • I added WebSite as a platform, the site URL is http: // localhost /
  • The application has not yet been submitted for consideration. Could there be a problem?

enter image description here

Many thanks!

+6
source share
1 answer

The "keep me logged in" DEFINITELY using a cookie. You can investigate whether the underlying browser technology in the web view control is configured to save cookies when called within the application, and whether you can specifically save it to save cookies. From what I'm reading, the control uses Edge.

In the context of the context, it makes sense that the default behavior does NOT save cookies.

+5
source

All Articles