Go Back   CodingForums.com > :: Client side development > General web building

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 09-21-2012, 04:21 PM   PM User | #1
Niso
New to the CF scene

 
Join Date: Sep 2012
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Niso is an unknown quantity at this point
Facebook Like Button won't publish the correct picture

I have scoured the Internet trying to find solutions for this and have tried multiple options trying to get this all to work. I have set up like/share buttons on my website. I used META TAGS to direct the published picture to a specific image because I couldn't get it to actually pull the right image off the website. So one picture for every item is fine.

The "Share" button on the website works and reflects the logo that I directed it to, but the "Like" button still wants to use the incorrect picture. My button code looks like this:

www.hollywoodhistoryonline.com


<link rel="image_src" href="http://hollywoodhistoryonline.com/hollywoodhistoryonline.com/FB.JPG" />
<!-- AddThis Button BEGIN --><div class="addthis_toolbox addthis_default_style ">
<a class="addthis_button_facebook_like" fb:like:layout="button_count"></a>
<a class="addthis_button_tweet"></a>
<a class="addthis_button_pinterest_pinit"></a>
<a class="addthis_counter addthis_pill_style"></a>
</div>
<script type="text/javascript" src="http://s7.addthis.com/js/300/addthis_widget.js#pubid=xa-505ba5d06c53a358"></script>
<!-- AddThis Button END -->
</div>


And metas look like this:

<meta property="og:title" content="<?php echo META_TAG_FACEBOOK; ?>" />
<meta property="og:type" content="product" />
<meta property="og:url" content="<?php echo $canonicalLink; ?>" />
<meta property="og:description" content="<?php echo $meta_products_description; ?>" />
<meta property="og:site_name" content="<?php echo STORE_NAME; ?>" />
<meta property="fb:admins" content="508187323" />
<meta property="og:image" content="http://hollywoodhistoryonline.com/hollywoodhistoryonline.com/FB.JPG" />


What am I doing wrong? All the other information is populating correctly as coded, even though I would rather use the Item title + Price instead of the webpages title like: http://www.hollywoodhistoryonline.co...roducts_id=409

I would wanted it to publish as Hogwart's Invitation Envelope - $800. Currently it would read like this: Hogwart's Invitation Envelope [1070a] - $800.00 : Hollywood History Online, Discover the Magic and B...

Which is entirely too long, but then again that's when I click "Like" but the "Share" button doesn't put that much information in there, it's much cleaner. Any suggestions? Thanks.
Niso is offline   Reply With Quote
Old 09-26-2012, 06:53 PM   PM User | #2
varunmaini2011
New to the CF scene

 
Join Date: Sep 2012
Location: India
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
varunmaini2011 is an unknown quantity at this point
This should work i dont know the reason why it is not working i used the same code....
varunmaini2011 is offline   Reply With Quote
Old 09-26-2012, 07:50 PM   PM User | #3
VIPStephan
The fat guy next door


 
VIPStephan's Avatar
 
Join Date: Jan 2006
Location: Halle (Saale), Germany
Posts: 7,579
Thanks: 5
Thanked 864 Times in 841 Posts
VIPStephan is a jewel in the roughVIPStephan is a jewel in the roughVIPStephan is a jewel in the rough
It could be that the image is stored in Facebook’s cache memory and it will take a while for it to be updated. I seem to remember that I once had the same problem.
__________________
Don’t click this link!
VIPStephan is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 09:26 AM.


Advertisement
Log in to turn off these ads.