   @image_url ||= twitter.profileImageUrl.replace('_normal.', '.')
   @role ||= 'nomination'
 
+PersonSchema.method 'updateFromFacebook', (facebook) ->
+  console.log arguments.cyan
+  @facebook_name = facebook.alias
+  @name ||= facebook.name.full
+  @role ||= 'voter'
+
 PersonSchema.static 'findOrCreateFromTwitter', (twitter, callback) ->
   Person.findOne
     $or: [

_ = require 'underscore'
mongoose = require 'mongoose'
auth = require 'mongoose-auth'
env = require '../config/env'

      myHostname: env.hostname
      appId: env.facebook_app_id
      appSecret: env.secrets.facebook
      findOrCreateUser: (session, accessTok, accessTokExtra, fb) ->
        promise = @Promise()
        Person.findOrCreateFromFacebook fb, (err, person) ->
          return promise.fail err if err
          promise.fulfill person
        promise

ROLES.forEach (t) ->
  PersonSchema.virtual(t).get -> @role == t
