+ Start a Discussion

How to add google plus button to visualforce page



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


<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">


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