some changes in facebook api from index.js