Note that there are some explanatory texts on larger screens.

plurals
  1. PODisplaying Facebook posts to non-Facebook users
    primarykey
    data
    text
    <p>Is there a way to pull Facebook content (specifically wall posts from a public page) to display on a website without Facebook requiring a user login? Before the offline_access permission was deprecated, I would simply create a token as myself, store it, and pull the information as needed. </p> <p>Now, from what I can figure out, the only two options I have are to 1) manually update that token every 60 days, or 2) display the content only to Facebook users AND make them "allow" the app. Obviously #1 is not a preferred option, and #2 doesn't seem like very good practice. </p> <p>For reference, I'm only trying to pull content from a publically accessible page wall and require no action on behalf of the user (no wall posting, no reading stream, etc). </p> <p>This seems like a really simple concept, and I feel like I have to be missing something. I can't find an answer anywhere. Are these really my only two options? Any feedback would be much appreciate. </p> <p><strong>Updated:</strong> </p> <p>I think I may have found a way around this. With offline_access being deprecated, there is an fb_exchange_token option available to extend the expiration of an existing token. With a call to the following:</p> <pre><code>https://graph.facebook.com/oauth/access_token?client_id={app_id}&amp;client_secret= {app_secret}&amp;grant_type=fb_exchange_token&amp;fb_exchange_token={existing_token} </code></pre> <p>you should receive a token with an extended expiration. In my scenario, I will allow the app through my own Facebook account, store the token in my PHP code, and just use cURL to periodically update the existing code.</p> <p><em>Note: According to the Facebook documentation, the expiration can only be extended once per day</em></p>
    singulars
    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.
 

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