title: Graph api, C# to share data from app to my wall
body: <p>i am trying to develop an app which can allow me to share  data on Facebook wall. </p>
  
  <p>For eg: consider the Facebook Canvasapp "Run with Friends". This is a canvas app using Python and Php.
  <a href="https://developers.facebook.com/docs/samples/" rel="nofollow">https://developers.facebook.com/docs/samples/</a>. I will be able to share data from this app to my wall./me</p>
  
  <p>Before doing this v need a access token. I was able to get the authorization, accesstoken using Graph api, Oauth2.0, C#, asp.net </p>
  
  <pre><code> public string AuthorizationLinkGet(bool bUserInfo, bool bFriends, bool bfeed, bool bPhotos, bool bEvents, bool bMessages)
      {
          string url = string.Format("{0}?client_id={1}&amp;redirect_uri={2}", AUTHORIZE, this.ConsumerKey, CALLBACK_URL);
          if (bUserInfo == true || bFriends == true || bfeed == true || bEvents == true || bPhotos == true || bMessages == true)
          {
              url += "&amp;scope=email";
  
              if (bUserInfo == true)
              {
                  url += ",user_about_me,user_interests,user_likes,user_location,user_notes,user_education_history,user_hometown";
              }
              if (bFriends == true)
              {
                  url += ",read_friendlists,user_groups";
              }
              if (bfeed == true)
              {
                  url += ",read_stream";
              }
              if (bEvents == true)
              {
                  url += ",user_events";
              }
              if (bEvents == true)
              {
                  url += ",user_photo_video_tags";
              }
              if (bMessages == true)
              {
                  url += ",read_mailbox";
              }
          }
          return url;
      }
  
   &lt;add key="APIKey" value="*************************"/&gt;
  &lt;add key="Secret" value="**********************"/&gt;
  </code></pre>
  
  <p>So now how do I be able to share data from the app onto my FB wall. 
  I've tried Sharekit but look like Sharekit is for mobile apps.</p>
  
  <pre><code>  public void AccessTokenGet(string authToken)
      {
          this.Token = authToken;
          string accessTokenUrl = string.Format("{0}?client_id={1}&amp;redirect_uri={2}&amp;client_secret={3}&amp;code={4}",
          ACCESS_TOKEN, this.ConsumerKey, CALLBACK_URL, this.ConsumerSecret, authToken);
  
          string response = WebRequest(Method.GET, accessTokenUrl, String.Empty);
  
          if (response.Length &gt; 0)
          {
              //Store the returned access_token
              NameValueCollection qs = HttpUtility.ParseQueryString(response);
  
              if (qs["access_token"] != null)
              {
                  this.Token = qs["access_token"];
              }
          }
      }
  </code></pre>
  
  <p>does any one know how to develop this canvas app in C# using Graph Api</p>
  
  <p>I have no idea abt all the curls and things in Php
  Also, I see people using REST, facebookservice, facebook SDK. Where would these fit it?</p>
  
  <p>Thanks</p>
  
  <p>Sun</p>