Is that url you wrote correct? I think it needs to be
http://localhost:4567/token?access_token=7nuf5lgupiya8fd6rz4yzkzvwwo2ria&scope=user_read
With a ?
instead of a #
after /token
. With that change, you should be able to access all the query parameters in the params
hash.