updated facebook API code. Now displays but remains undefined