fix friendBoard issue and query in Photos