Facebook graph api Facebook共享帖子-仅将URL限制为标题和图像

Facebook graph api Facebook共享帖子-仅将URL限制为标题和图像,facebook-graph-api,facebook-php-sdk,Facebook Graph Api,Facebook Php Sdk,当我在墙上分享文章时,我得到了完整文章的链接,而我只想显示分享文章标题和图片的URL。除了连接部分外,一切正常 $result = $facebook->api('/me/feed/', 'post', array('name' => $_POST['title'], 'link' => 'http://myurl.com', 'picture' => $_POST['imgPath'], 'cap

当我在墙上分享文章时,我得到了完整文章的链接,而我只想显示分享文章标题和图片的URL。除了连接部分外,一切正常

$result = $facebook->api('/me/feed/', 'post',
    array('name' => $_POST['title'], 
          'link' => 'http://myurl.com', 
          'picture' => $_POST['imgPath'], 
          'caption' => 'post title', 
          'description' => $_POST['description']));     

请提出建议。

我不明白你到底想要什么。@CBroe事实上,如果你在墙上看到任何共享帖子,你会发现链接只出现在标题和缩略图上,但在我的情况下,它会链接到完整的帖子。@CBroe[link]选中单击Share时出现的对话框我仍然不知道您可能想知道什么。@C现在可以通过将$result=$facebook->api('/me/feed/','post',更改为$result=$facebook->api('/feed/','post',来解决此问题,
Try by removing '/' after feed ..
$result = $facebook->api('/me/feed', 'post',
    array('name' => $_POST['title'], 
          'link' => 'http://myurl.com', 
          'picture' => $_POST['imgPath'], 
          'caption' => 'post title', 
          'description' => $_POST['description']));    
or you can use userid instead of me..
$user=$facebook->getUser();
$result = $facebook->api('/$user/feed', 'post',
    array('name' => $_POST['title'], 
          'link' => 'http://myurl.com', 
          'picture' => $_POST['imgPath'], 
          'caption' => 'post title', 
          'description' => $_POST['description']));