correct error returning

with this changes the functions will return the error of the fb api instead of "no key 'data' in j"