use setting logic to store fb setting
add index for test