No announcement yet.

Third-Party Logins: Twitter


  • Third-Party Logins: Twitter

    You will need to use an existing twitter account in order to use this functionality.

    Create an app using your twitter account

    In your browser go to

    Check App Settings

    Go to the application settings (e.g. where 12345 references the app created in step 2. You can access the settings by going to the list of
    your apps (, clicking on the app link, then clicking on the "Settings" tab.
    1. Fill in the "Name", "Description", "Website", and "Callback URL" fields.
    2. For the "Callback URL" field, it should be {forumurl}/twitterlogin/auth_callback (e.g.
    3. )
    4. Make sure to check "Allow this application to be used to Sign in with Twitter".
    5. Both "Callback URL" and "Allow this application to be used to Sign in with Twitter" settings
    6. are REQUIRED for connect & log-in features.
    7. Remember to click "Update Settings" before moving on.

    App Key & Secret

    After saving the settings, go to the "Keys and Access Tokens" tab. Save the "Consumer Key (API Key)" and "Consumer Secret (API Secret)" values somewhere secure. DO NOT SHARE THESE VALUES.

    The "Consumer Key (API Key)" and "Consumer Secret (API Secret)" will be saved in the vBulletin settings "Twitter App Consumer Key (API Key)" and "Twitter App Consumer Secret
    (API Secret)", respectively. These options are found in the AdminCP under Settings -> Options -> "Third Party Login Options".

    Request Emails (optional)

    To allow auto-populating the email field when a guest registers with twitter, go to the application permissions (e.g. and check the
    "Request email addresses from users" checkbox under "Additional Permissions".
    Note: This will require you fill in the "Privacy Policy URL" & "Terms of Service URL" fields in the application settings.

    Regular connect & log-in will work without this additional permission. Connecting to twitter at registration will also work without this additional permission, but the email will not be auto-populated on the registration form. Also note that the email may not be populated even with this setting if the twitter account has not verified their email.

    vBulletin Settings

    Install or upgrade to vBulletin 5.4.1. If you upgraded and product & hook system is disabled, you must enable the system.
    Note: Cloud Customers can skip steps 1 through 3. To access the Twitter settings go to Settings -> Options -> Third Party Login Options.
    1. In Admin Control Panel (Admin CP) go to "Products & Hooks" > "Manage Products". If the product & hook system is disabled, there will be a link at the top of this page to enable it.
    2. You should see "Third Party Login - Twitter" as one of the installed products on this page.
    3. Click on the "Enable Sign-in with Twitter" under "Related Options".
    4. Set "Enable Sign-in with Twitter" to "Yes", and enter the "Consumer Key (API Key)" and
    5. "Consumer Secret (API Secret)" values from step 4 to "Twitter App Consumer Key (API Key)" and
    6. "Twitter App Consumer Secret (API Secret)", respectively.
    7. (Optional) Set "Enable Registration with Twitter" to allow new users to connect their twitter
    8. accounts during registration.
    9. Save the settings.

    Connect/disconnect Twitter account

    Your forum's members should now be able to connect (or disconnect) their twitter accounts. Existing members can do so via the "Third-party Login Providers" section of their user settings
    page after logging into the forum ({forumurl}/settings/account) and clicking on the "Connect to Twitter" button (or "Disconnect from Twitter" button if they are already connected) in
    that section. Members will also be able to sign in via Twitter by selecting the appropriate icon on the login form.

    If "Enable Sign-in with Twitter" was enabled, new users can connect their Twitter accounts during registration via the "Connect to Twitter" button at the top of the registration form.

    • NiGh10GaLe
      NiGh10GaLe commented
      Editing a comment
      Thanx for that.
      But, what about google login??
      What is the callback URL used??

    • Wayne Luke
      Wayne Luke commented
      Editing a comment
      We build the callback URL for Google Login in the code. The only values you need are the ones listed on the settings page.
    Posting comments is disabled.

About the Author


Wayne Luke A curious juxtaposition of nature, technology and sustainability. Find out more about Wayne Luke

Article Tags


Latest Articles


  • Site Builder Frequently Asked Questions
    by Wayne Luke
    Overview What is Site Builder? Site Builder is a tool that allows you to easily customize the look and feel of pages throughout your vBulletin site. Using Site Builder, you can customize existing pages or create new custom pages. How do I enable Site Builder? In order to enable Site Builder, you must have the "Can Use Site Builder Administrator" permission. If you have this permission, you can click the "Edit Site" toggle to the right of your user name on any page. Pages How ...
    Wed 17 Jun '20, 12:29pm
  • Creating a Redirect Channel
    by Wayne Luke

    In older versions of vBulletin, you could specify a URL to redirect a forum to another location. This could be on your site or elsewhere. With the release of vBulletin 5, this functionality was removed. You can recreate this functionality using Template Hooks. I will outline the steps to create a channel redirect here.

    Note: This functionality is not available on vBulletin Cloud at this time.
    This tutorial involves changing options, creating custom templates and building a temple hook. Allowi...
    Wed 5 Feb '20, 6:09pm
  • Styles Editor
    by Wayne Luke


    The Style tool allows you to select a pre-existing theme for use on your site and sets it as the default. It also allows you to apply CSS customizations to your site.


    The Theme Selection tool will show all Styles installed in your vBulletin Site. Selecting one of the themes shown will provide a preview image and select it. If you decide that you do not like it, simply select a new theme. Your selection is saved when you click the Save Changes. All Themes vBulletin C...
    Tue 4 Feb '20, 4:34pm
  • Site Builder Overview
    by Wayne Luke
    Introduction to Site Builder Site Builder is the newest innovation in vBulletin’s line of site management products. It allows an administrator user, with the correct permissions, to change and edit the content and look of their site without logging in to the AdminCP. Where Site Builder deals with the outward facing portion of a site, the AdminCP controls the nuts and bolts of the system. The Site Builder allows an administrator to add various functionalities, dictate what they do, and where they’re place...
    Mon 3 Feb '20, 4:40pm
  • vBulletin 5 Database Tools
    by Wayne Luke
    The vBulletin Database Tools are a series of command line scripts that allow you to quickly make modifications to your database in order to provide performance fixes and update them to UTF8 standards. IMPORTANT- These files must be run via the command line, either if you have local access to the server or ssh access. If you are on shared hosting your access may be limited. You may ask your host for ssh access. If they say it is not available ask if they will run the commands for you. These scri...
    Mon 21 Oct '19, 9:29am
  • vBulletin 5 Database Best Practices
    by Wayne Luke
    The database is the heart and soul of your vBulletin site. All content and user information is stored in the database. Protect the database and you protect your site. This document will go over the creation and usage of a MySQL database for the use of vBulletin 5 Connect. If you have shared hosting and are provided a web-based control panel like cPanel, you will need to access your hosting provider's documentation on how to carry out these operations. This document assumes a general familiarity with the command line operations of your Operating System. All commands listed assume that you are accessing your server via SSH. ...
    Wed 31 Oct '18, 7:18am