Follow Twitter user using ASPSnippets TwitterAPI in ASP.Net

Last Reply 4 months ago By dharmendr

Posted 4 months ago

Hi,

I have been authorised but how do I follow a user?

I tried this:

twitter.FollowTwitterUser("@ASPSnippets")

But it does not seem to work?

 

You are viewing reply posted by: dharmendr 4 months ago.
Posted 4 months ago

After succcessfully authenticated use below code to follow user.

protected void Follow(object sender, EventArgs e)
{
    TwitterConnect twitter = new TwitterConnect();
    DataTable dt = twitter.FollowTwitterUser("@ASPSnippets");
    // Get details.
    gvDetails.DataSource = dt;
    gvDetails.DataBind();
}