Social share button doesn't work correct. When I click the Facebook or Twitter button it connect me to the pages but it doesn't grab intro image and header of the article. Instead It grabs the name of and description of the site. I have a plugin (Fast social share) wich works correct in the same articles, but I don't need two plugins with the same functions and prefer to use original from evonews template.

    centerprh Hi. Please tell me the url to the page with an example of the article and attach an access to joomla panel an ftp.

      centerprh Hi. This is really strange. All the code for shearing is in place and correct:

      Are You saying that everything works with this other plugin? For me it looks like the problem may be on facebook application side. Some missing permission in settings or something like that.

      You can do it yourself. There is Fast social share buttons on the bottom of the article and it works fine with facebook, twitter and whatsupp. It grabs the header and image of the article.
      As I mentioned the problem is not only with facebook but with twitter too. Twitter button(evonews) doesn't grub the header of the articles.
      With evonews button it grabs " https://czpz.org/index.php?option=com_content"
      With Fast social share button it grubs "10 задържани в Силистра за фалшиви ТЕЛК-решения https://czpz.org/index.php?option=com_content&view=article&id=9959:10-задържани-в-силистра-за-фалшиви-телк-решения&catid=208:2018-12-15-08-35-24&Itemid=1315 чрез @centerprh"
      Do you think it could probably be the problem with cache, compressing or something? I'm using Supercache manager provided by hosting. Joomla cahe is off. Template specific cache is off too. I've stopped/started Supercache without any effect.

      Surprise! It is working with facebook now. I have no idea what happened. Twitter shows only link (https address) not text of header. Link is correct.

        centerprh

        Hi,

        Could you enable the Fast social share buttons so I can see how it looks? as teitbite already mentioned that the open graph info seems to be correct now.

        I've just enabled Fast social share.
        It seems that the problem depends on button "Search Engine Friendly URLs" in Joomla global configuration. It started to grab the image and intro after i changed configuration to YES.

          No it is not the same. That is from template:
          https://czpz.org/jurisprudence/control-and-regulation/9989-------

          And that is from plugin:
          Министър Ананиев назначи проверка в ЦСМП - Русе https://czpz.org/jurisprudence/control-and-regulation/9989-министър-ананиев-назначи-проверка-в-цсмп-русе чрез @centerprh

          From the template it grabs only address (https://czpz.org/jurisprudence/control-and-regulation/9989-------)
          From the plugin it grabs not only the address but the header too:
          " Министър Ананиев назначи проверка в ЦСМП"


            centerprh
            Hi,

            I see it includes the title also. Let me check with the team if the built-in social share feature can do that or not.

            Hi.

            You could try this

            Edit file : templates/gk_evonews/html/com_content/article/default.php

            Line : 142

            <a href="http://twitter.com/intent/tweet?source=sharethiscom&amp;url=<?php echo $cur_url; ?>" target="_blank" title="Twitter" class="twitter icon-share-popup"><span class="fa fa-twitter"></span></a>

            Change to

            <a href="http://twitter.com/intent/tweet?source=sharethiscom&amp;text=<?php echo urlencode($og_title); ?>&amp;url=<?php echo $cur_url; ?>" target="_blank" title="Twitter" class="twitter icon-share-popup"><span class="fa fa-twitter"></span></a>

            Regards.

            Write a Reply...
            You need to Login to view replies.