function setPendingEmailCredentials() {
  // Pending credential stored.
  var credential = firebaseui.auth.idp.getAuthCredential({
    'accessToken': 'facebookAccessToken',
    'providerId': 'facebook.com'
  });
  pendingEmailCred = new firebaseui.auth.PendingEmailCredential(
     'user@example.com', credential);
  firebaseui.auth.storage.setPendingEmailCredential(
      pendingEmailCred, app.getAppId());
}
Creates and saves the credentials, necessary for the view to load.