+ Start a Discussion
nagalakshminagalakshmi 

How to add google plus button to visualforce page

Hi,

 

My requirement is,  i need to add google plus button in to visualforce page. When we click on the google plus button it wil asks about gmail credentials. After login the count of gplus need to increase.

 

I have done this through javascript code. Its working fine in outside. But if keep the same code in visualforce page and i am trying to save this code, it is giving error as 

 

  Error: Unknown component g:plusone

 

<html>
<head>
<title>+1 demo: Basic page</title>
<link rel="canonical" href="http://www.example.com" />
<script type="text/javascript" src="https://apis.google.com/js/plusone.js">
</script>
</head>
<body>
<g:plusone></g:plusone>
</body>
</html>

 

How can i achieve this through vf page. Please help me out....

 

 

Thanks,

Lakshmi