Click here to Skip to main content
15,890,282 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I am trying to post links to my facebook page from a website using facebook client and graph api, the link is posted successfully, but it's only me that can see the posted link, i have set visibility property on facebook to public, yet other user can't see the posted link, This is my code:

What I have tried:

private void PostToPage(string postLink)
    {
        dynamic messagePost = new ExpandoObject();
        messagePost.link = postLink;
        string acccessToken = "Removed";
        FacebookClient appp = new FacebookClient(acccessToken);
        try
        {
            var postId = appp.Post("Removed" + "/feed", messagePost);
        }
        catch (FacebookOAuthException ex)
        {
            ViewBag.DisplayMessage = "Info";
            ModelState.AddModelError("", ex.Message + "failed to post link to facebook page.");
        }
        catch (WebExceptionWrapper ex)
        {
            ViewBag.DisplayMessage = "Info";
            ModelState.AddModelError("", ex.Message + "failed to post link to facebook page.");
        }
    }



any useful info on how to make it show to everyone will be appreciated
Posted

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