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.
I did not know about table plus I think it is very simple to use which is very good.
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?
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.