set facebook api loading in index view