Title: codewisp's Replies | WordPress.org

---

# codewisp

  [  ](https://wordpress.org/support/users/codewisp/)

 *   [Profile](https://wordpress.org/support/users/codewisp/)
 *   [Topics Started](https://wordpress.org/support/users/codewisp/topics/)
 *   [Replies Created](https://wordpress.org/support/users/codewisp/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/codewisp/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/codewisp/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/codewisp/engagements/)
 *   [Favorites](https://wordpress.org/support/users/codewisp/favorites/)

 Search replies:

## Forum Replies Created

Viewing 1 replies (of 1 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Facebook Connect] Facebook Connect error: login process failed!](https://wordpress.org/support/topic/facebook-connect-error-login-process-failed/)
 *  [codewisp](https://wordpress.org/support/users/codewisp/)
 * (@codewisp)
 * [15 years ago](https://wordpress.org/support/topic/facebook-connect-error-login-process-failed/#post-1832111)
 * Following JustinSainton’s advice, I modified functions.php to fix the issue of
   file_get_contents being disabled for remote files:
 * I replaced the line:
    `$user = json_decode(@file_get_contents('https://graph.
   facebook.com/me?access_token=' . $cookie['access_token']));`
 * With:
 *     ```
       $remote_get = wp_remote_get('https://graph.facebook.com/me?access_token=' . $cookie['access_token']);
       $body_content = $remote_get['body'];
       $user = json_decode($body_content);
       ```
   
 * …and this fixed the issue for me.
 * I’m new to WordPress.org and I don’t know if this is the appropriate place to
   post bug fixes, but I just submitted this out of impulse since I managed the 
   fix the error on my side.

Viewing 1 replies (of 1 total)