This project is not covered by Drupal’s security advisory policy.

Enable your Facebook application to subscribe to changes in data in Facebook (see here) and get realtime notifications on user data.

This module is build specifically for Drupal for Facebook module.

The advantage of subscribing to updates is that you can cache data (like user's friends list etc.) and thus saving some expensive requests to Facebook.

This module only subscribes your application and listens for updates but will not update the data for you. For example if you want to cache user's friends list you can subscribe your application to this field in user object. You'll receive an update from Facebook moments after a user (or more) updates his friends list. You'll have to create a module to do the actual retrieving of the list when the user logs in or whenever you want.

HowTo:
------
The module has two operations you can hooks into through hook_fb_live($op, $data, &$return):

$op = FB_LIVE_OP_SUBSCRIBE - which is triggered right before submitting the
data to facebook (object and fields). You can act here on the field list that
is about to be submitted.

$op = FB_LIVE_OP_UPDATE - which is triggered in the listener function (when
facebook sends you an update). Attention!!! If you want to process things
here take care to not do it for longer than 15 sec. Being a call made by
Facebook to your app, they set this timeout in order to save their servers from
useless lags. You can clear the cache here and when a new request is made your
function would detect the empty cache and request the new list of friends and
cache it again.

Take a look in the README for an example.

Project information

  • Created by Alex Savin on , updated
  • shield alertThis project is not covered by the security advisory policy.
    Use at your own risk! It may have publicly disclosed vulnerabilities.

Releases