Announcement

Collapse
No announcement yet.

Third-Party Logins: Twitter

Collapse
X
Collapse
  •  

  • 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 https://apps.twitter.com/app/new

    Check App Settings

    Go to the application settings (e.g. https://apps.twitter.com/app/12345/settings where 12345 references the app created in step 2. You can access the settings by going to the list of
    your apps (https://apps.twitter.com), 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. https://yourdomain.com/yourforum/twi.../auth_callback )
    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. https://apps.twitter.com/app/12345/permissions) 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.

      Posting comments is disabled.

    About the Author

    Collapse

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

    Article Tags

    Collapse

    advanced (5) android (2) api (29) app (1) array (17) beginner (17) blog (4) calendar (2) cms (2) forum (3) forums (4) Intermediate (7) iphone (3) mapi (30) methods (10) mobile (34) photo (1) security (2) session handling (1) ssl certificate (1) style (2) thread prefixes (1) threads (4) vb5howto (5) vBulletin (5)

    Latest Articles

    Collapse

    • vBulletin 5 Database Best Practices
      by Wayne Luke
      This is part of a best practices series to manage your vBulletin installation. 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 31st Oct '18, 7:18am
    • vBulletin Password Handling
      by Wayne Luke
      Note: vBulletin Cloud sites cannot use custom password schemes at this time. The core security of your site is the User Password and how it is stored. In the beginning, vBulletin used a simple MD5 hash to represent the password. However as Floating Point Processors (i.e. GPU and ASICs) have become more powerful, this method proved to be risky and reduced security. If we significantly changed the password scheme, then users wouldn't be able to login and would need to change their passwords fir...
      Sat 27th Oct '18, 12:34pm
    • Creating the Sitemap XML for your vBulletin
      by Wayne Luke
      The XML Sitemap specification allows search engines to index your site more efficiently. vBulletin 5 Connect can create the Sitemap automatically so you can submit it to your favorite search engines. Using the default path If you are using vBulletin Cloud, you must use this option. The default value for this is core/store_sitemap. Make sure the directory is CHMOD 0777 on your server. In the AdminCP, go to Settings -> Options -> XML Sitemap and set Enable Automatic Sitemap Generation to Yes. ...
      Sat 27th Oct '18, 12:18pm
    • Installing Memcached for vBulletin
      by Wayne Luke
      Note: Installing and using Memcached requires access to the command line and the ability to install software on your server. If you are using a Shared Hosting Package, then you may not have access to this capability. If you are in doubt, please contact your hosting provider. If you are running vBulletin in a Virtual Machine or on a Dedicated Server, you can improve performance with Memcached. This allows you to move some of the caching systems from vBulletin's database and into memory. On the s...
      Sat 27th Oct '18, 12:00pm
    • Using Tools.php
      by Wayne Luke
      Within your vBulletin Download Package, we provide a file called tools.php, this file isn't uploaded to the server by default as it is considered to be a significant security risk. However, there are times when you need to change specific settings and aren't able to access your AdminCP directly. Uploading to the Server It is recommended that tools.php is installed in the /core/install directory. To do this, follow the steps below: Connect to your server with your favorite SFTP or SCP client. In you...
      Sat 27th Oct '18, 11:45am
    • Third-Party Logins: Twitter
      by Wayne Luke
      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 https://apps.twitter.com/app/new

      Check App Settings

      Go to the application settings (e.g. https://apps.twitter.com/app/12345/settings where 12345 references the app created in step 2. You can access the settings by going to the list of
      your apps (https://apps.twitter.com), clicking on the app link, then clicking...
      Tue 10th Apr '18, 9:00am
    Working...
    X