Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to post to a page timeline with Facebook C# SDK?
    primarykey
    data
    text
    <p>I have a website where I can post some contents. When I post a content, I want to also post a link/description to my Facebook page.</p> <p>I've created an app, and then i got the App ID and App Secret. I asked for some permissions (publish_stream, manage_pages, offline_access) and then I got the access_token.</p> <p>So, I think I have all I need: appid, appsecret, access_token, and these 3 permissions.</p> <p>I'm logged in as the page administrator. I gave all the permissions to my app.</p> <p>I'm using C#, so, there is some code:</p> <pre><code> var client = new FacebookClient(access_token); client.AppId = appid; client.AppSecret = appsecret; var result = client.Post("/[MY_PAGE_ID]/feed", new { picture = "http://some-picture.com/picture.jpg", link = "http://random-link.com", message = "A random message", name = "My page's name", description = "Other description", }); </code></pre> <p>The <code>var result</code> returns me the post ID.</p> <p>A facebook page has 2 ID's: the User ID and the Page ID, right?</p> <p>So, when I return to the facebook page, I can see the post in the <strong>"Recent Posts by Others on [MY PAGE's NAME]"</strong> And then, the list of posts.</p> <p>This is the WRONG place, I want to post to the wall. When I click on the post, it opens a popup with more details. It has no information about the person who posted on my page. But I can get the ID of this person... and the ID is the same as the Admin ID of my page (the "person" who is logged in).</p> <p>How can I make a post to my own page's wall? </p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload