PHP Класс Horde_Service_Facebook_Links, horde

Copyright 2009-2016 Horde LLC (http://www.horde.org/)
Автор: Michael J. Rubinsky ([email protected])
Наследование: extends Horde_Service_Facebook_Base
Показать файл Открыть проект

Открытые методы

Метод Описание
get ( integer $uid = null, array $options = [] ) : array Retrieves links posted by the given user.
post ( string $link, integer $uid = null, array $options = [] ) : boolean Posts a link on Facebook.

Описание методов

get() публичный Метод

Retrieves links posted by the given user.
public get ( integer $uid = null, array $options = [] ) : array
$uid integer The user whose links you wish to retrieve
$options array 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.
Результат array An array of links.

post() публичный Метод

Posts a link on Facebook.
public post ( string $link, integer $uid = null, array $options = [] ) : boolean
$link string URL/link you wish to post
$uid integer User ID that is posting this link
$options array 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.
Результат boolean