Overview

Packages

  • None
  • Service
    • Facebook

Classes

  • Horde_Service_Facebook_Auth
  • Horde_Service_Facebook_Base
  • Horde_Service_Facebook_BatchRequest
  • Horde_Service_Facebook_ErrorCodes
  • Horde_Service_Facebook_Events
  • Horde_Service_Facebook_Exception
  • Horde_Service_Facebook_Fql
  • Horde_Service_Facebook_Friends
  • Horde_Service_Facebook_Groups
  • Horde_Service_Facebook_Links
  • Horde_Service_Facebook_Notes
  • Horde_Service_Facebook_Notifications
  • Horde_Service_Facebook_Photos
  • Horde_Service_Facebook_Request
  • Horde_Service_Facebook_Streams
  • Horde_Service_Facebook_Translation
  • Horde_Service_Facebook_UploadRequest
  • Horde_Service_Facebook_Users
  • Horde_Service_Facebook_Videos
  • Overview
  • Package
  • Class
  • Tree

Class Horde_Service_Facebook_Streams

Open streams API

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

Horde_Service_Facebook_Base
Extended by Horde_Service_Facebook_Streams
Package: Service\Facebook
Category: Horde
Author: Michael J. Rubinsky mrubinsk@horde.org
Located at Horde/Service/Facebook/Streams.php
Methods summary
public mixed &
# getComments( string $postId )

Get a post's comments. Note that the owner of the post that is being retrieved must have the application authorized.

Get a post's comments. Note that the owner of the post that is being retrieved must have the application authorized.

Parameters

$postId
<p>The post id of the post whose comments we are retrieving.</p>

Returns

mixed
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 string
# addComment( string $postId, string $comment, string $uid = '' )

Add a comment to a user's post.

Add a comment to a user's post.

Parameters

$postId
The post id the comment belongs to
$comment
The body of the comment (text only, no HTML).
$uid
<p>The user id of the user who is posting the comment.</p>

Returns

string
The comment id of the posted comment.
public boolean
# removeComment( string $commentId, string $uid = '' )

Remove a comment from a post.

Remove a comment from a post.

Parameters

$commentId
The comment id to remove.
$uid
User id

Returns

boolean
public mixed
# addLike( string $postId, string $uid = '' )

Add a "like" to a post.

Add a "like" to a post.

Parameters

$postId
$uid

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
Methods inherited from Horde_Service_Facebook_Base
__construct()
API documentation generated by ApiGen