Note that there are some explanatory texts on larger screens.

plurals
  1. POFacebook Post from Server Side Code - How to I get Working Access Token?
    primarykey
    data
    text
    <p>After spending hours searching and reading through many posts and the Facebook docs, I have not been able to successfully post to Facebook from my Server Application. Hope someone can help.</p> <p>Scenario: From within my worker thread running in the cloud, when someone performs and action in my web based application I want to post to my companies Facebook application. “A new “blank” is now available… “.</p> <p>To get an access token from the server side code I’ve use any of the following and I do get what appears to be an access token:</p> <blockquote> <p><a href="https://graph.facebook.com/oauth/access_token?grant_type=client_credentials&amp;client_id=" rel="nofollow">https://graph.facebook.com/oauth/access_token?grant_type=client_credentials&amp;client_id=</a>&amp;client_secret=&amp;scope=publish_stream,manage_pages,offline_access</p> <p><a href="https://graph.facebook.com/oauth/access_token?grant_type=client_credentials&amp;client_id=" rel="nofollow">https://graph.facebook.com/oauth/access_token?grant_type=client_credentials&amp;client_id=</a>&amp;client_secret=&amp;scope=publish_stream,manage_pages</p> </blockquote> <p>When I attempt to use the access token to post I get a 403 Forbidden Access.</p> <p>Then I used the <a href="https://developers.facebook.com/tools/explorer" rel="nofollow">Facebook Graph API Explorer</a>. Selected my Facebook Application, clicked on “Get Access Token”, I was prompted with a dialog to grant permissions which “publish_stream, manage_pages, offline_access”. Got the access token, which was much longer, temporarily put it in my code and IT WORKED. I could post to my company app from my server side code.</p> <p>Yes, I know that “offline access” is deprecated. It was weird through that it was still available in the Graph API Explorer.</p> <p>Since this is my company Facebook site, I’d like to post to it programmatically without prompting a user for permissions. Twitter enables this scenario.</p> <p>Any pointers? At a loss now. Using c#. Thanks!</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