2019-02-18

Facebook Login for Unity

Sometimes we need to add "Facebook login" to identify a user on our game / app.

For that, its available the Facebook SDK, but also we need Openssl and java.

For the purpose of login in and getting scores, we can use a ver useful Asset, I use it, EasyLeaderBoard, and heres how to config:

1- Create your app on "Facebook developers page", and copy "APP id".

2- Go to Unity, menu "Facebook"-"Edit settings", and paste the app id. You will get two texts (package name and class name), copy and paste them on "Facebook developers page", and save changes.



*You can get an error on Unity saying "Openssl not found", or "Keytool not found", follow these steps: (from vfxjex at https://answers.unity.com/questions/616484/open-ssl-not-found.html)


1) Download and install OpenSSL. http://slproweb.com/products/Win32OpenSSL.html
 OpenSSL v#.#.# (not Light)











2) Add the OpenSSL directory to your path.

Go to: Control Panel > System > Advanced system settings > Environment Variables

Select the Variable "Path" in the "System variables" window and click Edit.

Add the path >> ";C:\Program Files\OpenSSL-Win64\bin"


3) If you get the "Keytool error", you need to add the JDK (Java Development Kit) bin directory to the Path variable value >>  JDK bin path. e.g. I added ";C:\Program Files\Java\jdk1.7.0_45\bin" to the end of the value text.

Restart Unity3D.
 

No comments:

Post a Comment

Hi!
Post your comments here
Thanks!!

Hola
Deja tus comentarios aquí, muchas gracias!!

Facebook Login for Unity

Sometimes we need to add " Facebook login " to identify a user on our game / app. For that, its available the Facebook SDK, but...