Moves facebook code into index.