$title = "BITCHES LOVE BALLET";
$title.= ' Sign up for my guestlist,bottle service or tickets straight from your phone using PromoterX app:';
$url='http://onelink.to/yhthk6';
<a class="btn btn-circle btn-icon-only btn-primary" target="_blank" href="https://www.facebook.com/sharer/sharer.php?u=<?= $url?>&title=<?= $title ?>">share on facebook</a>
当我在Facebook上分享这个时,我无法在Facebook上设置标题。第二件事,我从url.please中设置的链接中检索标题,帮助我摆脱它。你的帮助将受到高度赞赏。谢谢提前。
答案 0 :(得分:0)
i got the solution and it's working but when posting on facebook it doesn't take title and description.
<?php
$title = "BITCHES LOVE BALLET";
$summary = 'Sign up for my guestlist,bottle service or tickets straight from your phone using PromoterX app';
?>
<a target="_blank" href="https://www.facebook.com/sharer/sharer.php?u=http://onelink.to/yhthk6&title=<?=$title;?>&description=<?=$summary;?>">share on facebook</a>