I wanted to ask if its planned in future to be in sync with facebook comments to the pictures?
Because my wish is:
- If user comments a Picture in PhocaGallery the comment is send to facebook (not via fb:comment)
directly to the Image so that the Users in facebook also can see the comment on the picture like the users on your own page can do.
code for posting should be like that:
Code: Select all
//Post Comment to Facebook
if(!empty($_POST['comment']) && !empty($PicGETID) )
{
$commentUser = $_POST['comment'];
$facebook->api('/'.$PicGETID.'/comments?access_token='.$access_token,'post',array('message' => $commentUser ) );
//auf User seite ausgeben
$facebook->api('/'.$me.'/feed?access_token='.$access_token, 'post', array(
'message' => $commentUser,
'name' => 'App Name',
'caption' => 'some text',
//'picture' => 'https://graph.facebook.com/'.$PicGETID.'/picture',
'link' => 'Link to the image of Phoca'
));
Code: Select all
$commentsPic = $facebook->api('/'.$PicGETID.'/comments?access_token='.$access_token.'&fields=message,from');
foreach ($commentsPic['data'] as $comment)
{
echo "<img src='https://graph.facebook.com/".$comment['from']['id']."/picture' border='0'></td>
<td valign='middle'><a href='http://www.facebook.de/profile.php?id=".$comment['from']['id']."' target='_blank'>".$comment['from']['name']."</a>: ".$comment['message']." ";
}
I think its not that much effort, the only thing you need is read out the picture id from DB and do the request above
It hope you can help me to integrate or have some solution for this.
Many Thanks
BluTiGeS

