Facebook share link

Hello,

I want to include facebook share button in the website and i already done it. But my problem is when i click share link it doesn’t share the link in facebook. Is there anyone can solve this problem?

Thanks,
Rima

How did you set up the button? From this page?

Yes i have set up using above link

Thanks,
Rima.

Check Facebook API and sharing code which you are using. If you do not get any error please post your code here.

After body tag i put below code:

<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.0”;
fjs.parentNode.insertBefore(js, fjs);
}(document, ‘script’, ‘facebook-jssdk’));</script>

Then where i want to show facebook share there i put below code:

<div class=“fb-share-button” data-href=“myweblink” data-type=“button_count”></div>

Thanks,
Rima.

i Think its batter you got Facebook sharing code though “Share Button - Facebook Developers” and than you may put it in new widget and than must remove your catch. I hope it will be working.

Hi Rima, what do you mean by it doesn’t share? Are you saying that nothing happened even after you clicked on the button? Is there an error message? It will be great if you can show a screenshot of the error or link to a page which you have the share button implemented.

You can use Add this… search on Google. It’s so useful!

Just delete the code and retry may be your problem resolved.

Thanks everyone.

Rima_dhk hasn’t returned in a couple of months so they must have solved the problem and moved on.

Thread Closed