update Facebook api for browser init