Facebook LIke and - Share buttons are not referring to the specific page

Hi,

I am working on implementing some Facebook and Linked In Social Media buttons on my pages.

I am working on this page: https://kroweb.dk/gfdev/arkivalier/kirkeboeger2/

The problem is that both the Facebook buttons and the Linked In button are referring to the main domain - in this case https://kroweb.dk/gfdev/, and not to the specific page within that domain defined in the code.

I have this og: code in my header:
<meta property="og:type" content="website"/>
    <meta property="og:title" content="kroweb.dk/gfdev"/>
    <meta property="og:image" content="https://kroweb.dk/gfdev/fb_image3.png"/>
    <meta property="og:url" content="//kroweb.dk/gfdev/arkivalier/kirkeboeger2/"/>
    <meta property="og:description" content="kroweb.dk/gfdev"/> 
    <meta property="og:site_name" content="kroweb.dk/gfdev"/>
    <meta property="fb:admins" content="https://www.facebook.com/peter.kroman1"/> 

Open in new window



and this code for the buttons in the body:
<div id="fb-like" style="display: flex; justify-content: flex-end; margin-bottom: 5px; position: relative; top: 0px;" >

    <!-- Facebook Button: http://developers.facebook.com/docs/reference/plugins/like/ -->
    <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="like_button_wrapper"><div class="fb-like" style="margin-right: 4px;"
        data-send="true" 
        data-href="//kroweb.dk/gfdev/arkivalier/kirkeboeger2/" 
        data-layout="button_count" data-width="90" data-show-faces="true" ></div></div>


    <!-- Linkedin Button: http://www.linkedin.com/publishers -->
    <script src="//platform.linkedin.com/in.js" type="text/javascript"></script>
    <div class="like_button_wrapper" style="margin-top: 2px;"><script type="IN/Share" data-counter="right" ></script></div>


</div>

Open in new window


Sorry about the inline styling - it is working code at this moment :)

If somebody can help me to get these buttons to address the actual page, I would be very happy :)

Thanks in advance.
Peter KromanSenior Proposal SpecialistAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Sam Simon NasserIT Support ProfessionalCommented:
use the code configurator https://developers.facebook.com/docs/plugins/like-button#configurator to generate the code for you.
0
Peter KromanSenior Proposal SpecialistAuthor Commented:
Thanks Sam,

I have done that.

I still get the same result - it is not liking or sharing the actual page, but in stead the main folder, in this case: https://kroweb.dk/gfdev/

Any other ideas :)
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Peter KromanSenior Proposal SpecialistAuthor Commented:
No solution
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
HTML

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.