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 6186207
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T01:50:49+00:00 2026-05-24T01:50:49+00:00

I need to publish a post on my application profile page as an application

  • 0

I need to publish a post on my application profile page as an application not as a user here is the code :

 var fb = new FacebookOAuthClient(FacebookApplication.Current);
            dynamic resultt = fb.GetApplicationAccessToken();
            var appAccessToken = resultt.access_token;
            dynamic messagePost = new ExpandoObject();
            messagePost.access_token = appAccessToken;
            messagePost.picture = "";
            messagePost.link = "";
            messagePost.name = "[SOME_NAME]";
            messagePost.caption = "{*actor*} " + "[YOUR_MESSAGE]"; //<---{*actor*} is the user (i.e.: Aaron)
            messagePost.description = "[SOME_DESCRIPTION]";

            FacebookClient appp = new FacebookClient(appAccessToken);

            try
            {
                var result = appp.Post("/" + appId + "/feed", messagePost);
            }
            catch (FacebookOAuthException ex)
            {
                 //handle something
            }
            catch (FacebookApiException ex)
            {
                 //handle something else
            }

or
  var fb = new FacebookClient(appId, FacebookApplication.Current.AppSecret);
            var appAccessToken = fb.AccessToken;
  • 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-24T01:50:49+00:00Added an answer on May 24, 2026 at 1:50 am

    here is the code :

    var fb = new FacebookOAuthClient(FacebookApplication.Current);
                dynamic resultt = fb.GetApplicationAccessToken();
                var appAccessToken = resultt.access_token;
    
                dynamic messagePost = new ExpandoObject();
                messagePost.access_token = appAccessToken;
                messagePost.picture = "http://www.destination360.com/europe/sweden/images/s/sweden-visby.jpg";
                messagePost.link = "http://www.destination360.com/europe/sweden/images/s/sweden-visby.jpg";
                messagePost.name = "[SOME_NAME]";
                messagePost.caption = "{*actor*} " + "[YOUR_MESSAGE]";
                messagePost.description = "[SOME_DESCRIPTION]";
                messagePost.from = AppId;
                messagePost.to = "130736200342432";
                FacebookClient appp = new FacebookClient(appAccessToken);
                var result = appp.Post("/" + AppId + "/feed", messagePost);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to publish some message to the current user's wall using FBJS in
If one publish's an app to the Android Market place and post-purchase/download tasks need
I have created an web service I need to publish this service. I need
Need to insert selected text on the page into textarea. There must be some
I want to show user's post count from specific category. Currently, I can only
We have internal application used to publish articles, using SQL Server 2005. For the
I have the following code: <?php if (!$user) { ?> <div class=fb-login-button data-perms=email,user_birthday,publish_stream>Login with
Trying to post a status update using facebook php sdk. Code posted below. As
I want to publish the same post which I just published in the worpress
I need to find the latest post for each author and then group the

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.