• Resolved peppemessomalex

    (@peppemessomalex)


    Hi,
    there is a problem in the login via facebook and google (HOST is my site url):

    Exception Object ( [message:protected] => Your application id and secret are required in order to connect to Facebook. [string:Exception:private] => [code:protected] => 4 [file:protected] => HOST/www/wp-content/plugins/improve-my-city/hybridauth/Hybrid/Providers/Facebook.php [line:protected] => 35 [trace:Exception:private] => Array ( [0] => Array ( [file] => HOST/www/wp-content/plugins/improve-my-city/hybridauth/Hybrid/Provider_Model.php [line] => 96 [function] => initialize [class] => Hybrid_Providers_Facebook [type] => -> [args] => Array ( ) ) [1] => Array ( [file] => HOST/www/wp-content/plugins/improve-my-city/hybridauth/Hybrid/Provider_Adapter.php [line] => 101 [function] => __construct [class] => Hybrid_Provider_Model [type] => -> [args] => Array ( [0] => Facebook [1] => Array ( [enabled] => 1 [keys] => Array ( [id] => [secret] => ) ) [2] => Array ( [hauth_return_to] => HOST/wp-content/plugins/improve-my-city/hybridauth/slogin.php?provider=Facebook ) ) ) [2] => Array ( [file] => HOST/www/wp-content/plugins/improve-my-city/hybridauth/Hybrid/Auth.php [line] => 277 [function] => factory [class] => Hybrid_Provider_Adapter [type] => -> [args] => Array ( [0] => Facebook [1] => Array ( [hauth_return_to] => HOST/wp-content/plugins/improve-my-city/hybridauth/slogin.php?provider=Facebook ) ) ) [3] => Array ( [file] => HOST/www/wp-content/plugins/improve-my-city/hybridauth/Hybrid/Auth.php [line] => 229 [function] => setup [class] => Hybrid_Auth [type] => :: [args] => Array ( [0] => Facebook [1] => ) ) [4] => Array ( [file] => HOST/www/wp-content/plugins/improve-my-city/hybridauth/slogin.php [line] => 22 [function] => authenticate [class] => Hybrid_Auth [type] => :: [args] => Array ( [0] => Facebook ) ) ) [previous:Exception:private] => )

    Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Improve My City

    (@improvemycity)

    Hello.

    “[message:protected] => Your application id and secret are required in order to connect to Facebook.”

    Make sure you have created a facebook app based on your site url.
    Then set your application id & secret in the hybrid auth configuration file with the ones provided in the facebook app.

    Thread Starter peppemessomalex

    (@peppemessomalex)

    It works thanks,
    for those who were to have the same problem, simply create a facebook app to get id and secret key and insert them in the configuration file:

    https://YOUR-SITE/wp-content/plugins/improve-my-city/hybridauth/config.php

    by entering:

    "Base_url" => "https://YOUR-SITE/path/to/hybridauth/"

    for expample: https://YOUR-SITE/wp-content/plugins/improve-my-city/hybridauth/

    and:

    "Keys" => array ('id' => "PUT_YOURS_HERE", "secret" => "PUT_YOURS_HERE"),

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Facebook and Google Login Problem’ is closed to new replies.