Trying connect unity with facebook.

Hello,
I am trying to create a C# script that the player will insert their facebook email and password in some UI components and then if the informations are correct the script will automaticaly connect to their account and then store their friend’s name in a list for a later use. My problem is that I don’t have the knowledge to create such a think, so am asking for help from someone else.

Thank you in advance.

Are you asking someone to make the code for you? If so, I recommend looking for assets on the Asset Store or posting a job ad on the forums.

Otherwise, you’ll need to download the Facebook Unity SDK to get started. You can get it here:

After that, it’s just a matter of looking at the API calls you can make. There’s also a sample game project at the bottom of the page.

I also recommend following some Unity UI tutorials for you to learn how to display the info on screen:

1 Like

Why wouldn’t you just use the Facebook sdk? @ suggested this also I do see. Once you implement their login code, it takes care of everything for you. It’s also pretty simple to use.

1 Like