WP_Error in json_decode (1 post)

  1. faddoo
    Posted 3 years ago #

    Im trying to build a facebook login connector for my wordpress site, but the json_decode seems not working. Anyone got an idea or know what this is?

    Fatal error: Cannot use object of type WP_Error as array in \lib\core\facebook.php on line 102

    Line 102:
    $user = json_decode( $data['body'] );

    i tried with json_encode but still have the same problem.

Topic Closed

This topic has been closed to new replies.

About this Topic