Class Horde_Service_Facebook_Streams
Open streams API
Copyright 2009-2012 Horde LLC (http://www.horde.org/)
-
Horde_Service_Facebook_Base
-
Horde_Service_Facebook_Streams
Methods summary
public
Array
|
#
getFilters( integer $uid = '' )
Get a user's stream filter.
Get a user's stream filter.
http://wiki.developers.facebook.com/index.php/Stream.getFilters
Parameters
- $uid
- The user id of whose filters we are requesting.
Returns
Array of filter data.
|
public
mixed
|
#
publish( string $message = '', array $attachment = array(), array $action_links = '', string $target_id = '', string $uid = '', array $privacy = array() )
Publish into a user's stream
Publish into a user's stream
http://wiki.developers.facebook.com/index.php/Stream.publish
Parameters
- $message
- The string of the message to post.
- $attachment
- <p>An array describing the item we are publishing
see the API docs.</p>
- $action_links
- Array of action links.
- $target_id
- The id of user/page you are publishing to.
- $uid
- The id of user publishing the post.
- $privacy
- <p>The privacy settings for the post.
- value: (string) The privacy value for the object, specify one of
EVERYONE, CUSTOM, ALL_FRIENDS, NETWORKS_FRIENDS, FRIENDS_OF_FRIENDS,
SELF.
- friends: (string) For CUSTOM settings, this indicates which users can
see the object. Can be one of EVERYONE, NETWORKS_FRIENDS (when the
object can be seen by networks and friends), FRIENDS_OF_FRIENDS,
ALL_FRIENDS, SOME_FRIENDS, SELF, or NO_FRIENDS (when the object can
be seen by a network only).
- networks: (string) For CUSTOM settings, specify a comma-separated list
of network IDs that can see the object, or 1 for all of a user's
networks.
- allow: (string) When friends is set to SOME_FRIENDS, specify a
comma-separated list of user IDs and friend list IDs that ''can'' see
the post.
- deny: (string) When friends is set to SOME_FRIENDS, specify a
comma-separated list of user IDs and friend list IDs that ''cannot''
see the post.</p>
Returns
mixed
|
public
mixed
|
#
remove( string $postId, string $uid = '' )
Remove a post from a user's stream
Remove a post from a user's stream
Parameters
- $postId
- The post id
- $uid
- The user id
Returns
mixed
|
public
mixed
|
#
addLike( string $postId, string $uid = '' )
Add a "like" to a post.
Parameters
Returns
mixed
|
public
boolean
|
#
removeLike( string $postId, string $uid = '' )
Remove a "like" from a stream post.
Remove a "like" from a stream post.
Parameters
- $postId
- The post id to remove a like from.
- $uid
- The user id who the like belongs to.
Returns
boolean
|