From: asashour <asa...@ya...> - 2013-11-18 10:05:42
|
Hi, - You must subscribe to the list before posting - You can use FireBug (for FF), to see what is the HTML element used for Facebook link. - Please always post your complete case - Read http://htmlunit.sourceforge.net/submittingJSBugs.html Ahmed Phil wrote > Hi, I'm trying to post a link on my facebook wall. > > I use htmlunit to log in, move to the page, select the text box, set the > text and click on the button "POST" > but if the comment is a link(URL) it appears just a normal link instead of > a proper facebook link post with title, name a thumbnail etc. > > HtmlPage wall = client.getPage("https://www.facebook.com/"); > HtmlTextArea text = (HtmlTextArea) wall.getElementById(ID); > text.type("http://www.bbc.co.uk/news/health/"); > client.getOptions().setJavaScriptEnabled(false); > page = postButton.click(); > > Is there any solution to post a link properly? > > Thanks -- View this message in context: http://htmlunit.10904.n7.nabble.com/Htmlunit-Post-a-Link-on-Facebook-tp32231p32234.html Sent from the HtmlUnit - General mailing list archive at Nabble.com. |