Uploaded image for project: 'SMB - Optus'
  1. SMB - Optus
  2. OPTUS-126

Facebook like button not appearing on websites due to plugin change.

    Details

      Description

      Due to the face book like changes described on the page: https://developers.facebook.com/docs/reference/plugins/like/ ,"After July 2013 migration, the Like button required an absolute URL in the href parameter.", the face book like button on websites are not appearing. To fix this we must change the url associated with the FB like to an absolute url.

      To do this, we need to change the face book data-href values in the smb-site-service.properties file from:
      data-href="%24DOMAIN%24"
      to:
      data-href="http://%24DOMAIN%24"

      There are two property values that need to be changed in the properties file: "com.thesearchagency.site.social.fblike_h" and "com.thesearchagency.site.social.fblike_v". The new versions are shown below:

      smb-site-service.properties:
      com.thesearchagency.site.social.fblike_h=<div id="fb-root"></div><script>(function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id))

      {return;} js = d.createElement(s); js.id = id; js.src = "//connect.facebook.net/en_US/all.js#xfbml=1"; fjs.parentNode.insertBefore(js, fjs);}(document, 'script', 'facebook-jssdk'));</script><div class="fb-like" data-href="http://%24DOMAIN%24" data-send="false" data-layout="box_count" data-width="50" data-show-faces="true"></div>

      com.thesearchagency.site.social.fblike_v=<div id="fb-root"></div><script>(function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) {return;}

      js = d.createElement(s); js.id = id; js.src = "//connect.facebook.net/en_US/all.js#xfbml=1"; fjs.parentNode.insertBefore(js, fjs);}(document, 'script', 'facebook-jssdk'));</script><div class="fb-like" data-href="http://%24DOMAIN%24" data-send="false" data-layout="button_count" data-width="100" data-show-faces="false" data-font="arial"></div>

        Attachments

          Activity

            People

            • Assignee:
              atul.sanagar Atul Sanagar (Inactive)
              Reporter:
              paul.swe Paul Swe (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: