Adding the device id to fb server code. untested.