c# - How to WebBrowser post on my facebook wall? -
how webbrowser post on wall?
i using code, gets play text in textarea not post.
htmlelement ele = webbrowser1.document.getelementbyid("xhpc_message"); if (ele != null) ele.innertext = "hello word"; ele = webbrowser1.document.getelementbyid("post"); if (ele != null) ele.invokemember("click");
do need spend more parameter?
try this, assuming field, "xhpc_message" want post message:
dim inp htmlelement each inp in webbrowser1.document.getelementsbytagname("textarea") if inp.getattribute("name") = "xhpc_message" inp.setattribute("value", "your text") end if next
you need figure out name of submit button post form.
Comments
Post a Comment