Quickbooks Online Returns Realm ID null

To be able to add the scope I wanted i followed the instructions here Pass additional scopes/permissions to a Social Connection and I was able to get the realmId returned in the callback. Now is figuring out why I’m still getting an invalid request error