Update api.js

Facebook API integration parameters added