Title: erichi's Replies | WordPress.org

---

# erichi

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

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

 Search replies:

## Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)

 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [[Blocksy] Theme Blocks Getting Started](https://wordpress.org/support/topic/theme-blocks-getting-started/)
 *  Thread Starter [erichi](https://wordpress.org/support/users/erichi/)
 * (@erichi)
 * [1 year, 5 months ago](https://wordpress.org/support/topic/theme-blocks-getting-started/#post-18304287)
 * Thanks for the reply.
 * I figured that the extra blocks used to be part of the theme, as I have seen 
   this kind of architecture change forced on other theme authors. I would have 
   installed the Companion sooner, but the base theme had been meeting my needs 
   very well until recently.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Simple Facebook Connect] Extended Permissions Issue](https://wordpress.org/support/topic/extended-permissions-issue/)
 *  [erichi](https://wordpress.org/support/users/erichi/)
 * (@erichi)
 * [13 years ago](https://wordpress.org/support/topic/extended-permissions-issue/#post-3984045)
 * You probably need to set your URL in the section titled: “Website with Facebook
   Login,” which has the “Site URL” field.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Simple Facebook Connect] sfc_remote & malformed access token](https://wordpress.org/support/topic/sfc_remote-malformed-access-token/)
 *  [erichi](https://wordpress.org/support/users/erichi/)
 * (@erichi)
 * [13 years ago](https://wordpress.org/support/topic/sfc_remote-malformed-access-token/#post-3866064)
 * The problem is that function sfc_remote in file sfc-base.php is not properly 
   parsing the oauth/access_token response from Facebook, which then causes “Malformed
   access token” errors.
 * The following change solved my login problem where the user’s e-mail address 
   was not being provided:
 * I replaced the following problem code:
 *     ```
       if (!is_wp_error($resp) && 200 == wp_remote_retrieve_response_code( $resp )) {
       	$args['access_token'] = str_replace('access_token=','',$resp['body']);
       	$saved_access_tokens[$obj] = $args['access_token'];
       ```
   
 * with:
 *     ```
       if (!is_wp_error($resp) && 200 == wp_remote_retrieve_response_code( $resp )) {
       	$fb_params = array();
       	parse_str($resp['body'], $fb_params);
       	$args['access_token'] = $fb_params['access_token'];
       	$saved_access_tokens[$obj] = $args['access_token'];
       ```
   

Viewing 3 replies - 1 through 3 (of 3 total)