Post to a fan page using WebBrowser

1

I'm making an application to post on my fan pages, I'm already logging in, ready the fan pages, that's all right.

I just can not put the text in the facebook text box.

Look here:

<div data-block="true" data-offset-key="72l55-0-0" class="_209g _2vxa">
<span data-offset-key="72l55-0-0">
    <span data-text="true">Preciso colocar o texto aqui!!!</span>
</span>

HtmlElementCollection items = webBrowser1.Document.GetElementsByTagName("div");
foreach (HtmlElement item in items)
{
    if (item.GetAttribute("classname") == "_209g _2vxa")
    {
        item.InnerText = "oiii " + DateTime.Now;
        item.InvokeMember("click");
        //SendKeys.Send("{ENTER}");
    }
}
    
asked by anonymous 24.06.2016 / 22:04

0 answers