boolean publishActionOfUser(
string
$title, [string
$body = ''], [array
$images = array()])
|
|
Publish an action to a user's feed
An action differs from a story in that a user's action is sent to all of that user's friends as well.
The $images array should be a numerically indexed array of arrays, where each image has two keys: src and href. The src is the full URI of the image and the href is the link of that image.
<?php
$images = array(
array('src' => 'http://example.com/images1.jpg',
'href' => 'http://example.com/images.php?image=1'),
array('src' => 'http://example.com/images2.jpg',
'href' => 'http://example.com/images.php?image=2'),
array('src' => 'http://example.com/images3.jpg',
'href' => 'http://example.com/images.php?image=3')
);
?>
Parameters:
boolean publishStoryToUser(
string
$title, [string
$body = ''], [array
$images = array()])
|
|
Publish a story to a user's feed
The $images array should be a numerically indexed array of arrays, where each image has two keys: src and href. The src is the full URI of the image and the href is the link of that image.
<?php
$images = array(
array('src' => 'http://example.com/images1.jpg',
'href' => 'http://example.com/images.php?image=1'),
array('src' => 'http://example.com/images2.jpg',
'href' => 'http://example.com/images.php?image=2'),
array('src' => 'http://example.com/images3.jpg',
'href' => 'http://example.com/images.php?image=3')
);
?>
Parameters:
boolean publishTemplatizedAction(
string
$titleTemplate, [array
$feedData = array()], [array
$images = array()])
|
|
Publish a templatized action to a user's feed
An action differs from a story in that a user's action is sent to all of that user's friends as well.
An templatized story publishes News Feed stories to the friends of that user. These stories or more likely to appear to the friends of that user depending upon a variety of factors, such as the closeness of the relationship between the users, the interaction data facebook has about that particular story type, and the quality of the content in the story/on the linked page. http://wiki.developers.facebook.com/index.php/FeedRankingFAQ
The $images array should be a numerically indexed array of arrays, where each image has two keys: src and href. The src is the full URI of the image and the href is the link of that image.
<?php
$images = array(
array('src' => 'http://example.com/images1.jpg',
'href' => 'http://example.com/images.php?image=1'),
array('src' => 'http://example.com/images2.jpg',
'href' => 'http://example.com/images.php?image=2'),
array('src' => 'http://example.com/images3.jpg',
'href' => 'http://example.com/images.php?image=3')
);
?>
Parameters: