Reputation: 65
Hy guys.... is there any way to load facebook inside a webview without the blue menu bar?
thanks !!
Upvotes: 0
Views: 409
Reputation: 8550
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.
Upvotes: 1