0

i developing a poster software, when i'm trying to post a link it give the following exception

facebook api exception #100-invalid

here's my code

 public static bool post(string accesstoken,string status,string link) {
        try
        {
            FacebookClient fb = new FacebookClient(accesstoken);

            Dictionary<string, object> postArgs = new Dictionary<string, object>();
            postArgs["message"] = status;
            if (link != "") {
                postArgs["link"] = link;
                MessageBox.Show(link);
            }
            fb.Post("/me/feed", postArgs);
            return true;
        }
        catch (Exception ex)
        {
            MessageBox.Show(ex.ToString());
            return false;
        }
    }
}
2
Contributors
2
Replies
11
Views
2 Years
Discussion Span
Last Post by mjbor1
0

What is the link you are trying to pass? I haven't used the FB SDK for awhile but I think I remember the link had to be acessible i.e. not behind a firewall or on your local machine for FB to accept it.
Apart from that, is the format of the link correct? No errors?

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.