I recently got stuck while integrating a comments section into a webpage. The social plugin always threw a “The comments plugin requires an application id to properly namespace the provided xid.” at me.
There’s was no solution in Google, so I will post my solution here.
In my case I had called the script two times. Once in the header:
And then later in the sidebar (for a simple fan-box)
I don’t know what exactly caused the conflict. I believe the second call somehow erased my ap-id… Anyway, by removing …script src=”http://connect.facebook.net/en_US/all.js#xfbml=1… (red box) from the sidebar, both plugins worked fine.
27 thoughts on “The comments plugin requires an application id to properly namespace the provided xid”
it also works for me 🙂
I like that! 😀
Thanks so, so much! This was our issue as well.
i still get that error. And i accidentaly erased the XID code from settings. What shoul I do now ? Where can I find the XID code ?
@Jay The XID code is something you choose yourself so the plugin can remember where comments or likes, etc.. belong. Do you mean API key? You can find it at the developers portal: http://www.facebook.com/developers/apps.php
there are all the keys and more.
thx a lot from Poland ToruÅ„ 🙂
What file did you edit deleting the red box? thanks!
Thanx very very Much 🙂
Nice one, worked a treat for me 🙂 Thanks for sharing.
@Edward That very much depends on how your site is build. In my case, I deleted the connect that came with the comment plugin, because I was already connected through the fan-box plugin that resides in my sidebar (and is loaded first*). The sidebar is included in every page on the site, so I could safely remove the connect in the comment plugin.
*Logically: When using more than one social plugin, it’s imperative that the connection script is executed before the first social plugin on the page is loaded, otherwise that or following plugins won’t work.
Seriously the quickest fix of any issue I have ever ran into 😀 thanks for sharing.
How do i do this? Step by step please?
a thousand thank guy!
thanks a lot man ..
Thanks, it worked for me too!
Nice Fix… worked
i got it right when i commented….<!– –> from the side fan page
that solved the problem for me.
Thanks! I had a similar problem. Thanks to you, she was decided.
doesnt work for me. If i take out that code as said on here, it automatically takes out the like button atop my webpage that is on every page i have. any idea how to make both work?
You are actually making the call twice. At the comment plugin you have the line:
This solved my issue, thanx a lot!!
Fixed my woes as well! Awesome!
pls, can you give me specific root, where i find this script? script src=â€http://connect.facebook.net/en_US/all.js#xfbml=1