From dee4078832d930262e09819a1a2a079ee78c8be1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A1bor=20T=C3=B3th?= Date: Mon, 26 May 2014 19:18:18 +0200 Subject: [PATCH] include javascript sdk version at FB.init This is a required parameter according to the docs --- facebook.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/facebook.php b/facebook.php index ee191e0b..22d0ae24 100644 --- a/facebook.php +++ b/facebook.php @@ -265,7 +265,8 @@ public function register_js_sdk() { add_filter( 'script_loader_src', array( 'Facebook_Loader', 'async_script_loader_src' ), 1, 2 ); $args = array( - 'xfbml' => true + 'xfbml' => true, + 'version' => 'v1.0', ); if ( is_admin() ) { $args['status'] = true;