When I use the FB.Login function in the editor, it opens the user token window, but it doesn’t open anything on the build version.
Here’s my code:
void Start() {
StartFacebook();
}
public void StartFacebook() {
FB.Init(InitFunc);
}
private void InitFunc() {
enabled = true;
Debug.Log("Facebook SDK Loaded");
}
public void LoginFacebook() {
FB.Login("user_photos, publish_actions", LoginCallback);
}
private void LoginCallback(FBResult result) {
Debug.Log("ID: " + FB.UserId);
}