Drupal

WordPress is the world’s most popular content management system (CMS) used by more than 60 million websites worldwide [1]. It's an open-source CMS written in PHP that is free to install and use with thousands of plug-ins and themes. WordPress started as a pure blogging platform in 2003 but has since evolved into a robust and versitle CMS used by millions. Supported by a large user community and several websites offering free support, getting help is usually quick and a selling point when choosing a CMS.

WordPress' robust plugin framework allows users to customize and extend common functionality to create a unique website experience. This article will explain how to install and activate the Stitchz Social Login WordPress plug-in to integrate social login providers like Facebook or Twitter to your WordPress site. As easy as WordPress is to install and configure so too is the Stitchz Social Login plug-in. Installing the plug-in follows the standard process, with that said, the details of the installation and configuration are covered in this article; for an abbreviated version of these steps check out .

Installation

  1. Log in as an administrator and go to the WordPress Admin console and click "Plugins" in the left navigation menu.
  2. On the Plugins page, at the top, click "Add New". Figure 1.
    Add new Wordpress plugin
    Figure 1.
  3. In the "Search Plugins" field enter "Stitchz" and press Enter.
  4. The first result will be the Stitchz Social Login plugin, click "Install Now". Figure 2.
    Stitchz Social Login plugin search
    Figure 2.
  5. When asked if you really want to install the plugin click "Ok".
  6. After the plugin has finished installing, click "Activate Plugin". Figure 3.
    Stitchz Social Login plugin activating
    Figure 3.
  7. WordPress will show the successful installation at the top of the Plugins page, Figure 4.
    Stitchz Social Login plugin activated
    Figure 4.
    The plugins are sorted alphabetically, scroll down and find the newly installed plugin.
  8. The Stitchz Social Login plugin and all its details will be listed. Figure 5.
    Stitchz Social Login plugin installed
    Figure 5.
  9. Installation and activation is complete, the next step is to configure the plugin.

Configuration

A prerequisite for using the Stitchz Social Login plugin in WordPress is to create an application with the Stitchz service; to create an application go to . When creating an application combine your website's Url with "/stitchz_social_login/auth" (the Stitchz Social Login end point). For example: https://www.YourWebsiteUrl.com/stitchz_social_login/auth

For details on creating an application follow the steps outlined in the previous post .

After the application is setup, begin configuring the WordPress plugin. Some settings from the application are required to properly configure it in the following steps, so keep the settings handy.

  1. First, change the default way WordPress handles web URLs. Login to Wordpress as an Administrator and go to the Wordpress Admin counsel.
  2. Click "Settings > Permalinks".
  3. Under "Common Settings", select any option except "Default", and click "Save Changes". This will modify the .htaccess rewrite rules.
  4. Next, click "Stitchz Login API Settings" in the left navigation menu. Figure 6.
    Stitchz Social Login plugin navigation link
    Figure 6.
  5. Begin configuring the Stitchz Login API Settings, note that each field with (required) is required. Copy the settings from your application into the "App Url", "ApiKey", "AppSecret" and "Redirect Url" fields respectively. Figure 7.

    Stitchz Social Login plugin activating
    Figure 7.

    There are a few things to note about the configuration that may make it simpler. First, the "Return Url" field is the WordPress website's full web Url plus the Stitchz WordPress end point ('/stitchz_social_login/auth'), i.e. https://www.YourWebsiteUrl.com/stitchz_social_login/auth. This value should match the Return Url setup with the Stitchz application.

    Second, the "API Version" field determines how users' authentication requests are sent to Stitchz. The "Standard Login" option is a basic authentication request used to only authenticate a user, nothing else. The "OAuth 2 Login" option sends an OAuth 2.0 authenticated request to Stitchz and returns a valid OAuth 2.0 token that can be used to request further resources without forcing the end user to re-authenticate. Take note that "OAuth 2 Login" requires HTTPS. A future article will cover what requests can be made to the Stitchz API. In the meantime if you're interested check out for info.

  6. After configuring the Stitchz Login API Settings you must sync your configured Social Login Identity Providers from Stitchz. Click the "Sync Providers" button to synchronize the list of providers' setup in the Stitchz application. If all settings are correct a sample login will display with all the configured and active identity providers. Should an error message appear or no sample login is displayed double check the Stitchz Login API Settings and click "Sync Providers" again. If no sample is displayed, continue with the configuration, save all settings, and then check and try again.
  7. The Stitchz Login Addin Settings provides options for where to display the social login form within WordPress and how it will look. Placing a tick in the checkbox "activates" the feature and displays the form on the respective screen. A typical website should activate the first three choices; websites with WordPress commenting turned on should activate all four choices so commenters can login and comment with their social identity.
  8. The "Theme Version" selection changes the way the social login icons look. The current option is "Basic". Additional themes will be included in future updates.
  9. Finally, the "Social Login Notes" field allows the administrator to write a message to all users; up to 255 characters are allowed, with no HTML. The note appears under the social login icons wherever they are displayed. Notes are useful to provide login instructions or share a message.

    See Figure 8 for an example of a complete setup.

    Stitchz Social Login Form
    Figure 8.

Additional Options

As of version 2.5, WordPress introduced shortcodes. "A shortcode is a WordPress-specific code that lets you do nifty things with very little effort. Shortcodes can embed files or create objects that would normally require lots of complicated, ugly code in just one line. Shortcode = shortcut." [2] Stitchz offers a shortcode that can be placed on any page or blog simply by adding [stitchz_social_login_shortcode].

Wrap Up

Nearly everyone has a social media account, just look at the latest total number of Facebook users, over one billion [3]. Why not lower the barrier of entry and provide your visitors a simple, safe means of registration? With more than 20 popular social networks to choose from, customizing the WordPress site experience with Stitchz Social Login is simple.

References:

 
 
 
Drupal

This article will cover how to install and activate the Stitchz Social Login Drupal module to integrate social login providers, like Facebook or Twitter, to a Drupal site.

Drupal is a free and open-source content-management framework written in PHP that is used by at least 2.1% of all Web sites worldwide [1]. Taking a look at Drupal's usage statistics shows there is a huge user population with over one million reported installations [2]. Drupal's popularity comes from its ease of use, modular plugins (called modules), localization, and customizable themes. Modules contain the magic dust that extends Drupal core functionality that an administrator activates to customize their site.

The module extends Drupal's standard user registration and login experience by integrating social login features. With 20+ popular social networks to choose from, customizing the Drupal site experience is simple.

Installing the module into Drupal follows the standard process. Details of the installation and configuration are in this article; for an abbreviated version of these steps check out .

Installation

  1. Download the package from the Stitchz project page located in Drupal's module repository. Downloads are available as a .zip or .tar.gz file. Make sure to download the latest version from https://www.drupal.org/project/stitchz_social_login.
  2. Extract the package contents to your site's modules directory. This is typically in your Drupal deployment folder under "sites/all/modules/". The folder name should be "stitchz_social_login".
  3. Log in as an administrator and go to the Module page, "Dashboard > Modules".
  4. Find the three Stitchz Social Login modules in the list and tick the checkboxes next to each, then click "Save Configuration" to activate them. Figure 1.
    Stitchz Social Login Drupal Module Selection
    Figure 1.

Configuration

Configuring Stitchz Social Login so that users can register and login with their social identity is straight forward. If you have an application already setup with Stitchz then jump to step 1, otherwise create an application at . When creating an application combine your website's Url with "/stitchz_social_login/auth" (the Stitchz Social Login end point). For example: https://www.YourWebsiteUrl.com/stitchz_social_login/auth

For details on creating an application follow the steps outlined in the previous post .

After the application is setup, begin configuring the Drupal module. Some settings from the application are required to properly configure it in the following steps, so keep the settings handy.

  1. First, enable Clean Urls under "Dashboard > Configuration > Search and metadata" in the Drupal Configuration area. If necessary, follow the steps listed under the "Server Configuration" section in Drupal's Configure clean URLs page for troubleshooting Clean Urls in Drupal.
  2. Next, configure the Stitchz Login API Settings (Dashboard > Configuration > People > Stitchz Social Login), each field with a red asterisk (*) is required. Copy the settings from your application into the "App Url", "ApiKey", "AppSecret" and "Redirect Url" fields respectively. Figure 2.

    Stitchz Social Login Configuration
    Figure 2.

There are a few things to note about the configuration that may make it simpler. First, the "Return Url" field is the Drupal website's full web Url plus the Stitchz Drupal end point ('/stitchz_social_login/auth'), i.e. https://www.YourWebsiteUrl.com/stitchz_social_login/auth. This value should match the Return Url setup with the Stitchz application.

Second, the "API Version" field determines how users' authentication requests are sent to Stitchz. The "Standard Login" option is a basic authentication request used to only authenticate a user, nothing else. The "OAuth 2 Login" option sends an OAuth 2.0 authenticated request to Stitchz and returns a valid OAuth 2.0 token that can be used to request further resources without forcing the end user to re-authenticate. Take note that "OAuth 2 Login" requires HTTPS. A future article will cover what requests can be made to Stitchz API. In the meantime if you're interested check out for info.

After configuring the Stitchz Login API Settings you must sync your configured Social Login Identity Providers from Stitchz. Click the "Sync Providers" button to synchronize the list of providers' setup in the Stitchz application. If all settings are correct a sample login will display with all the configured and active identity providers. Should an error message appear or no sample login is displayed double check the Stitchz Login API Settings and click "Sync Providers" again. If no sample is displayed, continue with the configuration, save all settings, and then check and try again.

Thirdly, the Stitchz Login Addin Settings provides options for where to display the social login form within Drupal and how it will look. Placing a tick in the checkbox "activates" the feature and displays the form on the respective screen. A typical website should activate the first three choices; websites with Drupal commenting turned on should activate all four choices so commenters can login and comment with their social identity.

The "Theme Version" selection changes the way the social login icons look. The current option is "Basic". Additional themes will be included in future updates.

Finally, the "Social Login Notes" field allows the administrator to write a message to all users; up to 255 characters are allowed, with no HTML. The note appears under the social login icons wherever they are displayed. Notes are useful to provide login instructions or share a message.

See Figure 3 for an example of a complete setup.

Stitchz Social Login Form
Figure 3.

Additional Options

Many content management frameworks have the concept of "widgets", allowing content to be placed in various regions within a page; in Drupal these are called "Blocks". An administrator can add a Block to a screen to display its content in specific locations, sort the Block with respect to another Block, and customize the visibility of the Block. For specific details on working with Blocks in Drupal check out https://www.drupal.org/documentation/modules/block.

When you activate the Stitchz Social Login module a Block is available to add to any region. To add the Stitchz Social Login block:

  1. Log in as an administrator and go to "Dashboard > Structure > Blocks".
  2. Find "Stitchz Social Login" in the list of blocks and click the drop down menu to select a region to display it in. There are many standard regions to choose from, I suggest picking a region to see how it fits into your site's layout, you can always change it later. If you're still unsure which region to choose Drupal explains regions at https://www.drupal.org/node/171224. If you have a custom theme installed it may have its own regions, check with the theme creator for details.
  3. After selecting the region, it may be necessary to drag the Block to a better position, or order. Click the Block row and drag it to reorder its position. Figure 4.
    Stitchz Social Login Block Steup
    Figure 4.
  4. Click "Save Blocks" at the bottom of the page.
  5. Go to the page where the Block was added. If it needs to be changed, repeat the steps above.

Wrap Up

Nearly everyone has a social media account, just look at the latest total number of Facebook users, over one billion [3]. Why not lower the barrier of entry and provide your visitors a simple, safe means of registration? With more than 20 popular social networks to choose from, customizing the Drupal site experience with Stitchz Social Login is simple.

References:

 
 
 
Adding Facebook Login to your website dramatically simplifies your user login experience, can increase user engagement and increase customer conversion rates. As I mentioned in my previous blog post social login is growing and Facebook is leading the way. In this post I will talk about how to connect Facebook Login to your website with the help of Stitchz Social Login.

Create a Stitchz Social Login App

The first thing you'll need to do is create a Stitchz Social Login account. Go to the login page, and sign in with the social identity of your choice, Figure 1.

Figure 1 - Select a Social Login to sign in with
Once logged in, create a new application by hovering your mouse over the Applications menu at the top, then click the Create Application link, Figure 2.
Create a new Social Login Application Button
Figure 2 - Create a new application
In the new application page, select the type of application you'd like to create. There are three choices, Basic, Professional, and Enterprise, Figure 3. The differences between the three can be found on our , but in general they are around how many logins per month and how many providers you can setup for your site. The application type can be changed at any time, so for now, select Basic.
Select an Application Type for the new application
Figure 3 - Choosing an application type
Next, enter the new application's details, Figure 4. The fields with the red asterisk are required. The application name, which must be unqiue, accepts only letters and numbers and cannot contain spaces. The application name will become your "App Url" and you'll use it when setting up your credentials with Facebook Login, write it down or copy it (we'll talk about this later).
New application details form
Figure 4 - New application details
Enter the description of your application and the full Url of your website's Favicon if you'd like. Your Domain is exactly as it sounds, your website's root domain name, i.e. example.com, without the "http" or "www" in front of it.
The Return Url is an end point or page on your website that is ready to accept a POST back from Stitchz containing a one-time unique code or "token". If you're using one of our CMS plug-ins (i.e. Drupal, Wordpress, etc.) the Url is simple, usually "https://www.yourwebsite.com/stitchz_social_login/auth", otherwise make sure your website is ready to accept a POST request from Stitchz and enter that full Url. Check the "Web Site Set Up" page for your application for more details.
Next, enter the Url to your website's privacy page and the domain(s) you will be sending your authentication request from in the Privacy Url and Whitelist Domains fields respectively.
Finally, the domain(s) in the Whitelist Domains field is a comma separated list of domains, and it is very important as Stitchz Social Login will only accept requests from one of the domains listed, i.e. "localhost, yourdomain.com".
Once all the fields are complete click the "Create" button at the bottom.

Adding Social Login Providers

Now your application has been created, but no social login providers have been setup, that's our next step. To add a new Social Login Provider, a wizard will walk you through each step in creating a new provider, Figure 5. First, select a Social Login Identity Provider from the drop down list. The envelope icon next to a provider name indicates that the respective provider offers the user's email address in their profile data. As the wizard walks through each field, you will be asked to enter an App Key and Secret Token, we'll go to Facebook Login to get those after saving the new provider, for now, enter "0000000000000000000" for both fields. Write down or copy the "Stitchz Return URL" as we'll need this next. Click Save.
Create a new Identity Provider
Figure 5 - Add new Identity Provider
After saving your provider, you'll be asked what permissions (or scope) you'd like to request from each end user logging in to you website. Select only the permissions you need, selecting too many without proper justification may scare your end users off. Click "Save" at the bottom.

Create a Facebook App

Open a new browser window and go to: https://developers.facebook.com/apps. Click the "Create New App" button to create your Facebook application. A new dialog box will open asking you for your website's details. Enter a descriptive name for your "Display Name", this will be presented to your end users when they login, that way they will be absolutely clear where and what they are logging in to. Next select a "Category" that your website fits into and click "Create App".
On your new App's Settings page, write down or copy the "App ID" and "App Secret" values, you may need to click on "Show" to get the values. Remember the "App URL" from when you created you application above, add that as your Facebook "App Domain" (if you don't remember it go to your Stitchz application's Settings page). Then, take your "Stitchz Return URL" from above and copy that into your Facebook "Website > Site URL". Click "Save Changes" at the bottom.

Final Setup

Now, go back to your Stitchz Social Login list of Providers and click on "Edit" to open the Facebook edit dialog box. Enter your "App ID" and "App Secret" copied from Facebook into the Stitchz "App Key/ID" and "Secret Token" fields respectively. Click "Save".
If you're using one of our CMS plug-ins (i.e. Drupal, Wordpress, etc.) then go to your administrative page and configure the plug-in per the instructions. If not, your Return URL should be ready to accept a POST from Stitchz with a one time unique key or "token". Take the token submitted to your website by Stitchz and POST it back to your App URL (https://yourappurl/Authentication/v1/Auth) along with your desired response format (XML or JSON). Stitchz will verify your token and send back the authenticated user's identity packet. Take the response and log the user in to your website.
That's it! Now your end users are ready to begin logging in with their Social Identity!
If you need any further help getting started let us know.
 
 
 
How often have you heard from website users they forgot their username and password or requests to reset passwords only to forget which email account they signed up with? It is likely a common issue that can go unresolved when trying to persuade users by selling a product, blogging or communicating through social media.
With the vast number of different websites requiring a username and password, it is nearly impossible to remember all of them. 90% of users who forget their username and password combination end up leaving the website instead of retrieving or resetting it.
A 2012 study published by Blue Inc., shows that 4 out of 5 consumers avoid creating or registering a new account. The study indicates that only 14% will create a new account, 32% will leave or go to a competing site, while the remaining 54% may never return.
A website registration process can be cumbersome and often ask for information the user does not want or need to share. When unnecessary information is required to create a new account, users often provide incorrect or incomplete data. Because of this, many users receive marketing promotions or information that is irrelevant to them. When trying to engage users this can be disastrous causing users to lose trust or ignore future communications.
According to the 2012 study mentioned above, given a choice, 41% of website visitors prefer to use their social login identity to create a new account over a guest account (24%) or new account (35%). That means that 2 out of 5 visitors would rather use their existing social media account. Adding a social login option to your website could translate into retaining over one-third of the 86% that would have ended up leaving and probably not returning. Combined with the 14% that said they'd create a new account, you would potentially retain over half of your website visitors!
social iconsAs social media use grows so does the number of people using it. In January of 2014, Facebook announced that at the end of 2013 they had over 1.23 billion monthly users and over 757 million daily users; that's a lot of social media users.
With social login you get social profile information which can be used to customize a website visitor's experience. Associating your website with a trusted brand such as Facebook, Twitter, Google, etc., you establish a trust with your users that lead to a higher visitor return rate, higher likelihood of purchasing products, and an increase of site referrals and recommendations.
To get started, sign up for a Stitchz account today, or contact our sales department for more information.
 
 
 
We're happy to announce we've released a set of client utilities that can be used to connect your website with called, . Available on Nuget, is a set of .NET client utilities that allows your users to authenticate with their Social Identity Provider to log in to your site.
Install via NuGet, Install-Package StitchzConsumer, or download, and add a reference to the StitchzConsumer DLL into your project. Create a simple authentication request and send the request to your App URL. Example StitchzConsumer code Take the response and log the user in and/or create a session for your user.
* Be responsible with the authenticated user's information and ensure you follow the Identity Provider's Terms of Service and Privacy Policy.
 
 
Thanks for considering to use . We look forward to working with you!
 
Stitchz Development Team
 
Tags: nuget, .net