You are here

public function Instagram::self_liked in Drupagram 7

Same name and namespace in other branches
  1. 6 drupagram.lib.php \Instagram::self_liked()

See the authenticated user's list of media they've liked. Note that this list is ordered by the order in which the user liked the media. Private media is returned as long as the authenticated user has permission to view that media. Liked media lists are only available for the currently authenticated user. GET /users/self/media/liked

PARAMETERS access_token A valid access token. max_like_id Return media liked before this id count Count of media to return

File

./drupagram.lib.php, line 315
Classes to implement the full Instagram API

Class

Instagram
Primary Instagram API implementation class Supports the full REST API for drupagram.

Code

public function self_liked($params = array(), $use_auth = TRUE) {
  $params['user-id'] = 'self';
  return $this
    ->fetch('user_liked', $params, $use_auth);
}