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

The Archive Base Latest Questions

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

I need to post on Facebook wall using Facebook c# sdk and mvc or

  • 0

I need to post on Facebook wall using Facebook c# sdk and mvc or asp.net web forms are welcomed it will not be different and there is java script sdk is it will be good or using Facebook c# sdk is better

  • 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:02:21+00:00Added an answer on May 24, 2026 at 1:02 am

    you can use javascript with server side code no need for facebook c# sdk if your case do not need a lot of work and cases :

    you can create a user control like this :

    <%@ Control Language="C#" AutoEventWireup="true" CodeBehind="FacebookShare.ascx.cs"
    Inherits="FacebookApplication.Controls.FacebookShare" %>
    <div>
        <div id="fb-root">
        </div>
        <div onclick="return shareWithFacebook();" style="border: 1px solid black;
     background-color: #d3dde5;
            padding: 5pt; width: 175pt; cursor: pointer;">
            <img src='http://www.codeproject.com/images/fb_share.gif' border="0"
     alt="facebook likeus" style="vertical-align: middle;
                padding-right: 5pt;" />
            <strong>Share with Facebook</strong>
        </div>
        <script type="text/javascript">
            window.fbAsyncInit = function () {
                FB.init({ appId: '<%= ApplicationId %>', status: true, cookie: true,
                    xfbml: true
                });
            };
            (function () {
                var e = document.createElement('script');
                e.async = true;
                e.src = document.location.protocol + '//connect.facebook.net/en_US/all.js';
                document.getElementById('fb-root').appendChild(e);
            } ());
    
            function shareWithFacebook() {
                FB.ui({ method: 'stream.publish',
                    message: '<%= Message %>',
                    user_message_prompt: '<%= Prompt %>',
                    attachment: {
                        name: '<%= Name %>',
                        caption: '<%= Caption %>',
                        description: ('<%= Description %>'),
                        href: '<%= Href %>',
                        media: [{ 'type': 'image', 'src': '<%= Image %>',
       'href': '<%= Href %>'}]
                    },
                    action_links: [
                    { text: '<%= Name %>', href: '<%= Href %>' }
                ]
                },
                function (response) {
                    if (response && response.post_id) {
                        // Do some custom action after the user successfully
        // posts this to their wall
                        alert('Thanks for sharing!');
                    }
                }
            );
                return false;
            }
        </script>
    </div>
    

    the code behind :

    namespace FacebookApplication.Controls
    {
        public partial class FacebookShare : System.Web.UI.UserControl
        {
            public string Message { get; set; }
            public string Prompt { get; set; }
            public string Name { get; set; }
            public string Caption { get; set; }
            public string Description { get; set; }
            public string Href { get; set; }
            public string Image { get; set; }
            public string ApplicationId { get; set; }
        }
    }
    

    and withing you aspx page :

    <%@ Page Title="Home Page" Language="C#" MasterPageFile="~/Site.master"
     AutoEventWireup="true"
        CodeBehind="Default.aspx.cs" Inherits="FacebookApplication._Default" %>
    
    <%@ Register src="Controls/FacebookShare.ascx" tagname="FacebookShare"
     tagprefix="uc1" %>
    
    <asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
        <script src=http://www.codeproject.com/Scripts/jquery-1.4.1.min.js
     type="text/javascript"></script>
    </asp:Content>
    
    <asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
        <h2>
            A customizable Facebook Share button
        </h2>
        <p>
            <uc1:FacebookShare ID="FacebookShare1" runat="server"
      ApplicationId="12345" Message="Message"
                Name="Name" Caption="Caption" Description="Description"
      Href="http://mourfield.com"
                Image="http://www.gravatar.com/avatar/41e139e92663400389c2c9d95a865820.png" />
      </p>
        <p>
            You can also find <a href="http://developers.facebook.com/docs/"
                title="Facebook Developer Docs">documentation on Facebook at
      Facebook Developers</a>.
        </p>
    </asp:Content>
    

    ten you can set you properties within the page on page load event

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

Sidebar

Related Questions

How to post to a page's wall using FaceBook Graph API for iPhone? Should
i want to add the ability to post to the facebook wall trough my
I am making a db schema for facebook like wall structure. I need to
I need a javascript bookmarklet that will click the Yes button on a facebook
I'm using Facebook Connect for iOS to post a picture, taken in an app,
On Facebook, when a wall post has a lot of comments, you see only
It's the same situation as here , but now I need to post a
Using Facebook's Graph API, I've been successful at publishing to a user's feed while
I need to know as to how to implement oAuth in an iphone application.
I have a facebook app page, and a separate facebook business profile page. 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.