Title: Problems with Facebook shortcode
Last modified: August 21, 2016

---

# Problems with Facebook shortcode

 *  Resolved [jgrmstr](https://wordpress.org/support/users/jgrmstr/)
 * (@jgrmstr)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/problems-with-facebook-shortcode/)
 * Hi,
 * I’ve just updated from your former popup plugin.
    Well, congrats for the ergonomic
   admin panel.
 * I have some difficulties to configure the Facebook like button, as you can see
   here : [http://42mag.fr/2014/08/fire-challenge-nouveau-defi-facebook/](http://42mag.fr/2014/08/fire-challenge-nouveau-defi-facebook/)
 * Buttons do not align properly.
    Plus, I can’t get to make the “show faces” option
   to work.
 * Please give me some help about that !
 * [https://wordpress.org/plugins/popups/](https://wordpress.org/plugins/popups/)

Viewing 15 replies - 1 through 15 (of 25 total)

1 [2](https://wordpress.org/support/topic/problems-with-facebook-shortcode/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/problems-with-facebook-shortcode/page/2/?output_format=md)

 *  Plugin Author [Damian](https://wordpress.org/support/users/timersys/)
 * (@timersys)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/problems-with-facebook-shortcode/#post-5150132)
 * Hi to use faces you need to setup layout to standard but it will not align well
   i think.
    Also if you move fb to the center i think it will look better. put 
   all shortcodes together without spaces between them
 *  Plugin Author [Damian](https://wordpress.org/support/users/timersys/)
 * (@timersys)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/problems-with-facebook-shortcode/#post-5150187)
 * check new version for faces fix
 *  Thread Starter [jgrmstr](https://wordpress.org/support/users/jgrmstr/)
 * (@jgrmstr)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/problems-with-facebook-shortcode/#post-5150224)
 * I confirm that only admin see the Popups item in the menu with the new version.
 * Another question about Facebook configuration : how can I set the language of
   Facebook’s widget ? It is in english, I’d like to set it to french.
 *  Plugin Author [Damian](https://wordpress.org/support/users/timersys/)
 * (@timersys)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/problems-with-facebook-shortcode/#post-5150232)
 * It takes the language of your site. You wp-admin is in french?
    in wp-config.
   php what locale you have configured?
 *  Thread Starter [jgrmstr](https://wordpress.org/support/users/jgrmstr/)
 * (@jgrmstr)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/problems-with-facebook-shortcode/#post-5150242)
 * Yes my wp-admin is in french.
    In wp-config.php it’s set to “fr_fr” since the
   beginning but the Facebook shortcode is displyaed in english
 *  Plugin Author [Damian](https://wordpress.org/support/users/timersys/)
 * (@timersys)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/problems-with-facebook-shortcode/#post-5150264)
 * Could you check your source code to see what file is being called for Facebook
   javascripts? Should be located in the header of your site
 *  Thread Starter [jgrmstr](https://wordpress.org/support/users/jgrmstr/)
 * (@jgrmstr)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/problems-with-facebook-shortcode/#post-5150273)
 * When I seek in the source code of the page, at the place of your shortcode in
   the popup, here is the div for Facebook :
 * <div class=”fb-like fb_iframe_widget” data-width=”” data-href=”[https://www.facebook.com/42mag.fr&#8221](https://www.facebook.com/42mag.fr&#8221);
   data-layout=”standard” data-action=”like” data-show-faces=”true” data-share=”
   false” fb-xfbml-state=”rendered” fb-iframe-plugin-query=”action=like&app_id=&
   href=https%3A%2F%2Fwww.facebook.com%2F42mag.fr&layout=standard&locale=en_US&sdk
   =joey&share=false&show_faces=true”>…</div>
 * locale=en_US
    It seems like your plugin doesn’t load the right language
 *  Plugin Author [Damian](https://wordpress.org/support/users/timersys/)
 * (@timersys)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/problems-with-facebook-shortcode/#post-5150283)
 * On which page or your site I can check the popup active?
    The code I meant was
   something like: `<script type="text/javascript" src="http://connect.facebook.
   net/fr_FR/all.js#xfbml=1"></script>`
 * Depending on the language setting you have in wp-config.php that scripts should
   load with the right locale.
 *  Thread Starter [jgrmstr](https://wordpress.org/support/users/jgrmstr/)
 * (@jgrmstr)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/problems-with-facebook-shortcode/#post-5150284)
 * You can check the active popup on [http://42mag.fr/2014/08/monopoly-ledition-speciale-the-legend-of-zelda-arrive/](http://42mag.fr/2014/08/monopoly-ledition-speciale-the-legend-of-zelda-arrive/)
 * OK so I’ve searched in the page code source, and here is the call :
    <script 
   src=”[http://connect.facebook.net/fr-FR/all.js?ver=1.0.5#xfbml=1&#8243](http://connect.facebook.net/fr-FR/all.js?ver=1.0.5#xfbml=1&#8243);
   type=”text/javascript”>
 * The script at [http://connect.facebook.net/fr-FR/all.js?ver=1.0.5#xfbml=1](http://connect.facebook.net/fr-FR/all.js?ver=1.0.5#xfbml=1)
   returns /*1407239775,,JIT Construction: v1356228,en_US*/
 * There is an error with the locale parameter. It should be fr_FR instead of fr-
   FR. ([http://connect.facebook.net/fr_FR/all.js?ver=1.0.5#xfbml=1](http://connect.facebook.net/fr_FR/all.js?ver=1.0.5#xfbml=1)
   returns the correct locale)
 *  Plugin Author [Damian](https://wordpress.org/support/users/timersys/)
 * (@timersys)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/problems-with-facebook-shortcode/#post-5150285)
 * Try by changing in popups/public/class-social-popup.php line 333
    the following:`
   wp_register_script( 'spu-facebook', 'http://connect.facebook.net/'.get_bloginfo('
   language').'/all.js#xfbml=1', array('jquery'), self::VERSION, FALSE);`
 * to
 * `wp_register_script( 'spu-facebook', 'http://connect.facebook.net/'.get_locale().'/
   all.js#xfbml=1', array('jquery'), self::VERSION, FALSE);`
 * Let me know fi that works
 *  Thread Starter [jgrmstr](https://wordpress.org/support/users/jgrmstr/)
 * (@jgrmstr)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/problems-with-facebook-shortcode/#post-5150286)
 * I’ve made the change.
 * Now the script is not called at all
 *  Plugin Author [Damian](https://wordpress.org/support/users/timersys/)
 * (@timersys)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/problems-with-facebook-shortcode/#post-5150287)
 * Do you get an error ? Please double check the entered code or that the popup 
   is active on that page.
 * I just tried locally and seems to work fine.
 * Im trying to check [http://42mag.fr/2014/08/monopoly-ledition-speciale-the-legend-of-zelda-arrive/](http://42mag.fr/2014/08/monopoly-ledition-speciale-the-legend-of-zelda-arrive/)
   but I don’t see the popup there
 *  Thread Starter [jgrmstr](https://wordpress.org/support/users/jgrmstr/)
 * (@jgrmstr)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/problems-with-facebook-shortcode/#post-5150288)
 * I do not have any error.
 * Popup configuration has not changed.
 * In the plugin editor, popups/public/class-social-popup.php is now flagged as 
   disabled (but the plugin is not disabled).
    I don’t know how to reactivate one
   file ??
 *  Plugin Author [Damian](https://wordpress.org/support/users/timersys/)
 * (@timersys)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/problems-with-facebook-shortcode/#post-5150289)
 * Try editing your files in FTP to avoid problems.
 * I pasted the code in [https://gist.github.com/timersys/796ff429951b771e9916](https://gist.github.com/timersys/796ff429951b771e9916),
   in case copying from here is giving problems
 *  Thread Starter [jgrmstr](https://wordpress.org/support/users/jgrmstr/)
 * (@jgrmstr)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/problems-with-facebook-shortcode/#post-5150290)
 * No cpoying is not the problem.
 * It is too late for editing in FTP : the file is flagged as deactivated and I 
   don’t know how to reactivate it…
 * I tried deactivate then reactivate the plugin but with no avail…

Viewing 15 replies - 1 through 15 (of 25 total)

1 [2](https://wordpress.org/support/topic/problems-with-facebook-shortcode/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/problems-with-facebook-shortcode/page/2/?output_format=md)

The topic ‘Problems with Facebook shortcode’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/popups_efeef0.svg)
 * [Popups - WordPress Popup](https://wordpress.org/plugins/popups/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/popups/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/popups/)
 * [Active Topics](https://wordpress.org/support/plugin/popups/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/popups/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/popups/reviews/)

 * 25 replies
 * 2 participants
 * Last reply from: [jgrmstr](https://wordpress.org/support/users/jgrmstr/)
 * Last activity: [11 years, 9 months ago](https://wordpress.org/support/topic/problems-with-facebook-shortcode/page/2/#post-5150302)
 * Status: resolved