Yes, I know this is really a Facebook question but I can’t find any place on the facebook dev site to ask questions specifically about their Unity SDK.
Basically I’m using Javascript and as soon as I try to do the simplest piece of code:
Check that you’ve included the FB into the javascript youre calling that function
(I’m not sure that the FB SDK is available for javascript thought, but the classes calls should be the same as the reference)
In the docs from the facebook page there’s plenty of examples.
If you can’t manage to make it work on javascript write a wrapper or change to C#.
P.S: Make sure your settings from the Facebook->Edit Settings menu are set too.
The Facebook SDK only works in C#. It took me a while to figure that out too. If you need help translating it to C#, you can use this for help. Its a good start, but you will still have to run through it and fix a lot by hand. Convert unity javascript (unityscript) to C#