This event is triggered whenever an existing users links a social network account to his Drupal account. $event_dispatcher->dispatch(SocialLoginUserCreatedEvent::EVENT_NAME, $event) $event_dispatcher = \Drupal::service('event_dispatcher') $event = new SocialLoginUserCreatedEvent ($user, $data) Dispatches SocialLoginUserCreatedEvent event. Social Login will first create the user account in your Drupal database and then triggerĪn event that includes the created account as well as the used social network profile data. This event is triggered whenever a new user registers using a social network account. To implement your custom processing, we recommend that you first install ourĪnd then adapt that extension to your needs. Social Login dispatches the following events that can per example be used to store additional social network profileĭata in your own database. Please login to your OneAll account, select a Site and click on Social Networks. It has to be done only once for each provider and we will guide you through this process. This process is straightforward and takes only a couple of minutes. To be able to use the plugin, you must therefore register your website. Please note that many social networks require that the webmasters register their website before being able to use their services. Select the social networks that you would like to use by ticking the corresponding checkboxes in your Drupal administration area. To obtain your API credentials, please login to your OneAll accountĪnd open the page Site Settings \ API Settings
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |