You are here

public function FBAutopost::remoteDelete in Facebook Autopost 7

Deletes a publication from Facebook

Parameters

$publication_id: The id that identifies the publication in Facebook

Throws

FacebookApiException

2 calls to FBAutopost::remoteDelete()
FBAutopost::remoteEdit in class/FBAutopost.php
Edits a publication from Facebook
FBAutopostEntity::remoteEntityDelete in fb_autopost_entity/class/FBAutopostEntity.php
Deletes a publication from facebook stored in an entity.

File

class/FBAutopost.php, line 343

Class

FBAutopost
API class to handle common actions when autoposting This class uses FBAutopostException for error handling. Severity is passed resusing watchdog severity (See: http://api.drupal.org/api/drupal/includes%21bootstrap.inc/function/watch...)

Code

public function remoteDelete($publication_id) {

  // TODO: Add a remoetDelete callback to the entity delete (optional)
  $this
    ->api('/' . $publication_id, 'DELETE');

  // If request fails then an exception is thrown and there is no return value
  return TRUE;
}