=== Easy Social Login ===
Contributors: tmquadros
Donate link: https://www.paypal.com/donate/?hosted_button_id=QC7BKFDAUXLQQ
Tags: social login, facebook, google, google one tap, windows live, login
Requires at least: 5.0
Tested up to: 6.8
Stable tag: 1.0.8
Requires PHP: 7.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Easily integrate social login options into your WordPress site.

== Description ==

Social Login Integration is a WordPress plugin that allows users to authenticate using their social media accounts. The plugin supports Facebook and Google authentication, making it easier for users to access your site without creating a separate account.

### Key Features:
- **Facebook Login**: Enable users to login with their Facebook account.
- **Google Login**: Allow users to login using their Google account.
- **Google One Tap**: Allow users to login using their Google One Tap.
- **Windows Live Login**: Allow users to login using their Windows Live account.
- **Customizable**: Easily configure settings through the WordPress admin panel.
- **Lightbox Tutorial**: Step-by-step image tutorial for setting up authentication in Facebook and Google.
- **Secure Authentication**: Uses OAuth2 for secure login.

== Installation ==

1. Upload the `social-login-plugin` folder to the `/wp-content/plugins/` directory.
2. Activate the plugin through the 'Plugins' menu in WordPress.
3. Navigate to **Settings > Social Login** to configure the plugin.
4. Follow the tutorial for setting up Facebook and Google authentication.

== External Services ==

This plugin requires the use of third-party external services to facilitate its functionality. Below is a detailed description of each service used, including what data is transmitted, when, and why. Links to the respective terms of service and privacy policies are also provided.

### Facebook API
This plugin integrates with the Facebook API to provide social login functionality.

- **Purpose**: Used for user authentication through Facebook login.
- **Data Sent**: The plugin sends the following data to Facebook's servers:
  - App ID
  - App Secret (for server-side requests)
  - Redirect URI
  - OAuth tokens generated during the login process
  - Facebook OAuth Login URL https://www.facebook.com/v22.0/dialog/oauth
  - Facebook Access Token URL https://graph.facebook.com/v22.0/oauth/access_token
  - Facebook User Profile URL https://graph.facebook.com/me
- **When**: Data is sent during the login process initiated by the user.
- **Privacy Policy and Terms of Service**:
  - [Facebook Terms of Service](https://www.facebook.com/terms.php)
  - [Facebook Privacy Policy](https://www.facebook.com/about/privacy)

### Google API
This plugin integrates with the Google API to provide social login functionality.

- **Purpose**: Used for user authentication through Google login.
- **Data Sent**: The plugin sends the following data to Google’s servers:
  - Client ID
  - Client Secret
  - Redirect URI
  - OAuth tokens generated during the login process
  - Google OAuth Login URL https://accounts.google.com/o/oauth2/auth
  - Google Client Script URL https://accounts.google.com/gsi/client
  - Google OAuth2 One Tap URL https://accounts.google.com/o/oauth2/v2/auth
  - Google URL retrive User Info https://www.googleapis.com/auth/userinfo.profile
- **When**: Data is sent during the login process initiated by the user.
- **Privacy Policy and Terms of Service**:
  - [Google Terms of Service](https://policies.google.com/terms)
  - [Google Privacy Policy](https://policies.google.com/privacy)

### Windows Live API
This plugin integrates with the Windows Live API to provide social login functionality.
- **Purpose**: Used for user authentication through Windows Live login.
- **Data Sent**: The plugin sends the following data to Windows Live's servers:
  - Client ID
  - Client Secret
  - Redirect URI
  - OAuth tokens generated during the login process
  - Windows Live OAuth2 URL https://login.microsoftonline.com/common/oauth2/v2.0/token
  - Windows Live URL retrive User Info https://graph.microsoft.com/v1.0/me
  - Windows Live Scope URL https://graph.microsoft.com/User.Read
  - Windows Live Login URL https://login.microsoftonline.com/common/oauth2/v2.0/authorize
- **When**: Data is sent during the login process initiated by the user.
- **Privacy Policy and Terms of Service**:
  - [Windows Live Terms of Service](https://www.microsoft.com/pt-br/servicesagreement)
  - [Windows Live Privacy Policy](https://privacy.microsoft.com/pt-br/privacystatement)

### WooCommerce (Optional)
If WooCommerce is active on your website, this plugin integrates with WooCommerce pages to offer social login functionality.

- **Purpose**: Enhances user experience by providing social login options on WooCommerce login, registration, and checkout pages.
- **Data Sent**: No additional data is sent to external services directly by WooCommerce integration. The data flow to Facebook and Google APIs is as described above.

**Important Note**: By enabling and using this plugin, you are agreeing to the terms and policies of the respective third-party services used for authentication.

== Frequently Asked Questions ==

= How do I configure the Facebook and Google login? =
After activating the plugin, go to **Settings > Social Login**. You'll find the options to enter your Facebook App ID/Secret and Google Client ID/Secret.

= Where can I find the tutorial for setting up authentication? =
Click on the "Open tutorial" link within the plugin settings to see step-by-step instructions for configuring Facebook and Google login.

= Can I use this plugin with any theme? =
Yes, the plugin is designed to be compatible with any WordPress theme.

= Social Button does not appear in woocommerce My Account =
Activate registration on the Woocommerce configuration page in the Accounts and Privacy tab / Account creation / On “My Account” page.

== Screenshots ==

1. **Facebook Login Settings** - Easily configure your Facebook App ID and Secret.
2. **Google Login Settings** - Configure your Google Client ID and Secret.
3. **Lightbox Tutorial** - Step-by-step guide for setting up Social authentication.
4. **Social Login Buttons** - Frontend view of Social login options.

== Changelog ==

= 1.0.8 =
* Include Windows Live Authentication
* Update Google Module Documentation

= 1.0.7 =
* Updated the Facebook API to v22.0
* Added Facebook settings in several languages
* Added variable eslp_database_version to the Wordpress Database Options table for version control of the plugin database

= 1.0.6 =
* Replaced Rewrite Rules: Removed dependency on permalink structure and replaced rewrite rules with a query string-based approach (?eslp_<MODULE>_oauth_callback=1), ensuring compatibility with all permalink settings.

= 1.0.5 =
* Change escapes as well as some that will allow you to echo HTML safely. to comply with the Wordpress plugin repository document standard.

= 1.0.4 =
* Remove Direct dependencies required in composer.json: facebook/graph-sdk 5.1.4 5.1.4 Facebook SDK for PHP Package facebook/graph-sdk is abandoned, you should avoid using it. No replacement was suggested.
* Conect Facebook OAuth2 directly without SDK composer.
* Change escapes as well as some that will allow you to echo HTML safely. to comply with the Wordpress plugin repository document standard.

= 1.0.3 =
* Update lightbox 2.11.5
* Update composer Packages
* Changing the names of variables, functions, classes and features to comply with the Wordpress plugin repository document standard. (BIG change)

= 1.0.2 =
* Add Shortcode [easy-social-login]
* Update language
* Removed the need to install the Woocommerce plugin to install Easy Social Login

= 1.0.1 =
* Correction to the database configuration after deleting the easy social login.

= 1.0.0 =
* Initial release
* Added support for Facebook and Google authentication
* Google One Tap
* Implemented lightbox tutorial feature

== Upgrade Notice ==

= 1.0.0 =
This is the first stable release. Please set up your Facebook and Google credentials in the plugin settings after installation.

== How to Use ==

1. Once the plugin is activated, go to **Settings > Social Login**.
2. Enter your **App ID** and **App Secret**.
3. Save the changes.
4. Users will now see "Login with your Social Network" buttons on the login page.

== License ==

This plugin is licensed under the GPLv2 or later. See [License URI](https://www.gnu.org/licenses/gpl-2.0.html) for details.

== Credits ==

- Developed by: Thiago Quadros
- Lightbox feature powered by [Lightbox2](https://lokeshdhakar.com/projects/lightbox2/)
- ChatGPT Powerful Developer 