- Home /
Question by
Wesley21spelde · Nov 21, 2018 at 11:45 AM ·
scripting problemfacebooknot workinglogin
facebook Login Script user_about_me, user_birthday", AuthCallback ??? not working!
hey guys what did i do wrong?
its somthing with this line... user_about_me, user_birthday", AuthCallback
i dont know how to fix this
using Facebook.Unity;
using UnityEngine;
public class FBHolder : MonoBehaviour
{
void Awake()
{
FB.Init(SetInit, OnHideUnity);
}
private void SetInit()
{
Debug.Log("FaceBook Init done");
if (FB.IsLoggedIn)
{
}
else
{
}
}
private void OnHideUnity(bool isGameShown)
{
if (!isGameShown)
{
Time.timeScale = 0;
}
else
{
Time.timeScale = 1;
}
}
void FBLogin()
{
FB.LogInWithReadPermissions("user_about_me, user_birthday", AuthCallback);
}
void AuthCallback(IResult result)
{
if (FB.IsLoggedIn)
{
Debug.Log("FB Login Worked!");
}
else
{
Debug.Log ("FB LOgin Fail");
}
}
}
Comment
Your answer
Follow this Question
Related Questions
Facebook integration problem 1 Answer
Facebook Unity SDK Auto Login not works? 0 Answers
Problem changing string value. 2 Answers
Foreach loops only runs once, on one object in an array. 1 Answer
Send Message not working (editor?) 2 Answers