Howto add a Login with Facbook/Google Plus Botton to a Website

Many sites offer Login with Facebook or Google+ features in order to make it easier for new users to connect to members-only features: To get this for your project too you just have to follow some simple steps

Howto get the Facebook Login:

Go to https://developers.facebook.com/apps and create a new application by clicking “Create New App”. Fill out any required fields such as the application name and description. Put your website domain in the Site Url field. Once you have registered, copy and past the created application credentials (App ID and Secret) into the HybridAuth config file.

Howto get the Google+ Login:

Go to https://code.google.com/apis/console/ and create a new project. Go to API Access under API Project. After that click on Create an OAuth 2.0 client ID to create a new application. A pop-up named “Create Client ID” will appear, fill out any required fields such as the application name and description. Click on Next. On the popup set Application type to Web application and switch to advanced settings by clicking on (more options). Provide this URL as the Callback URL for your application: http://mywebsite.com/path_to_hybridauth/?hauth.done=Google Once you have registered, copy and past the created application credentials (Client ID and Secret) into the HybridAuth config file.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>