Title: SyntaxError: illegal character
Last modified: August 31, 2016

---

# SyntaxError: illegal character

 *  Resolved [fersamp](https://wordpress.org/support/users/fersamp/)
 * (@fersamp)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/syntaxerror-illegal-character-1/)
 * Hi,
    I have a SyntaxError: illegal character when loading home page.
 * In particular:
 *     ```
       <p><script>// <![CDATA[
       (function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) return; js = d.createElement(s); js.id = id; js.src = "//connect.facebook.net/it_IT/sdk.js#xfbml=1&version=v2.5"; fjs.parentNode.insertBefore(js, fjs); }(document, 'script', 'facebook-jssdk'));
       // ]]></script></p>
       ```
   
 * Is this sdk facebook version implicated in Facebook Json Api User plugin?
 * How can I solve this problem?
 * Thank you
 * [https://wordpress.org/plugins/json-api-user/](https://wordpress.org/plugins/json-api-user/)

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

 *  Plugin Author [Ali Qureshi](https://wordpress.org/support/users/parorrey/)
 * (@parorrey)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/syntaxerror-illegal-character-1/#post-7203699)
 * Hi,
 * No, no sdk php or js sdk is integrated with the plugin. it is just a cURL call
   to fb server for the access token.
 * There must be something wrong in your js code.
 *  Thread Starter [fersamp](https://wordpress.org/support/users/fersamp/)
 * (@fersamp)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/syntaxerror-illegal-character-1/#post-7203703)
 * Hi [@ali](https://wordpress.org/support/users/ali/) Qureshi, thank you for help.
 * Since you’re very kind I would like to ask you one other thing about the JSON
   API user .
 * When I add a user on my wordpress site and try to get his profile picture I get
   a link with two initial slash.
    You can see it here:
 * [http://www.dayroma.it/api/user/get_avatar/?user_id=25&type=full](http://www.dayroma.it/api/user/get_avatar/?user_id=25&type=full)
 * I could solve it using parse string manually, but I’d like to understand why 
   and how to change default profile image size(best would be full sized).
 * Thank you again
 *  Plugin Author [Ali Qureshi](https://wordpress.org/support/users/parorrey/)
 * (@parorrey)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/syntaxerror-illegal-character-1/#post-7203734)
 * there are many plugins for setting avatars. Please try these [https://www.sourcewp.com/wordpress-avatar-plugins/](https://www.sourcewp.com/wordpress-avatar-plugins/).
 *  Thread Starter [fersamp](https://wordpress.org/support/users/fersamp/)
 * (@fersamp)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/syntaxerror-illegal-character-1/#post-7203816)
 * Thank you for help.
 * And, why I’m retrieving this JSON?
 * `{"status":"ok","avatar":"\/\/www.gravatar.com\/avatar\/7262c3fd8da0cf5939e15239dd1369af?
   s=150&r=g&d=mm"}`
 * from [http://www.dayroma.it/api/user/get_avatar/?user_id=25&type=full](http://www.dayroma.it/api/user/get_avatar/?user_id=25&type=full)
 * In this JSON the url image is
    `//www.gravatar.com/avatar/7262c3fd8da0cf5939e15239dd1369af?
   s=150&r=g&d=mm`
 * How can avoid // at the path beginning?
 * Thank you

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

 The topic ‘SyntaxError: illegal character’ is closed to new replies.

 * ![](https://ps.w.org/json-api-user/assets/icon-256x256.png?rev=1965790)
 * [JSON API User](https://wordpress.org/plugins/json-api-user/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/json-api-user/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/json-api-user/)
 * [Active Topics](https://wordpress.org/support/plugin/json-api-user/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/json-api-user/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/json-api-user/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [fersamp](https://wordpress.org/support/users/fersamp/)
 * Last activity: [10 years, 6 months ago](https://wordpress.org/support/topic/syntaxerror-illegal-character-1/#post-7203816)
 * Status: resolved