Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrations -> New Data Permissions -> Error Code: 100 #51

Closed
dotsbb opened this issue May 11, 2010 · 1 comment
Closed

Migrations -> New Data Permissions -> Error Code: 100 #51

dotsbb opened this issue May 11, 2010 · 1 comment

Comments

@dotsbb
Copy link

dotsbb commented May 11, 2010

New permissions dialog seems to required additional parameters.

You can try the new dialog in your Canvas application settings in Facebook (Developer App -> Your App -> Settings -> Migrations -> "New Data Permissions" -> Enable)

and then catch error:

API Error Code: 100
API Error Description: Invalid parameter
Error Message: Requires valid next URL.

Guess all of us may hit the issue in June because "(Migration ends on: June 1, 2010)"

@vaz
Copy link

vaz commented Jun 2, 2010

Yep. next needs to be an absolute URL.. If you're using require_login() with no params, it's passing next with no value. pyfacebook is redirecting to:

www.facebook.com/login.php?canvas=1&api_key=XXXXX&v=1.0&next=

but now that's re-redirecting to:

www.facebook.com/connect/uiserver.php?app_id=XXXX&next=&display=page&locale=en_US&return_session=0&fbconnect=0&canvas=1&legacy_return=1&method=permissions.request

Next is empty so it's invalid.
You can do require_login(next="http://apps.facebook.com/" + my_app_name)

Or you can do what I did and hack the require_login method to prepend your app's url. See http://github.com/vaz/pyfacebook/commit/6f707cf1cc65cdb9d61ec1004dd091eb1f637548

I doubt it's the "right" solution but for a canvas app it works. Note you need to have FACEBOOK_APP_NAME set so that fb.get_app_url() works.

@dotsbb dotsbb closed this as completed Jul 10, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants