使用api在页面墙上发布不给出分享按钮

i am trying to share a post on a page's wall using facebook api. everything works perfect . but the share button is not coming next to like and comment.

here is my code

$message_body = array(
                    'access_token' =>Yii::app()->session['page_access_token'],
                'message' => $message,
                'actions' => array(
                 array(
                    'name' => Yii::t('UserController', ' Get details '),
                    'link' => Yii::app()->createAbsoluteUrl ('user/adminmoreaboutprovider?&postId='.$fbPostId ),

                    ),
                    ),
                    );

$facebook->api("/".$userpage."/feed","post",$message_body); 

Any idea how to bring share link there ?

With curl you can make a post (yes, along with the share button) using the following command.

curl -F 'access_token=XXXX' -F 'message=test' https://graph.facebook.com/[PAGE NAME]/feed

Hope this can be used as is in PHP.

$msg_body = array(
        'message' => $message,
        'actions' => array(
                            array(
                                'name' => 'Get details',
                                'link' =>  Yii::app()->createAbsoluteUrl('user/adminmoreaboutprovider?&postId='.$fbPostId ),
                            )
                        )
    ); 
 $ch = curl_init();
curl_setopt($ch, CURLOPT_URL,'https://graph.facebook.com/6creeks/feed');
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, $msg_body);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, false);  //to suppress the curl output 
$result= curl_exec($ch);  
curl_close ($ch);

This gave me share lin but the get details links is missing on the Page wall. Is there any way to get both of this together?