Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>This is a basic overview of how I've done it for a few of my clients who wanted similar functionality:</p> <ol> <li>Create a pretty basic app that prompts for <a href="https://developers.facebook.com/docs/guides/policy/examples_and_explanations/Extended_Permissions/" rel="nofollow noreferrer">Extended permissions</a>, specifically "offline_access" and whatever else you need</li> <li>Store the resulting <a href="http://wiki.developers.facebook.com/index.php/Authorizing_Applications#About_Session_Keys" rel="nofollow noreferrer">Session Key</a> in your database with the <a href="https://developers.facebook.com/docs/reference/api/user/" rel="nofollow noreferrer">UID</a></li> <li>Create a secure, authenticated webservice for your app which allows you to get the info you need for a UID that you supply, using the session that you've stored in your database</li> <li>On the website make requests to your app's webservice, being sure to cache the results for a certain period of time and only make a new request to your webservice once the cache has expired (I use 5-10 minutes for most of mine)</li> </ol> <p>So basically your Facebook app acts sort of like a proxy between the website and the user, doing all of the authenticating and requesting using legitimate means.</p> <p>I've used a webservice because I only wanted to maintain one Facebook app for multiple client's needs. It works like this (in a not-very-awesome ASCII art diagram):</p> <pre>Facebook User 1 \ / Client Website 1 Facebook User 2 --- Facebook App --- Client Website 2 Facebook User 3 / \ Client Website 3</pre> <p><strong><em>Note:</strong> I've only done this for users, not pages, so your mileage may vary.</em></p>
    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. 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.
 

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