Publisher | Hippo |
---|---|
File size | 58.23kB |
Number of files | 37 |
Latest version | 2 |
Latest release date | 2024-10-19 03:43:15 |
First release date | 2023-07-08 01:23:13 |
Supported Unity versions | 2018.4.2 or higher |
Simple Facebook Sign-In provides Facebook sign-in with OAuth 2.0 for Android, iOS, Windows, Mac, Universal Windows Platform (UWP) and WebGL apps made with Unity.
Benefits:
● Cross-platform user auth for cross-platform games and apps
● No plugins, not 3rd party libs, no dependencies
● No impact to build size
● More security for client-server apps (get access token on a client, get all user data on a server to avoid tampering)
Setup steps:
Please visit our GitHub for setup instructions.
How it works for Android, iOS, Universal Windows Platform:
● Request an auth code with redirecting to the app using deep linking
● Receive the auth code by handling Application.deepLinkActivated
● Exchange the auth code for an access token using UnityWebRequest
● Get user info (OpenID, name, email) using the access token with UnityWebRequest
How it works for Windows and Mac:
● Request an auth code with loopback to localhost
● Receive the auth code by listening localhost using System.Net.HttpListener
● Exchange the auth code for an access token using UnityWebRequest
● Get user info (OpenID, name, email) using the access token with UnityWebRequest
How it works for WebGL:
● Request an access token with redirecting by URL (the app will be launched in a new browser tab)
● Get the access token from Application.absoluteURL
● Get user info (OpenID, name, email) using the access token with UnityWebRequest
Known issues:
● AndroidManifest.xml workaround for Unity 2022
● Some web browsers may block deep links by default. Test on another device or browser if redirecting doesn't happen.
Support:
● GitHub - Wiki
● GitHub - FAQ & Troubleshooting
● GitHub - Bugs & requests
● Discord - Questions, live chat with developers
It would be super awesome if you rate ★★★★★ our asset and leave your feedback! Your reviews inspire us for creating and improving our assets. Thanks and good luck with your projects!
Benefits:
● Cross-platform user auth for cross-platform games and apps
● No plugins, not 3rd party libs, no dependencies
● No impact to build size
● More security for client-server apps (get access token on a client, get all user data on a server to avoid tampering)
Setup steps:
Please visit our GitHub for setup instructions.
How it works for Android, iOS, Universal Windows Platform:
● Request an auth code with redirecting to the app using deep linking
● Receive the auth code by handling Application.deepLinkActivated
● Exchange the auth code for an access token using UnityWebRequest
● Get user info (OpenID, name, email) using the access token with UnityWebRequest
How it works for Windows and Mac:
● Request an auth code with loopback to localhost
● Receive the auth code by listening localhost using System.Net.HttpListener
● Exchange the auth code for an access token using UnityWebRequest
● Get user info (OpenID, name, email) using the access token with UnityWebRequest
How it works for WebGL:
● Request an access token with redirecting by URL (the app will be launched in a new browser tab)
● Get the access token from Application.absoluteURL
● Get user info (OpenID, name, email) using the access token with UnityWebRequest
Known issues:
● AndroidManifest.xml workaround for Unity 2022
● Some web browsers may block deep links by default. Test on another device or browser if redirecting doesn't happen.
Support:
● GitHub - Wiki
● GitHub - FAQ & Troubleshooting
● GitHub - Bugs & requests
● Discord - Questions, live chat with developers
It would be super awesome if you rate ★★★★★ our asset and leave your feedback! Your reviews inspire us for creating and improving our assets. Thanks and good luck with your projects!