Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6103721
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T13:45:39+00:00 2026-05-23T13:45:39+00:00

Using Facebook’s PHP SDK, I was able to get Facebook login working pretty quickly

  • 0

Using Facebook’s PHP SDK, I was able to get Facebook login working pretty quickly on my website. They simply set a $user variable that can be accessed very easily.

I’ve had no such luck trying to get Twitter’s OAuth login working… quite frankly, their github material is confusing and useless for someone that’s relatively new to PHP and web design, not to mention that many of the unofficial examples I’ve tried working through are just as confusing or are outdated.

I really need some help getting Twitter login working–I mean just a basic example where I click the login button, I authorize my app, and it redirects to a page where it displays the name of the logged in user.

I really appreciate your help.

EDIT I’m aware of the existence of abraham’s twitter oauth but it provides close to no instructions whatsoever to get his stuff working.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T13:45:40+00:00Added an answer on May 23, 2026 at 1:45 pm

    I just tried abraham’s twitteroauth from github and it seems to work fine for me. This is what I did

    1. git clone https://github.com/abraham/twitteroauth.git
    2. Upload this into your webhost with domain, say, http://www.example.com
    3. Go to Twitter Apps and register your application. The changes that you need are (assuming that you will use abraham’s twitteroauth example hosted at http://www.example.com/twitteroauth)
      a) Application Website will be http://www.example.com/twitteroauth
      b) Application type will be browser
      c) Callback url is http://www.example.com/twitteroauth/callback.php (Callback.php is included in the git source)
    4. Once you do this, you will get the CONSUMER_KEY and CONSUMER_SECRET which you can update in the config.php from the twitteroauth distribution. Also set the callback to be the same as http://www.example.com/twitteroauth/callback.php

    Thats it. If you now navigate to http://www.example.com/twitteroauth, you will get a “Signin with Twitter”, that will take you to Twitter , authorize the request and get you back to the index.php page.

    EDIT:
    Example will not work but do not worry. Follow the above steps and upload to server.
    Make sure you rename the file from github repository i.e. config-sample.php->config.php

    if you want to see a working sample, find it here

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using Facebook C# SDK and it's working pretty well. I want to
Ok so I'm using Facebook PHP SDK currently I'm rendering the login/logout buttons as
I'm working on a website that will be using Facebook Connect to authenticate users.
im using the Facebook PHP Client library and want to get the Events of
I'm using facebook connect to allow the visitors login to a website using their
I have downloaded php-sdk for using facebook in php. I also created facebook application
I'm using Facebook C# SDK and got a sample on how to set up
I am using Facebook PHP SDK 3.0 I would like to know how could
I am using Facebook FQL to get photos and the time when they were
I'm using Facebook like buttons on a website, they work perfectly. Unfortunately on IE8

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.