Coder Social home page Coder Social logo

Comments (1)

vaz avatar vaz commented on September 17, 2024

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.

from pyfacebook.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.