I'm trying to make a canvas facebook app using rails 3 and oauth2. It kind of works fine following the steps here https://github.com/intridea/oauth2
So when I go to the app in FB, it triggers the methods set by oauth2 BUT, it asks the user to give the permissions OUTSIDE of the canvas, it goes out of FB. Then when the user gives permission it goes where it is supposed to go in the application but again everything OUTSIDE FB.
After giving the permissions if I go to the app inside FB then it shows the app within the canvas.
Anyone familiar with this?
Cheers.