Using the code under ... when ever i try to post a link to facebook page it posts as my account but when i remove the link below it post it as the page itself .... ? I want to post the link too but as the page !!!
if(isset($_POST['title']) and $_POST['title'] != '' ){
try{
$message = array(
'message' => $_POST['title'],
'link' => $_POST['link'],
'title' => $_POST['title'],
);
$url = '/'.$_POST['pageid'].'/feed';
$result = $fb->api($url, 'POST', $message);
if($result){
echo 'The data is posted!';
}
}
catch(FacebookApiException $error){
echo $error->getMessage();
}
}