Hello

I have got a small piece of code from thefacebook developers page.

It does not work inIE, it sends back an error, I have cleared the caching and loggin into facebook and nothing.

Here is the code:

<a href="#" id="fb-btn-2013"
  onclick="
    window.open(
      'https://www.facebook.com/sharer/sharer.php?u='+encodeURIComponent(location.href), 
      'facebook-share-dialog', 
      'width=1028,height=768'); 
    return false;"><img src="../../Content/Images/facebook-button.png" alt="Share on facebook" />
    </a>

What is the error that is being caused?

@cmps, yes!
This works, thanks for this.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.