|
|
|
|
Socialize Module for DrupalFrom $1Table of contents
IntroductionGigya Socialize Module for Drupal provides a single API that aggregates authentication and social APIs from Facebook Connect, MySpace ID, Twitter, Yahoo, LinkedIn and OpenID providers including Google, AOL and WordPress. The Gigya module for Drupal is fully configurable, requiring little time to install. Gigya’s Socialize Module for Drupal makes it easy for Drupal site owners to:
We invite you to watch our webinar, which provides a walkthrough of the Gigya Socialize Module and tips for implementing it on your Drupal site.
Installing the Gigya Socialize ModuleInstalling the Gigya Socialize module requires a bit more than downloading and enabling the module. Please follow the Gigya Module installation steps:
Note: Please make sure you have installed the preliminary required modules, which are defined in the Dependencies section on the Gigya Socialize Module page on drupal.org
Configuring the Gigya Socialize ModuleTo configure the Gigya Socialize Module, login as Site Administrator and then go to Administer->Site Configuration->Gigya. Your configuration options are:
Networks available to socializeSelect the social networks that you wish to make available for user authentication:
Your selection will affect the user interface of the Gigya Login Widget, which will now display the icons of the selected social networks:
Parameters for Login UIConfigIn this section you may configure the user interface of the Login block area.
Login configuration options are:
Suppress Drupal loginIf you check the following checkbox, your Login block area will include only Gigya's Login widget and exclude Drupal's standard login.
Note: Adding "/user" to your site's URL points to a page that includes the standard Drupal login. If you disable the standard Drupal login, the site administrator will be able to log in via the "/user" page.
Enable Linking of social networks accountsChecking the following checkbox, will enable users to login with their Social Network credentials and map those to their existing Drupal account.
A new section will appear at the bottom of the registration from (see screen shot below), that allows the user to link his existing Drupal account to the Social Network credentials he logged in with:
Public Registrations SettingsThis section is an extension and refinement of Drupal's standard "User" settings->"Public Registration" section. We have introduced a new option: whether or not to allow users to create regular Drupal accounts outside Socialize.
The first option, which is a new option that is not offered by the standard Drupal "User" settings, means that users can create new accounts only via Socialize registration. This option should be used in conjunction with checking the "Suppress Drupal login" checkbox above. The second and third options allow users to create Drupal accounts directly, without using Socialize. This is possible only if the "Suppress Drupal login" checkbox above is not checked.
Widget DesignThis following configuration section provides several parameters for configuring the look-and-feel of the Gigya Socialize Login Widget. You can specify captions, sizes and colors:
Advanced SettingsThe following section provides some options for advanced UI configuration:
URL redirect after loginThis field provides the option of specifying the URL to which users will be redirected after they log in. The default setting redirects the user to the "user" page. The URL you enter in this field should be relative to your site URL and should not contain an initial or final slash. Please do not enter the entire URL. For example, let's assume your site's URL is "www.yoursite.com" and you enter "node/add" in this field. In this case, your users will be redirected to "www.yoursite.com/node/add" after logging in. Custom Login Icons URLThis field lets you replace the icons of the social network buttons on the Login UI.
To replace the icons, first create a resource library SWF file which contains your custom icons (for guidance, please consult the Create a SWF file which contains your custom icons section), then enter the URL of your SWF file in this field. LoginUI container IDIn this field, you can define an alternative container in which the Gigya Login Widget will be displayed. By default, the Widget is placed in divConnect, which is Drupal's standard Login block area.
Login UIConfig Advanced codingThe Gigya website features a Login Widget Setup Wizard. This Setup Wizard allows you to modify some settings, while previewing the changes as you make them. The Wizard then generates code which is based on your modifications. You may grab the generated code and paste it into the "Login UIConfig Advanced coding" textbox. The settings which the code in this textbox provides override the corresponding Login UI settings that are defined in this page. Gigya's Login Widget Setup Wizard:
Parameters for editConnections UIConfigThe Gigya Socialize Edit Connections Widget enables ones to establish connections to additional social networks and disconnect existing connections. In addition to being able to login using a specific social network, users can connect to additional social networks so they can send status updates, share with friends, etc. on multiple social networks. This also applies to regular Drupal logged in users. So, users who logged in using the standard Drupal login can now connect to one or more social networks and see their friends, send status updates, etc. The Gigya Socialize Edit Connections Widget appears in My Account -> Edit -> Social Networks:
The Widget displays user information from each social network to which the user is connected. It also provides a disconnect option and enables the user to connect to all the social networks to which she is not connected. The configuration section provides several parameters for configuring the look-and-feel of the Gigya Socialize Edit Connections Widget.
Required services for socialize connect
In this section you can determine which social networks will be available for the user to connect to, using the Edit Connections Widget. Each of the checkboxes represents a Social Network capability. Not all the Social Networks possess the entire list of capabilities. The following list specifies the capabilities of the currently supported providers:
For example, if you check the "newsfeed" checkbox, your Edit Connections Widget will include only social networks which support newsfeeds. Currently this means that your Edit Connections Widget will include only Facebook and Yahoo buttons. In the future, however, if more social networks support newsfeeds they will automatically appear in the Edit Connections Widget.
Design customizationYou may specify caption, sizes and colors for the Edit Connections Widget. This is done in a similar manner as for the Login Widget.
Advanced SettingsThe following section provides some advanced UI configuration settings: editConnectionsUI container IDIn this field you may define an alternative container in which you want to display the Gigya Friend Selection Widget. editConnectionsUI UIConfig Advanced codingThis textbox is for advanced UI customizations. It employs Gigya's UIConfig parameter, which is an XML string that provides detailed control over the look-and-feel of the Widget. The settings provided by the code in this textbox override the Edit Connections UI settings above.
Gigya user profile pictureChecking the following check-box allows users to connect their social network profile picture to their Drupal profile picture:
Gigya <=> Drupal Profile MappingsThis section enables one to configure the mapping between user information fields that Gigya provides (by pulling from social networks) and profile fields in the Drupal website. The mapping configuration is used in the user registration - the registration form will be pre-populated with data pulled from the user's social network. This configuration section includes the list of profile fields defined in your Drupal website. Each profile field includes a dropdown with fields that Gigya can provide. The list of fields that Gigya can provide depends on which social network the user is connected to and what information he has provided on that network.
Facebook Fields PopulationWhen a new user registers to your site using his Facebook account, the registration form may be pre-populated will data pulled from the user's Facebook profile. If you wish to activate the form pre-population, please check the following check box:
Socialize Actions and TriggersThe option of using Actions and Triggers constitutes a significant part of the customizable abilities which the Gigya Socialize Module features. The Gigya Socialize Module provides a Drupal advanced action: "Share UI of Gigya Socialize". This action needs to be created and configured first before it may be used. Once you have configured the Gigya Module Actions, the next step is to proceed to the Triggers Module page and assign these actions to system events.
This section explains how to create and configure the Gigya Socialize Action, and provides a walkthrough example.
The "Share UI of Gigya Socialize" actionThis action pops Gigya's Share widget:
The Share Widget is a pop-up dialog, allowing the user to post his action to social networks. The user is given an option to choose which social networks he want to post the content to, edit his personal message, and get a sneak preview of the feed item. When the user presses the "Share" button, Gigya will publish the feed item to each of the social networks which the user selected (on the left hand side of the widget). During the publishing process, the Share widget will prompt 'connect' dialogs aiming to connect the user to the destinations he chose and to which he is not yet connected.
The configuration options for this Action are:
Walkthrough ExampleIn this example, we would like to pop the "Share" widget each time a user comments on a Story. Step 1: Create a new "Share UI of Gigya Socialize" Action. Step 2: Configure the Action:
Step 3: Assign Action to Trigger
That's it! From now on, each time a user comments on a Story, he will be presented with the Share widget, which will give him the option to post his comment to various Social Networks.
In the following example, a user named "Assafeleven Esh" posted a comment on a Story named "Sunday Story":
After pressing the "Share" button, the following item will appear on the Facebook News Feed stream of the user and of his friends:
Advanced: Adding a media item to published user actionsYou can add a media item (image/video) to the News Feed items that are published automatically through the "Share UI of Gigya Socialize" action. This involves editing the Gigya Module code. Here is an example of a published action that includes a video:
To add a media item to published actions, please follow these instructions:
Tags:
|
||||
|