homepage Welcome to WebmasterWorld Guest from 54.196.168.78
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Visit PubCon.com
Home / Forums Index / Social Media / Google Plus
Forum Library, Charter, Moderators: buckworks

Google Plus Forum

    
+1 button misbehaviour
omoutop




msg:4619025
 1:45 pm on Oct 25, 2013 (gmt 0)

I have added a +1 social button to our page.
Up to a few days ago it worked ok.
In the last few days it stops sharing page data (the +1 counter still working though) - we haven't changed anything to our pages/server configuration.

Clicking the button:
- increase the +1 coutner correctly
- opens a window where you get to see a page photo, title, descirption and be able to share it to your profile and circles (this isn't working - we get an "Error detected" message in the place where the page data should appear)

Can anyone help me to fix/debug this issue?

The button's html is:
<div class="g-plusone" data-size="medium" data-href="http://www.example.com/path/to/page">

And the js we use to load all of our social buttons is:
(function(doc, script)
{
var js, fjs = doc.getElementsByTagName(script)[0],
frag = doc.createDocumentFragment(),
add = function(url, id)
{
if (doc.getElementById(id))
{
return;
}
js = doc.createElement(script);
js.src = url;
id && (js.id = id);
frag.appendChild(js);
};

// Google+ button
add('http://apis.google.com/js/plusone.js');
// Facebook SDK
add('http://connect.facebook.net/en_US/all.js#xfbml=1&appId=xxxxxxxxxxxxxxxxxxxx', 'facebook-jssdk');
// Twitter SDK
add('http://platform.twitter.com/widgets.js');
// Stumbleupon SDK
add('http://platform.stumbleupon.com/1/widgets.js');

fjs.parentNode.insertBefore(frag, fjs);
}(document, 'script'));


the above code works on live site for the last 5 months without problems.

 

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Social Media / Google Plus
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved