We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 25934
    • 6 Posts
    Поставил на сайте кнопку Facebook Share.

    <script type="text/javascript">
    function fbs_click() {
    u='[(site_url)][~[*id*]~]';
    t='[*pagetitle*]';
    window.open('http://www.facebook.com/sharer.php?u='+encodeURIComponent(u)+'&t='+encodeURIComponent(t),'sharer','toolbar=0,status=0,width=626,height=436');
    return false;
    }
    </script>
    <a class="fbshare" href="http://www.facebook.com/share.php?u=[(site_url)][~[*id*]~]" onclick="return fbs_click()" target="_blank">Post this news to Facebook</a>
    


    Все работает, но непоказывает картинки. Посмотрел код окна ФБ и обнаружил, что генерируется неправильный путь до картинок:

    В реале: http://reinishofmanis.com/assets/images/NEWS/2011/20110723_Cesis-m.jpg

    В ФБ: http://reinishofmanis.com/en/news/2011/assets/images/NEWS/2011/20110723_Cesis-m.jpg

    Как с этим боротся?