Hy guys…. is there any way to load facebook inside a webview without the blue menu bar?
thanks !!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
First this seems a bad idea. Might even be against their TOS. This is what the Facebook api is for.
Let us know what you want to achieve, there maybe a better way to do what you are after (Using facebook api for example ?)
Actual answer
The facebook page needs your user to be logged in. Once that is achieved, simply load the page in a httpclient or get the html using the infamous javascript hack( how to get html content from a webview? ). Then parse the html, remove what you feel is unnecessary for your use and load this in the webview using loadData.
You will have to intercept shouldoverrideurlloading from your WebView’s WebViewClient to make sure you catch every page changes and scrape your html accordingly.
Again sounds like a difficult to achieve bad idea in general.