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 8879329
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T19:55:37+00:00 2026-06-14T19:55:37+00:00

Trying to authenticate with Twitter in codeigniter. It goes to twitter and comes back

  • 0

Trying to authenticate with Twitter in codeigniter. It goes to twitter and comes back but giving the error. Here is the error and the code. Any tip?

A PHP Error was encountered
Severity: Notice
Message: Undefined property: stdClass::$request
Filename: libraries/tweet.php
Line Number: 205

A PHP Error was encountered
Severity: Notice
Message: Undefined property: stdClass::$error
Filename: libraries/tweet.php
Line Number: 205

bool(false)

A PHP Error was encountered
Severity: Notice
Message: Undefined variable: friendship
Filename: controllers/tweet_connect.php
Line Number: 63

Here is the code;

function index()
    {
        echo 'hi there';
    }

  function auth()
  {
    $tokens = $this->tweet->get_tokens();

    // $user = $this->tweet->call('get', 'account/verify_credentiaaaaaaaaals');
    // 
    // Will throw an error with a stacktrace.

    $user = $this->tweet->call('get', 'account/verify_credentials');
    var_dump($user);

    //$friendship   = $this->tweet->call('get', 'friendships/show', array('source_screen_name' => $user->screen_name, 'target_screen_name' => 'elliothaughin'));
    //var_dump($friendship);

    if ( $friendship->relationship->target->following === FALSE )
    {
    //$this->tweet->call('post', 'friendships/create', array('screen_name' => $user->screen_name, 'follow' => TRUE));
    }

    //$this->tweet->call('post', 'statuses/update', array('status' => 'Testing #CodeIgniter Twitter library by @elliothaughin - http://bit.ly/grHmua'));

    $options = array(
    'count' => 10,
    'page'  => 2,
    'include_entities' => 1
    );

    //$timeline = $this->tweet->call('get', 'statuses/home_timeline');

    //var_dump($timeline);
  }
  • 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-06-14T19:55:38+00:00Added an answer on June 14, 2026 at 7:55 pm

    You might be using an old library: https://github.com/elliothaughin/codeigniter-twitter/pull/25#commitcomment-1988684

    You might have hit the request limit: Elliot Haughin API verify credentials error

    There have also been a lot of changes to the twitter api since that lib was released ~2 years ago–it’s possible the lib doesn’t work anymore in its current state.

    Might want to look into the libraries twitter offers: https://dev.twitter.com/docs/twitter-libraries#php

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

Sidebar

Related Questions

I am trying to authenticate a login for my php/sql webpage. The first code
I ve been trying to use OAuth to authenticate users with their twitter account.
Iam trying to authenticate to https url , but iam getting exception . Below
Am trying to authenticate a soap webservice, but the SHA1 hash that I produce
I am trying to implement Twitter's OAuth into my Code Igniter web application at
I'm getting the following error when trying to authenticate to Facebook with OAuth: {
I'm trying to retrieve a Twitter OAuth request token using RestSharp, but no matter
I am trying to authenticate a GKLocalPlayer with Game Center. However, the code supplied
I'm trying to pass a username and password variable to the twitter credentials but
I'm trying to implement a Twitter authentication via OAuth on my Django application, but

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.