cookies required in FBConnect in android?

2019-08-13 23:52发布

In My FBLoginActivity there is a error message "cookies required" with yellow background has shown. how to remove it or how can i rectify it?

1条回答
放我归山
2楼-- · 2019-08-14 00:29

Try

 WebSettings settings = webView.getSettings();
            settings.setJavaScriptEnabled(true);
            settings.setSaveFormData(false);
            settings.setSavePassword(false);
            CookieManager cookieManager = CookieManager.getInstance()
            CookieSyncManager.getInstance().sync();
            cookieManager.setAcceptCookie(true);

put breakpoints and see if you have cookies

查看更多
登录 后发表回答