Problem for to ask permission on tab page application #6

maxiperezunlam opened this Issue Sep 28, 2011 · 4 comments


None yet
2 participants

I am making a tab application on facebook. So i need ask permission when the user click in like button. Ok, when the user click in like button redirect via AJAX to ask_permission action.

def ask_permission


-------------------------------------view ask_permission.js.erb--------------
window.location.href = '<%= @auth.client.authorization_uri(
:scope => [:email, :read_stream, :offline_access, :manage_pages, :user_about_me]

) %>';

So in the view i try redirect with jQuery to authorization url however throw this message:

"error": {
"message": "Missing redirect_uri parameter.",
"type": "OAuthException"

NOTE: currently my redirect_uri is localhost:3000.

Which could be the problem?


nov commented Sep 28, 2011

What's the actual output of @auth.client.authorization_uri(:scope => ...)?
Does it have redirect_uri in its query?

Excuse me again the problem was my configuration. However how I could config my application for ask permission in tab page and the redirect into tab application.

Example go to tab application A, Ask permissions and then facebook redirect into tab application A.

Thanks in advance


nov commented Sep 29, 2011

Sorry, I'm not familiar with page tabs.
However, I think you can change your redirect_uri to your tab app URL and let users redirect to the canvas page after authenticated.

@nov nov closed this Dec 10, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment