Skip to main content

Facebook - How to post topic in facebook using FacebookClient

Facebook - Use the following method to feed a post on facebook using FacebookClient api in C#


public bool PostOnWall(IDictionary<string, object> Parameters,string AccessToken)
{
    if (Parameters.Keys.Count > 0)
    try
    {
         FacebookClient fbClient = new FacebookClient(AccessToken);
         fbClient.Post("/me/feed", Parameters);
         return true;
    }
    catch { }
    return false;
}

Comments