Updated with base-64 and fb invitation accepting.