Keyword

share button

  • SweetElite
  • SweetElite's Avatar Topic Author
  • Offline
  • New Member
More
6 years 6 months ago - 6 years 6 months ago #166931 by SweetElite
share button was created by SweetElite
Hello

I have a problem, when a user clicks the Facebook share button it K2, its not sharing the story that they choose. The share button is sharing the same story for all of the stories alone with the same image not related to the story.

I went in side of K2 Parameters then social and i paste this code inside of social code, i got from Facebook development.

<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/sdk.js#xfbml=1&version=v2.12&appId=1844378725778307&autoLogAppEvents=1';
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>

<div class="fb-share-button" data-href="fishinaddicts.com/fishing-blogs" data-layout="button_count" data-size="small" data-mobile-iframe="true">www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Ffishinaddicts.com%2Ffishing-blogs&src=sdkpreparse" class="fb-xfbml-parse-ignore">Share


But its not working ,

If anyone could help me out thanks in advance..
Here is the link on my site with my K2 stories see what i mean..

fishinaddicts.com/fishing-blogs

Thanks

Its not Just A Sport Its A Lifestyle
Last edit: 6 years 6 months ago by SweetElite. Reason: Made me point more clear

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
6 years 6 months ago #166958 by Krikor Boghossian
Replied by Krikor Boghossian on topic share button
Hello,

This code is wrong. Please use the default code instead. Finally if the item is not accessible to the public (and thus FB) it cannot be shared though the sharing button.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum