Hi all, I've been working on a Flask application that will make use of Facebook's login API. Unfortunately it seems that the Flask-OAuth extension is out of date and doesn't support OAuth v2 yet and as such it doesn't play nice with Facebook's API. I was wondering if anyone else has implemented logins with Facebook and would mind sharing their thoughts on techniques for implementing this with Flask? Regards, Max Countryman
Hi, On 12/1/11 4:02 PM, Max Countryman wrote: > I've been working on a Flask application that will make use of Facebook's > login API. Unfortunately it seems that the Flask-OAuth extension is out > of date and doesn't support OAuth v2 yet and as such it doesn't > play nice with Facebook's API. It speaks oauth 2 to the extend that facebook needs at least. There is a facebook.py example in the examples folder. Regards, Armin
Hi Max, Last time I needed facebook authentication I ended up implementing it directly. Take a look at: https://github.com/munhitsu/flask-fbapi Mateusz Łapsa-Malawski http://chayamuni.com/ http://about.me/munhitsu On Thu, Dec 1, 2011 at 3:02 PM, Max Countryman <maxc@me.com> wrote: > Hi all, > > I've been working on a Flask application that will make use of Facebook's > login API. Unfortunately it seems that the Flask-OAuth extension is out of > date and doesn't support OAuth v2 yet and as such it doesn't play nice with > Facebook's API. > > I was wondering if anyone else has implemented logins with Facebook and > would mind sharing their thoughts on techniques for implementing this with > Flask? > > Regards, > > > Max Countryman >
This looks promising! I'm assuming it supports OAuth v2? (As of October 1st, Facebook is requiring OAuth v2.) Thanks, Max On Dec 1, 2011, at 12:47 PM, Mateusz Łapsa-Malawski wrote: > Hi Max, > > Last time I needed facebook authentication I ended up implementing it directly. > Take a look at: > https://github.com/munhitsu/flask-fbapi > > > > > Mateusz Łapsa-Malawski > http://chayamuni.com/ > http://about.me/munhitsu > > > > > On Thu, Dec 1, 2011 at 3:02 PM, Max Countryman <maxc@me.com> wrote: > Hi all, > > I've been working on a Flask application that will make use of Facebook's login API. Unfortunately it seems that the Flask-OAuth extension is out of date and doesn't support OAuth v2 yet and as such it doesn't play nice with Facebook's API. > > I was wondering if anyone else has implemented logins with Facebook and would mind sharing their thoughts on techniques for implementing this with Flask? > > Regards, > > > Max Countryman >
On Thu, Dec 1, 2011 at 11:36 PM, Max Countryman <maxc@me.com> wrote: > This looks promising! I'm assuming it supports OAuth v2? (As of October > 1st, Facebook is requiring OAuth v2.) > > Thanks, > > > Max > > On Dec 1, 2011, at 12:47 PM, Mateusz Łapsa-Malawski wrote: > > Hi Max, > > Last time I needed facebook authentication I ended up implementing it > directly. > Take a look at: > https://github.com/munhitsu/flask-fbapi > > > > > Mateusz Łapsa-Malawski > http://chayamuni.com/ > http://about.me/munhitsu > > > > > On Thu, Dec 1, 2011 at 3:02 PM, Max Countryman <maxc@me.com> wrote: > >> Hi all, >> >> I've been working on a Flask application that will make use of Facebook's >> login API. Unfortunately it seems that the Flask-OAuth extension is out of >> date and doesn't support OAuth v2 yet and as such it doesn't play nice with >> Facebook's API. >> >> I was wondering if anyone else has implemented logins with Facebook and >> would mind sharing their thoughts on techniques for implementing this with >> Flask? >> >> I have created an application named gummi which allows fb users to sign in and chat. Link views.py source code<https://github.com/kracekumar/Gummi/blob/master/gummi/views.py> Note: The fb login code is 100% based on Armin's snippet. > Regards, >> >> >> Max Countryman >> > > > -- * "Talk is cheap, show me the code" - Linus Torvalds Winning Regards KraceKumar.R http://kracekumar.wordpress.com +91-97906-58304 * *+91-85530-29521* * *
Armin has a sample project here https://github.com/mitsuhiko/tugraz-flask-demo/blob/master/pastebin.py I've also had success with pyFaceGraph which gives you a nice `Bunch` object to query the user graphs. https://github.com/iplatform/pyFaceGraph On Thu, Dec 1, 2011 at 3:02 PM, Max Countryman <maxc@me.com> wrote: > Hi all, > > I've been working on a Flask application that will make use of Facebook's > login API. Unfortunately it seems that the Flask-OAuth extension is out of > date and doesn't support OAuth v2 yet and as such it doesn't play nice with > Facebook's API. > > I was wondering if anyone else has implemented logins with Facebook and > would mind sharing their thoughts on techniques for implementing this with > Flask? > > Regards, > > > Max Countryman >