Google Plus Widget
jQuery plugin showing latest posts from Google+ profiles/pages.
Installation
- Include plugin CSS file
google-plus-widget.css
, upload plugin images fromimg
folder - Include jQuery library and plugin file
google.plus.widget.js
- Create container element inside your HTML document:
<div id="google-plus-widget"></div>
- Initialize plugin:
$.fn.googlePlusWidget.defaults.key = 'YOUR_API_KEY'; // see `Obtaining Google Plus API key` below $('#google-plus-widget').googlePlusWidget({user: 'USER_OR_PAGE_ID'});
Obtaining Google Plus API key
- Go to https://code.google.com/apis/console#access
- Login and click "Create Project"
- Under service list, click "off" button next to "Google+ API" to turn it on
- Accept the agreement
- From the left menu, Go to "API Access" and copy your API key