'Enable desktop site by default in custom tab

I'm developing one application. I'm using custom tab for Login via Facebook for oculus quest. if I use WebView with desktop user agent Facebook login will not work. if I use custom tab with desktop mode enable everything will work properly. I'm stuck now. because I'm not able to enable desktop mode by default in custom tab. even I can't use WebView also.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source