Skip to main content

Integration method - XF Session Cookie

This will use the forum session cookie to authenticate users when commenting on your blog. This option is only available if your forum and blog are on the same root domain.

Configuring

If your forum and/or blog are in subfolders (for example, your blog is at www.domain.com and your forum is at www.domain.com/forum), no additional configuration is required.

If your forum and blog are on the same domain but different sub-domains (for example, your blog is at www.domain.com and your forum is at forum.domain.com), you may need to change your XenForo cookie settings by adding this line to ./src/config.php:

$config['cookie']['domain'] = '.domain.com';

Replace “.domain.com” with your real domain. It is important that there is a “.” at the start as it is in this example. Note: changing this setting may cause your users to be logged out, but this will only happen once and is required for the cookie to be accessible by the blog.

Creating an API key

In the XenForo ACP, go to Setup > API Keys > Add API key. Enter a title, select “Super user key” as the type, and select the following scopes: auth, node:read, thread:read, thread:write. Make sure the API key is set to active, and then save.

Go back to Settings > Article and Forum Connect: XenForo and WP in WordPress, and enter the API you just created in XenForo to the “XenForo API key” field.