I know that there is Koala gem for Rails to work with Facebook. I need to make clear 2 things:
- How to check if some access_token is valid in Rails using Koala (or something else)?
- How to generate some real access token (using some settings of my app or my login/password) for testing through RSpec?
Thanks in advance.
For #1 Use the Tool https://developers.facebook.com/tools/debug if you don't want to code a test. Otherwise hit this API and verify the response.
For #2, Koala has a good API for accessing Facebook Test Users, which I recommend for use in Rspec.
You can also create Test User in the App Settings from Facebook, and view thier details from this API :