Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Ok, I just ran into this exact same thing. For my purposes, I'm authorizing an application to post to a FB fan page as the fan page. So I can have multiple users that have access to the application, but not access to the Fan Page, posting as the Fan Page. It works for my requirements.</p> <p>Anyhow, here is how I did it using the C# Facebook SDK Beta V5.0.9. First Step, make sure the user account you are attempting to post with has the ability to post to the fan page and is authorized to do so from an app.</p> <p>The majority of this is similar to VorTechS post, just a bit more clarification on it.</p> <pre><code>Dictionary&lt;string,string&gt; fbParams = new Dictionary&lt;string,string&gt;(); fbParams["message"] = Title; fbParams["caption"] = string.Empty; fbParams["description"] = string.Empty; fbParams["req_perms"] = "publish_stream"; fbParams["scope"] = "publish_stream"; //Initialize Your Facebook Client in the manner that suits you, I did it by supplying a saved access token from a single users FacebookWebClient fbClient = new FacebookWebClient(&lt;YOUR_ACCOUNT_ACCESS_TOKEN&gt;); //Get the listing of accounts associated with the user dynamic fbAccounts = fbClient.Get("/me/accounts"); //Loop over the accounts looking for the ID that matches your destination ID (Fan Page ID) foreach (dynamic account in fbAccounts.data) { if (account.id == &lt;DESTINATION_ID_OF_YOUR_FAN_PAGE&gt;) { //When you find it, grab the associated access token and put it in the Dictionary to pass in the FB Post, then break out. fbParams["access_token"] = account.access_token; break; } } //Then pass your destination ID and target along with FB Post info. You're Done. dynamic publishedResponse = fbClient.Post("/" + &lt;DESTINATION_ID_OF_YOUR_FAN_PAGE&gt; + "/feed", fbParams); </code></pre>
    singulars
    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.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      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