Solution: Invalid Security Token Error With Jetpack Comments

A few days back a new version of Jetpack by was released which featured a new module, Jetpack comments. It provides a great comment form along with different login options (, Twitter or Facebook) to make it easy for people to leave a comment on the blog.

I had updated Jetpack and enabled Jetpack comments for Since I’m using the Thesis framework on this blog, Jetpack comments module does not get enabled automatically. I have written a tutorial on how to enable Jetpack comments in Thesis theme.

The next problem that I faced after installing Jetpack comments was the following error when the comments were submitted:

Invalid security token. Error

No matter if I was logged into any network or not, I would get the same error message when submitting a comment. This was alarming because there would be no commenting activity if this error persisted.

I looked into the matter and it was revealed that Jetpack comments has some issues with another anti-spam plugin, Anti-spam Bee. I think having a combination of Akismet and Anti-spam Bee will make your blog 100% spam free. But now since Jetpack comments module is not working with Anti-spam Bee, I will deactivate it at the moment until the author of the plugin does something about compatibility with Jetpack.

If you are having the same problem after installing Jetpack comments and you have installed any other anti-spam plugin than Akismet, try deactivating it to see if the commenting works fine.

Please tell us about your experiences about Jetpack comments and Anti-spam Bee in the comments below.

5 thoughts on “Solution: Invalid Security Token Error With Jetpack Comments

  1. Happy to say I think I’ve got it figured out (at least for my particular issue). The twitter account I was trying to respond from was @406northlane (the one I’m leaving this as). However, in addition to the twitter handle, you can have a “name”. I had the name set to “406northlane” on that account. When trying to comment I would get the invalid security token” error. I updated the “name” on that account and bingo… No more problems. Must have something to do with a numerical twitter name. *shrugs*

    Again, sorry for the comment spam.

  2. Sorry to be spamming this article with comments. After doing some testing it may be specific to a particular account on twitter. Need t see if there is a way to clear associations between twitter and jetpack.

    1. Thank you so very much for so many helpful comments. I have confirmed at my end that I’m able to comment using the Twitter account. That means you’ve rightly figured out that it has something to do with numerical names in Twitter. Otherwise, the plugin started working only after disabling Antispam Bee at my end.

  3. I don’t think it’s a problem with the plugin. I think it’s with Twitter. I tried to comment logging in via Twitter here and got the error. When I tried via FB login no problems.

    1. Just to follow up. I’m having the same issues on two of my sites: and When I try to login and comment via Twitter I’m getting the invalid token error (as I did here on your site). However when I login/comment via my FB account I have no issues.


Post Comment