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

  • SEARCH
  • Home
  • 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 7490399
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T15:35:51+00:00 2026-05-29T15:35:51+00:00

Hi Im writing an app that allows users to post status updates from within

  • 0

Hi Im writing an app that allows users to post status updates from within the application, I believe that ive got the authentication working correctly for the login, I just dont know how to go about posting a status update. Any code/examples/tutorials of how to go about doing this would be fantastic, here is the code that I have so far for the authentication.

public partial class FacebookAuth : PhoneApplicationPage
        {
            private string _accessToken;
            private WebBrowser _webBrowser;

            public FacebookAuth()
            {
                InitializeComponent();
                _webBrowser = new WebBrowser();
                this.Loaded += new RoutedEventHandler(FacebookAuthPage_Loaded);
            }

            void FacebookAuthPage_Loaded(object sender, RoutedEventArgs e)
            {
                //Get this from the facebook
                string appId = "XXXXXXXXXXXXXXX";
                string[] extendedPermissions = new[] { "publish_stream", "offline_access", "user_groups" };

                var oauth = new FacebookOAuthClient { AppId = appId };
                //Telling the Facebook that we want token as response
                //and we are using touch enabled device
                var parameters = new Dictionary<string, object>
                        {
                            { "response_type", "token" },
                            { "display", "touch" }
                        };
                //If there's extended permissions build the string and set it up
                if (extendedPermissions != null && extendedPermissions.Length > 0)
                {
                    var scope = new StringBuilder();
                    scope.Append(string.Join(",", extendedPermissions));
                    parameters["scope"] = scope.ToString();
                }
                //Create the login url
                var loginUrl = oauth.GetLoginUrl(parameters);
                //Add webBrowser to the contentPanel
                ContentPanel.Children.Add(_webBrowser);
                _webBrowser.Navigated += webBrowser_Navigated;
                //Open the facebook login page into the browser
                _webBrowser.Navigate(loginUrl);
            }

            void webBrowser_Navigated(object sender, System.Windows.Navigation.NavigationEventArgs e)
            {
                FacebookOAuthResult result;
                //Try because there might be cases when user input wrong password
                if (FacebookOAuthResult.TryParse(e.Uri.AbsoluteUri, out result))
                {
                    if (result.IsSuccess)
                    {
                        _accessToken = result.AccessToken;
                        MessageBox.Show(_accessToken);
                        //Hide the browser controller
                        _webBrowser.Visibility = System.Windows.Visibility.Collapsed;
                    }
                    else
                    {
                        var errorDescription = result.ErrorDescription;
                        var errorReason = result.ErrorReason;
                        MessageBox.Show(errorReason + " " + errorDescription);
                    }
                }
            }

            private void PostBtn_Click(object sender, RoutedEventArgs e)
            {

            }
        }
    }
  • 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-29T15:35:53+00:00Added an answer on May 29, 2026 at 3:35 pm

    To publish a status, do an HTTP Post to /me/feed with a post parameter called “message” and it’s value being what the authenticate user posted.

    Using FacebookClient

    var client = new FacebookClient(user_access_token);
    dynamic parameters = new ExpandoObject();
    parameters.message = "Hello World!"
    dynamic post_id = client.Post("/me/feed", parameters);
    

    See also: http://blog.prabir.me/post/Facebook-CSharp-SDK-Making-Requests.aspx

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

Sidebar

Related Questions

I'm writing an application that allows users to upload photos from their camera roll
I'm writing an app that allows you to script the buttons from a wiimote
I am writing an app that allows the user to select from a list
I'm writing a web app that allows users to download large files over http
I'm writing a web and Android app that allows users to store and access
I'm writing a web application that allows users to upload documents importing them directly
I am writing an app that allows people to schedule things for certain times
I'm writing an app that supposed to copy a bunch of files from one
I'm writing a web app that at one point allows a user to upload
I'm writing a simple App Engine app. I have a simple page that allows

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.