You are here

function facebook_publication_load in Facebook Autopost 7

Fetch a Facebook publication object.

Parameters

int $fbpid: Integer specifying the Facebook publication id.

bool $reset: A boolean indicating that the internal cache should be reset.

Return value

FacebookPublicationEntity A fully-loaded $publications object or FALSE if it cannot be loaded.

See also

facebook_publication_load_multiple()

File

fb_autopost_entity/fb_autopost_entity.module, line 210
Module implementation file

Code

function facebook_publication_load($fbpid, $reset = FALSE) {
  $publications = facebook_publication_load_multiple(array(
    $fbpid,
  ), array(), $reset);
  return reset($publications);
}