createGraph receives and processes FB data