Facebook Unity SDK Tutorial – Share, Invite, Get Friends (Code)

6  comments

Learn how to integrate Facebook SDK into your Unity game!

In this tutorial you will learn how to share, send game requests and invites and how to get friends who are also playing your game. Most importantly though, you will learn how to set everything up so that your game can be up and running in no time!

This post contains all the code that’s been written in this YouTube video.

 

FacebookScript.cs

About the author 

Matt Rešetár

Matt is an app developer with a knack for teaching others. Working as a Flutter freelancer and most importantly developer educator, he doesn't have a lot of free time 😅 Yet he still manages to squeeze in tough workouts 💪

You may also like

Flutter Bloc & Cubit Tutorial

Flutter Custom & Staggered Page Transition Animation Tutorial

  • Hello, thanks for the post
    i tried the code but it doesnt work, the button doesnt react on the android device (samsung s6). In the unity Editor, the dialog shows up but on the device nothing works.
    I use the facebook sdk v 7.10.1 and the new version of unity 5.4.5
    In roles on the facebook page, i have only my account as administrator. I ve paste all the informations from unity.
    Can you help me please ?
    Thanks

  • I am searching for, how to implement requesting in game items (coins, locked items such as specific weapons etc), I’ve spend a lot of time to find a way, but no luck,
    can you please guid me on it.
    thanks
    Pramod Kumar

  • {"email":"Email address invalid","url":"Website address invalid","required":"Required field missing"}
    >