Viewing 5 replies - 1 through 5 (of 5 total)
  • I have the same probleme?
    i saw in data base -> table wp_options
    [ facebook_application ] [ a:0:{} ]
    there is a way to put directly the App ID in data base?

    thank for any help.

    ok it works for me
    I copied into the database, content field ‘facebook_application’ of an old instalation of another website.

    a:3:{s:6:”app_id”;s:15:”XXXXXXXXXXXXXX”;s:10:”app_secret”;s:32:”YYYYYYYYYY”;s:12:”access_token”;s:43:”XXXXXXXXXXXXXX|ZZZZZZZZZZZZZZZ”;}

    and i paste it in the database of my new instalation
    so it works for the moment. I hope soon a new update to fix bug of this plugin

    @eaglend

    Where can I get “access_token”?

    The problem is facebook has set a five second timeout on their access token request. The request times out and the form values are not saved.

    I fixed this by increasing the timeout to 10 seconds.

    The code can be found on line 234 in:
    facebook/includes/facebook-php-sdk/class-facebook-wp.php

    try {
       $response = self::handle_response( wp_remote_get( self::$DOMAIN_MAP['graph'] . 'oauth/access_token?' . http_build_query( $params, '', '&' ), array(
    	'redirection' => 0,
    	'httpversion' => '1.1',
    	'timeout' => 5,
    	'headers' => array( 'Connection' => 'close' ),
    	'user-agent' => self::generate_user_agent()
      ) ) );
    
    } catch( WP_FacebookApiException $e ) {
    	return '';
    }

    I just replaced the ‘timeout’ value of 5 with a larger number.

    I just was having the same issue, and realized that in my Facebook App Settings I had a server White List setup. Had to add the new server IP to that list and then it took as expected.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Cannot save App ID’ is closed to new replies.