Coder Social home page Coder Social logo

codeigniter-twitteroauth's Introduction

Codeigniter-TwitterOauth library integration

Please note that this library is not maintained any more.

Description

This is TwitterOAuth PHP library by Abraham Williams slightly changed for Codeigniter integration as library.

Please note that this project is not actively maintained any more.

More information about Codeigniter libraries available on Codeigniter Documentation.

Usage

There are two ways to load library to Codeigniter. Automatically within ./config/autoload.php or directly in your controller by adding this line:

$this->load->library('twitteroauth');

Create an instance:

$connection = $this->twitteroauth->create($consumer, $consumer_secret, $access_token, $access_token_secret);

Verify your authentication details:

$content = $connection->get('account/verify_credentials');

Send a message:

$data = array(
	'status' => $message,
	'in_reply_to_status_id' => $in_reply_to
);
$result = $connection->post('statuses/update', $data);

More information about Twitter API methods available on Twitter Developer Page.

In addition there is sample authentication controller in the repository. Please refer to controller directory.

Feedback

Library related issues should be sent to official issue tracker.

Any other questions are welcome here.

codeigniter-twitteroauth's People

Contributors

lpmi-13 avatar mungell avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

codeigniter-twitteroauth's Issues

authentication not working

when i try to call http://...url........./twitter/auth it show empty .. it is not working properly , please guide me

Application-only ???

Is this for Application-only authentication? I have a dashboard with multiple users (don't log in). This app is used for statistical info only, # of subscribers and home timeline.

Can you help me with this, I have used Abraham Williams and Haughin and I think their's is the OAuth and I need OAuth 2 Bearer Token that allows a registered application to obtain API requests.

https://dev.twitter.com/docs/api/1.1/post/oauth2/token

Any help is appreciated. Thanks

Problem in getting friends/list || followers/list

stdClass Object ( [errors] => Array ( [0] => stdClass Object ( [message] => Sorry, that page does not exist [code] => 34 ) ) )

i got the above replay when i try to execute the following statement.

$followers = $this->connection->get('friends/list');
print_r($followers);

is there any issue or what ? im not able to get the list of freinds pls help me

Callback goes to the homepage

I just downloaded your library, and was having the issue of the callback going back to the homepage instead of the callback that I have listed on my twitter application. I was wondering if you might have a solution for this. I'm not sure what is causing the issue. I haven't made any modifications to the code that you have on this github directory. Just wondering if you might have an idea. I'm trying to get it so that I can automatically tweet from an account when a livestream goes live on my site. Let me know if you have any ideas of how I might go and fix this.

Return user data

Hello,

Thank you for library. It's work perfectly.

I have a question about user information.
Is it possibility to get more data than twitter id and username?

I check ./application/library/Twitteroauth.php

function getAccessToken($oauth_verifier) {
$parameters = array();
$parameters['oauth_verifier'] = $oauth_verifier;
$request = $this->oAuthRequest($this->accessTokenURL(), 'GET', $parameters);
$token = OAuthUtil::parse_parameters($request);
$this->token = new OAuthConsumer($token['oauth_token'], $token['oauth_token_secret']);
return $token;
}

I understand the callback function in controller use function above to get user data.
Can i retrieve more data like user profil picture, email, first name, last name?

Thank you

Undefined index: oauth_token

Hi,

I'm having some problems with this. My code was running great but then suddenly when I tried to to login I started getting this...

Severity: Notice
Message: Undefined index: oauth_token
Filename: libraries/Twitteroauth.php
Line Number: 83

Seems a lot of people has this problem too but I haven't found a solution. Can you help me with this?

Best!

Detailed Example

I am new to codeigniter and trying to figure out how would I implement it?
Would you be able to provide a step by step example here?
I am not sure what would I put in my controller method when I will hit it with 'Twitter Login' button.

Twitter auth in codeigniter

i was use "MunGell/Codeigniter-TwitterOAuth" but no result, i need some helps
how can i create view with this controller and this librairie !!!!

Invalid Oauth token

hey i can successfully authenticate by twitter but i get the OAuth token start with twitter user id just like
1095019810-Ue1ETxWf6ZFazHZHAioCXKU0DZXccccTNWvjeGP

so,how can i get valid access token and how can i post offline tweet using your library. I have try and i am not getting any error in twitter response but tweet is also not posted to user account

News feed?

Man, great work here but, I can't find the news feed here. thanks

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.