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

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.



Matt Rešetár

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

  • krishnakumaR says:

    I tried this but the other end,my friend, didn’t get notification or anything.
    thanks in advance.

  • Fabo says:

    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 ?

  • Pramod says:

    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.
    Pramod Kumar

  • argenuto says:

    thnx, you saved my job! <3

  • Rachid says:

    Hello Sir
    help me please

  • >