Login and post with twitter API using php


#1

Hi! I want an app to tweet after a login button. I used this link (https://github.com/abraham/twitteroauth), but it doesn’t really work. After pressing the login button, i got the following errors:

"Notice: Undefined index: oauth_token in D:\xampp\htdocs\twitter\twitteroauth\twitteroauth.php on line 80

Notice: Undefined index: oauth_token_secret in D:\xampp\htdocs\twitter\twitteroauth\twitteroauth.php on line 80

Notice: Undefined index: oauth_token in D:\xampp\htdocs\twitter\redirect.php on line 15

Notice: Undefined index: oauth_token_secret in D:\xampp\htdocs\twitter\redirect.php on line 16
Could not connect to Twitter. Refresh the page or try again later."



I changed the keys and callback location in the config.php. It seems, that there's a problem when i try to get the access token key, and the acces token secret for the user who logged in. Anybody got the same problem?

#2

i have same problem into my website.