Ask A Question

Notifications

You’re not receiving notifications from this thread.

Rails for Beginners Part 26: Table Plus Discussion

Sequeler for Linux will do the trick as well for SQLite, MySQL and pgSQL
Lots of decent options out there.

Reply

This is an app that deserve to be more known!

Reply

I did not know about table plus I think it is very simple to use which is very good.

Reply

Please help: The name, username and image values in the twitter_accounts table is NULL for me, suggesting the omniauth request is returning nil for these fields. The token and secret fields have populated correctly but I cannot get the name, username and image values.

Further context, I have spent a while trying to resolve this myself and have used Chris' own code in the omniauth_callbacks_controller to try to solve it.

Does anyone know what could be causing this data not to feed through whilst the token and secret data is working as expected?

Reply

I have encountered a similar issue.
I followed a suggestion in the video to print the content of auth to the log file using Rails.logger.info auth at the beginning of the twitter action of OmniauthCallbacksController class.
From the log, I noticed Twitter returned an error as follows:

{"errors"=>
      [{"message"=>
         "You currently have Essential access which includes access to Twitter API v2 endpoints only. If you need access to this endpoint, you’ll need to apply for Elevated access via the Developer Portal. You can learn more here: https://developer.twitter.com/en/docs/twitter-api/getting-started/about-twitter-api#v2-access-leve",
        "code"=>453}]}

You might want to apply for Elevated access as suggested in the above error message.

Reply

Yes, I explained this whole process in the last video "Rails for Beginners Part 25: Twitter Account Model" -- check the comments.

Reply
Join the discussion
Create an account Log in

Want to stay up-to-date with Ruby on Rails?

Join 85,376+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.