edited controller to return json response
created facebook service