Personal photo viewer use FB API in javascript