Notalib / nativescript-webview-ext

Nativescript plugin with extended WebView functionality
Apache License 2.0
76 stars 37 forks source link

Logging into this app with facebook is not available at this time #122

Closed OlegYakub closed 3 years ago

OlegYakub commented 3 years ago

Hi there, I use webview to make application based on website. And I have facebook login which work fine on mobile browsers but not in webview. When I try to login this error appears:

Monosnap File 2021-05-28 18-46-05

If anyone got kind of this please help. Thanks

OlegYakub commented 3 years ago

I found a solution for my case. I replaced following string in my user agent - (Linux; Android 10; Android SDK built for x86 Build/QPP4.190502.018; wv) with this one - (Windows Mobile; Opera Mini/5.1.21594/28.2725; U; en) So I did setUserAgentString("Mozilla/5.0 (Windows Mobile; Opera Mini/5.1.21594/28.2725; U; en) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.149 Mobile Safari/537.36") and everything works fine.