Title: [shortcode]
Last modified: August 20, 2016

---

# [shortcode]

 *  Resolved [christonphero](https://wordpress.org/support/users/christonphero/)
 * (@christonphero)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/shortcode-37/)
 * Line 348 of facebookinviter.php
 *     ```
       FB.init({
       		    appId:'<?php echo $appid; ?>',
       		    cookie:true,
       		    status:true,
       		    frictionlessRequests:true,
       		    xfbml:true
       		    });
       		    function FacebookInviteFriends()
       		    {
       		    FB.ui({
       		    method: 'apprequests',
       		    title: '<?php echo $title; ?>'
       		    message: '<?php echo $message; ?>'
       		    });
       		    }
       ```
   
 * Missing comma after the title element breaks the popup when the shortcode is 
   used, widget works fine. 🙂
 * [http://wordpress.org/extend/plugins/facebook-friends-inviter/](http://wordpress.org/extend/plugins/facebook-friends-inviter/)

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

 *  Thread Starter [christonphero](https://wordpress.org/support/users/christonphero/)
 * (@christonphero)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/shortcode-37/#post-3549649)
 * Also, I did notice that I couldn’t use single quotes in the message because they
   get escaped.
 * For me personally, I just added to line 322 so that it changed the single quotes
   back and escaped them:
 * `$message=esc_attr($message); /*added->*/ $message = str_replace('&#039 ;',"\\'",
   $message);`
 * But esc_attr gets rid of double quotes and other things that people besides me
   would possibly still want.
 * _Anyways, besides that it works fine! Those were the two problems that prevented
   me from being able to simply install the plugin and use it. Peace._
 *  [funmi omoba](https://wordpress.org/support/users/funmi-omoba/)
 * (@funmi-omoba)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/shortcode-37/#post-3549677)
 * Same here, if you are not using the widget, the plugin shortcode will not popup.
 *  Plugin Author [Lee Hodson (VR51)](https://wordpress.org/support/users/leehodson/)
 * (@leehodson)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/shortcode-37/#post-3549744)
 * I’ve updated to version 1.0.3 with the missing comma added and a change in sanitization.
   You can now use double quotes in the widget. Will update again at some point 
   to alter the text input/output fields.
 * While updating I noticed the sidebar widget’s settings override the shortcode’s
   settings. Will make a few more changes to correct that this week.
 * Thank you to both of you 🙂
 *  Plugin Author [Lee Hodson (VR51)](https://wordpress.org/support/users/leehodson/)
 * (@leehodson)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/shortcode-37/#post-3549810)
 * I’m marking this as resolved 🙂
 *  Thread Starter [christonphero](https://wordpress.org/support/users/christonphero/)
 * (@christonphero)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/shortcode-37/#post-3549811)
 * do it. lol
 *  Plugin Author [Lee Hodson (VR51)](https://wordpress.org/support/users/leehodson/)
 * (@leehodson)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/shortcode-37/#post-3549812)
 * Haha think I might just 😉
 * I’ll be pushing out a new update over the next few hours. This update works better
   with “double quotes” in text fields. Single quotes in the title field stop the
   popup box popping up so I don’t recommend them.

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

The topic ‘[shortcode]’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/facebook-friends-inviter.svg)
 * [Facebook Friends Inviter](https://wordpress.org/plugins/facebook-friends-inviter/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/facebook-friends-inviter/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/facebook-friends-inviter/)
 * [Active Topics](https://wordpress.org/support/plugin/facebook-friends-inviter/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/facebook-friends-inviter/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/facebook-friends-inviter/reviews/)

 * 6 replies
 * 3 participants
 * Last reply from: [Lee Hodson (VR51)](https://wordpress.org/support/users/leehodson/)
 * Last activity: [13 years, 3 months ago](https://wordpress.org/support/topic/shortcode-37/#post-3549812)
 * Status: resolved