Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7635375
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T07:24:46+00:00 2026-05-31T07:24:46+00:00

I’ve having a desktop application (a little game) which must be able to post

  • 0

I’ve having a desktop application (a little game) which must be able to post comment on user’s wall. Like “X won the tournement against Y and Z”.

I’ve been reading anykind of documentation and Facebook API but I can’t figure out. I have understand the way to do it : with the access token then get the information of the user using the GraphAPI and then be able to post it on his wall.

But, all the examples and the documentation haven’t really help me, they are just a part of. Moreover, Facebook are changing the way to do it…so I confused.

So I would like to know how to really do it. I mean, the easiest way is find for me. That’s a really small application for a few people, kind of first test application.

Thanks for any clue!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T07:24:47+00:00Added an answer on May 31, 2026 at 7:24 am

    Finally,

    I made a real 360 turn by simply not using facebook SDK. Someone told me about how easy it was to post only using http requests! And with the help of another post (http://stackoverflow.com/questions/6024912/asp-net-post-to-facebook-wall)
    I figured out how to do this. Here’s my little simple code for doing that. Basicly, I used WPF to make a windows where the “user” would be able to connect to facebook and there’s also a textBox at the top for showing me things I want…token or web response…finally, I had 2 buttons : the first logs to facebook, the second one makes the post on facebook…there is the code in Window1.xaml.cs

    using System;
    using System.Text;
    using System.Windows;
    using System.Net;
    using System.IO;
    
    namespace HDI_WPF_WebBrowser_cs
    {
        /// <summary>
        /// Interaction logic for Window1.xaml
        /// </summary>
        public partial class Window1 : Window
        {
            public Window1()
            {
                InitializeComponent();
            }
            private void btnOnline_Click(object sender, RoutedEventArgs e)
            {
                //dont forget to change the appID
                webOutput.Navigate(new Uri("https://www.facebook.com/dialog/oauth?client_id=APPID&redirect_uri=https://www.facebook.com/connect/login_success.html&response_type=token"));
            }
    
            private void btnCustom_Click(object sender, RoutedEventArgs e)
            {
                string adresseWeb = webOutput.Source.ToString();
    
                string token = adresseWeb.Remove(0, adresseWeb.IndexOf("#access_token=") + 14);
    
                token = token.Remove(token.IndexOf("&expire"));
    
                txtInput.Text = token;
                //dont forget to change the userID
                var url = string.Format("https://graph.facebook.com/USERID/feed?access_token=" + token);
    
                var req = WebRequest.Create(url);
                req.Method = "POST";
                req.ContentType = "application/x-www-form-urlencoded";
    
                string postData = "'access_token='" + token 
                                + "'&message=Testing testing";
    
                byte[] byteArray = Encoding.UTF8.GetBytes(postData);
                var stream = req.GetRequestStream();
                stream.Write(byteArray, 0, byteArray.Length);
                stream.Close();
    
                WebResponse response = req.GetResponse();
                txtInput.Text = ((HttpWebResponse)response).StatusDescription;
                stream = response.GetResponseStream();
                StreamReader reader = new StreamReader(stream);            
            }
        }
    }
    

    and the Window1.xaml, for the WPF

    <Window x:Class="HDI_WPF_WebBrowser_cs.Window1"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Window1" Height="500" Width="600">
        <Grid>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="*" />
                <ColumnDefinition Width="2*" />
            </Grid.ColumnDefinitions>
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto" />
                <RowDefinition Height="*" />
                <RowDefinition Height="Auto" />
            </Grid.RowDefinitions>
            <TextBlock Grid.Column="0" Grid.Row="0" Text="Input:" HorizontalAlignment="Right" />
            <TextBox x:Name="txtInput" Background="Bisque" Grid.Row="0" Grid.Column="1" />
            <WebBrowser x:Name="webOutput" Grid.Row="1" Grid.ColumnSpan="2" />
            <StackPanel Grid.Row="2" Grid.ColumnSpan="2" Orientation="Horizontal">
                <Button x:Name="btnOnline" Content="Load Online" Click="btnOnline_Click" />
                <Button x:Name="btnCustom" Content="Load Custom" Click="btnCustom_Click" />
            </StackPanel>
        </Grid>
    </Window>
    

    all you have to do is creating a new WPF prodjet and write those lines in the files. Also you must change the appID and the userID. I used mine to test but it’s really simple to code for danamicly find the userID.

    I hope it helps you even if it isn’t a solution using facebookSDK

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I would like to run a str_replace or preg_replace which looks for certain words
I would like to count the length of a string with PHP. The string
For some reason, after submitting a string like this Jack’s Spindle from a text
I am trying to understand how to use SyndicationItem to display feed which is
I used javascript for loading a picture on my website depending on which small
I've got a string that has curly quotes in it. I'd like to replace
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
We're building an app, our first using Rails 3, and we're having to build

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.