Skip to main content
Skip table of contents

Facebook Graph API

Query the Facebook Graph API to gather information on different categories of the user profile, e.g. the movies entered by the user or the liked pages.

To get a valid access token, go to and request a token by logging in with your Facebook credentials. During the process you get to select the permissions associated with the token. Keep those in mind and make sure you only try to query data permitted by the token. The token generated with this tool will expire after one or two hours. To get more information on this refer to the facebook API documentation.

Datasource Type

REST Custom

Datasource Request Parameters


Datasource URL

Datasource Test URL


Query URL


Parameter values

e.g. "likes" or "movies"

Converter Example

function convert(json) {
    var result = [];
    var parsedJsonObject = JSON.parse(json);
    var current, index;
    for (index in {
        if (parsedJsonObject.hasOwnProperty(index)) {
            current = parsedJsonObject[index];
                'Item Name':,
                'Creation Date': PocketQuery.formatDate(current.created_time,'ddd, MMM Do YYYY, hh:mm')
    return result;
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.