Click here to Skip to main content
15,886,919 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hello
am tired
try to making code to post all facebook groups using windows desktop application
can any one help me
i write this code but it not send to any group
my class

C#
public static bool Postfr(string AccessToken, string Friendwall, string groupId, string Link = "")
        {

            try
            {
                FacebookClient fb = new FacebookClient(AccessToken);
                var obj = fb.Get(
"https://graph.facebook.com/ur_postid?access_token=ur_accesstoken");
                Dictionary<string, object> POST = new Dictionary<string, object>();
                POST["message"] = message;
                if (Link != "")
                {
                    POST["link"] = Link;
                }

                fb.Post("{group-id}/feed", POST);
                return true;

            }
            catch (Exception ex)
            {
                System.Windows.Forms.MessageBox.Show(ex.Message);
                return true;

            }

        }
Posted
Comments
Afzaal Ahmad Zeeshan 1-Feb-15 14:40pm    
What actually is the problem that is occuring?
Member 11318198 1-Feb-15 15:25pm    
The problem is that it did not send any publication through the wall of the groups with the knowledge that I have used the application that
If there class ready to use, because look for this problem two weeks ago and no one helps

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900