\Horde_Service_Facebook_Links

Links methods

Copyright 2009-2017 Horde LLC (http://www.horde.org/)

Summary

Methods
Properties
Constants
__construct()
get()
post()
No public properties found
No constants found
No protected methods found
$_facebook
$_http
N/A
No private methods found
No private properties found
N/A

Properties

$_http

$_http : \Horde_Http_Client

Type

\Horde_Http_Client

Methods

__construct()

__construct(\Horde_Service_Facebook  $facebook) 

Constructor

Parameters

\Horde_Service_Facebook $facebook

get()

get(integer  $uid = null, array  $options = array()) : array

Retrieves links posted by the given user.

Parameters

integer $uid

The user whose links you wish to retrieve

array $options

An options array:

  • limit: (integer) The maximum number of posts to return.
  • offset: (integer) The post to start returning from.
  • ids: (array) Only return these specfic links.

Returns

array —

An array of links.

post()

post(string  $link, integer  $uid = null, array  $options = array()) : boolean

Posts a link on Facebook.

Parameters

string $link

URL/link you wish to post

integer $uid

User ID that is posting this link

array $options

Additional post options:

  • message: (string) A message to attach to the link.
  • picture (string) A URL to a thumbnail image to use for this post if link is set.
  • name: (string) A name for the post if link is set.
  • caption: (string) The caption, if link is set.
  • description: (string) A description, if link is specified.

Returns

boolean