Easy access to the Twitter REST API, Direct Messages API, Account Activity API, TON (Object Nest) API and Twitter Ads API — all from one PHP library.
GNU General Public License v3.0
776
stars
234
forks
source link
Fatal error: Call to a member function oauth_requestToken() on null in C:\xampp\htdocs\logintwitter\app\TwitterAuth.php on line 21 #229
Open
PerezLopezRoberto opened 6 years ago
I am working on twitter sign-up on my web application and I have an issue that I am not quite sure what the problem is.
-----------TwitterAuth.php-----------
`
class TwitterAuth{
}`
-----------init.php-----------
` session_start();
require_once('vendor/autoload.php'); require_once('app/TwitterAuth.php');
\Codebird\Codebird::setConsumerKey('xxxxxxxx','xxxxxxxxxxxxxxxx');
$cliente = \Codebird\Codebird::getInstance();`
-----------index.php-----------
`require_once('app/init.php');
$auth = new TwitterAuth($cliente);
if($auth->isLogin()){ echo "
Esta en el sistema. Cerrar Sesion
"; }else{ echo $auth->getAuthUrl(); }`