Android Facebook Login and Webview [closed]
Android Facebook Login and Webview [closed]
I am using Facebook login sdk and implemented Facebook login button now i want to use this login session in custom Web-view and want to run Facebook in web-view. How can i do that?
Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.
1 Answer
1
we can do it by:
webView.loadUrl("https://m.facebook.com/");
where webView is the WebView in some fragment:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
tools:context="com.itsoft.am.worldpeople.web.WebSourceView">
<WebView
android:id="@+id/web_source_view"
android:layout_width="fill_parent"
android:layout_height="fill_parent" />
</LinearLayout>
Good luck )
I want to get login session/cookie!!
– Sarim Ahmed
Sep 15 '18 at 10:45