title: C# Facebook app / post on site
body: <p>im very new with Facebook apps and read several threads for creating them, but I have some problems with it.
  First of all what I want to do: I want to create a web application that is able to post pictures, text and links on a facebook page that is managed by me.</p>
  
  <p>I used the Facebook C# SDK: <a href="https://github.com/facebook-csharp-sdk/facebook-csharp-sdk" rel="nofollow noreferrer">here!</a></p>
  
  <p>What I have:</p>
  
  <pre><code>string facebookPageId = "&lt;my page id&gt;";
  
  string app_id = "&lt;my app id&gt;";
  string app_secret = "&lt;my app secret&gt;";
  string scope = "publish_stream,manage_pages";
  
  var fb = new FacebookClient();
  
  dynamic res = fb.Get("oauth/access_token", new
  {
       client_id = app_id,
       client_secret = app_secret,
       grant_type = "client_credentials"
  });
  
  var access_token = res.access_token;
  
  dynamic messagePost = new ExpandoObject();
  messagePost.access_token = access_token;
  messagePost.link = "http://www.test.at";
  messagePost.name = "Testbot";
  messagePost.caption = "{*actor*} " + "hello this is a test"; 
  messagePost.description = "[SOME_DESCRIPTION]";
  
  FacebookClient app = new FacebookClient(access_token);
  app.AppId = app_id;
  app.AppSecret = app_secret;
  
  try
  {
       var result = app.Post("/hrechttest" + "/feed", messagePost);
  }
  catch (Exception e)
  {
  
  }
  </code></pre>
  
  <p>Well the code runs without any exceptions but in the output window I get the following:</p>
  
  <pre><code>Exception thrown: 'Facebook.FacebookOAuthException' in Facebook.dll
  </code></pre>
  
  <p>The next problem is:
  As I understood it you must link your facebook app with your facebook page, but when I want to do that I cant select the page:
  <a href="https://i.stack.imgur.com/Q6GtI.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Q6GtI.png" alt="enter image description here"></a></p>
  
  <p>So what I did wrong or missed?</p>