FB.Login won't work on build

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);
}

Are you running it inside the Facebook canvas? For security reasons you can’t use the Facebook SDK from the web player unless you are on canvas