21 April 2013

Add Google+ Comments to Any Web Page



Until Google launches an API for the Google+ Comments feature, you can use the code from Blogger. Browsing the Net found a way to embed Google+ Comments on any website or blog. Here's the code you could use:




<script src="https://apis.google.com/js/plusone.js">
</script>
<div class="g-comments"
data-href="[URL]"
data-width="642"
data-first_party_property="BLOGGER"
data-view_type="FILTERED_POSTMOD">
</div>




Replace [URL] with the address of your page. It's interesting to see what happens if you enter the URL of a different page: from what I've noticed, Google shows some Google+ posts that link to that page.



{ Thanks, Jerzy. }


No comments:

Post a Comment