Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
Ninjauth with Twitter
  • I'm using Ninjauth to set up social login on my site. I've got Facebook working correctly but Twitter just won't work. Whenever I go to mysite.com/auth/session/twitter I just get redirected to the 404 error page.
    All the code I've used for the login can be found here: http://pastebin.com/XqT1dMkR How can I fix this?
  • Are your Ninjauth, Oauth and Oauth2 packages up to date? I just added the twitter key and secret to our Depot project's ninjauth config file, and the twitter login worked immediately. You can find the Depot login controller here.
  • Yes the oauth and oauth2 packages are up to date. I've taken the latest ones form https://github.com/fuel-packages/. I've had a look at the depot project and both my code and the code in depot end up using
    $url = \NinjAuth\Strategy::forge($provider)->authenticate();
    

    Still can't get it to work though.
  • Perhaps you can ping philsturgeon, he's the author of all three packages...
  • Thanks for the help Harro. Sorted it now, I'd not filled in the callback url in on Twitter.
    Sorry for wasting your time

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion