Product Share from Virtual Store to Facebook

Asked

Viewed 108 times

1

I’m having trouble sharing a product from a Facebook store. I’m putting the meta tags on the product page:

<meta property='og:title'...
<meta property='og:url' ...
<meta property='og:site_name' ...
<meta property='og:type' content='website'/>
<meta property='og:image' ...    
<meta property='og:description' ...

And the script I use to open the share window looks like this:

$("#btn_facebook").bind('click', function (event) {
          var twtTitle = document.title;
          var twtUrl = location.href;
          var imagem = 'http://www.meusite.com.br' + $("#Share_Image").val();
          var twtLink = 'http://www.facebook.com/sharer/sharer.php?u=' + twtUrl;
          window.open(twtLink,'', '_blank', 'location=no, menubar=no, resizable=yes, width=575, height=520, fullscreen=yes, status=no, titlebar=no, toolbar=no');                                    
});

It even opens the share window correctly with the photo and product description, but when I click on share, in the facebook post, all descriptions and text will go, but the image does not load and does not appear. Only a white board appears without the photo that before appeared.

Can anyone help me identify this problem or do you have a solution? Thank you, Alex

2 answers

1

This was because at the time there was a bug in url scrapper facebook.

The reason why the presentation images (og:image) were not appearing in the publications along with the rest of the information (og:title, og:descriptino etc) was due to this bug.

Although for some people this bug may have disappeared at the end of the day (30/04/2015) while it was the same, this error has been fully corrected and the ticket given as solved a few days later. More precisely day - May 7, 2015: URL Scrapper Bug Status

0

At this very moment Facebook must be going through some problem. I have a website here that does exactly that but now it loads and sometimes it doesn’t. This site is a couple of months online working exactly the way you mentioned. Changing only the fact that in my case I leave the url https://www.facebook.com/sharer/sharer.php?u=... in href itself with a target _Blank, the Facebook that is in charge of opening a popup.

Ps.: In another case Facebook did not display in any way my image set in the metatag, then I discovered that it was the image that was heavy that took a few seconds to load and so Facebook did not display. Kind of a timeout of the request. I switched to a light image and it worked.

  • The image I’m trying to share is only 13kb, so the problem isn’t the weight of the image.

  • And with respect to this temporary instability of Facebook, I believe that is not the case, because I know several sites that are working.

  • Only yesterday the image of sharing the site came back to work, in my case...

Browser other questions tagged

You are not signed in. Login or sign up in order to post.