Hello!
I didn’t exactly know where I could post this, so if it is the wrong section - could a mod move my thread to the correct forum?
Basically, I have just come across the Facebook SDK for unity, and I have seen a couple of tutorials - that’s been really good. However, I still feel quite unfamiliar with the SDK - as I find the Facebook references rather odd. So what I am asking, do you know where I can find tutorials covering everything Facebook related?
For example;
I am trying to grab both profile username, id and birthday. However, I can only grab one thing at a time, while trying to grab the birthday gives me an error. This is what I have;
public void Login() {
if (FB.IsInitialized == true) {
if(FB.IsLoggedIn) {
} else {
FB.Login ("email,user_birthday", AuthCallBack);
}
}
}
void AuthCallBack(FBResult result) {
if (result.Error != null) {
Debug.Log ("An error occured");
}
Debug.Log ("Success");
FB.API("me?fields=birthday", Facebook.HttpMethod.GET, NameCallBack);
}
void NameCallBack(FBResult result) {
IDictionary dict = Facebook.MiniJSON.Json.Deserialize(result.Text) as IDictionary;
text.text = dict["birthday"].ToString();
}
All answers are appreciated. Thanks!