Facebook Connect for web2py is ready!

301 views
Skip to first unread message

Jon Romero

unread,
Jan 5, 2010, 9:06:29 PM1/5/10
to web2py-users
You can see it live here (and you can download the source):
http://fbconnect-demo.emotionull.com/

I am uploading the source also on github and I'll make also a blog
post about it (even though it's TRIVIAL to use fbconnect in web2py).

I have made a change in facebook.py (a new function called
"facebook_connect"). You can check it out.

mdipierro

unread,
Jan 5, 2010, 11:12:47 PM1/5/10
to web2py-users
My home internet connection is unusable today. I even have difficulty
reading this posts. I look forward to try this tomorrow!

Massimo Di Pierro

unread,
Jan 6, 2010, 3:44:51 PM1/6/10
to web...@googlegroups.com
I turned it into a plugin but I am not sure how to get the API key
working.
Can you explain to us what steps are necessary on the facebook
registration site?

Eventually his should be integrated with Auth.

Massimo

web2py.plugin.fbconnect.w2p

Jon Romero

unread,
Jan 6, 2010, 9:21:30 PM1/6/10
to web2py-users
The source code also exists here: http://github.com/jonromero/fbconnect-web2py
First of all you have to create a facebook application. The are plenty
of tutorials (even though you just need to change one path). Then you
copy the API and SECRET key.
You must put on facebook app settings -> "Connect" the full path where
your app is (http://localhost:8000/fbconnect/default/index. I don't
remember any other settings (I am not at my pc right now) but I think
it's only that one.
If you still have problems (yeap, facebook connect has some tricky
details) I can write a more detailed review.

Integration with Auth would be sweet :D

>  web2py.plugin.fbconnect.w2p
> 37KViewDownload

mdipierro

unread,
Jan 6, 2010, 11:03:25 PM1/6/10
to web2py-users
Why I do not have understand if why do I have to create a facebook
application if all I want is to use facebook for authentication. A
facebook application requires a fb canvas (as done in my original fb
example) so that I can be embedded in a facebook page but I do not
necessarily want that. Am I missing something?

Jon Romero

unread,
Jan 7, 2010, 5:01:07 PM1/7/10
to web2py-users
From http://wiki.developers.facebook.com/index.php/Facebook_Connect_Tutorial1
:
"Each Connect website is treated as a Facebook application, and so it
needs an API key. Go to the Facebook Developer application and click
Create An Application. Fill in these fields: "

You have to create an application and set it up as described in the
tutorial

Alex Fanjul

unread,
Jan 7, 2010, 5:11:13 PM1/7/10
to web...@googlegroups.com, Jon Romero
Yeah, it's the same for wordpress... (moreover: for each wordpress)
Alex F

El 07/01/2010 23:01, Jon Romero escribi�:

--
Alejandro Fanjul Fdez.
alex....@gmail.com
www.mhproject.org

Wabbajack

unread,
Feb 3, 2017, 4:29:09 AM2/3/17
to web2py-users
Im sorry i think i know this post is way back... but for now im trying to do what your discussing but i cant get it to work...
am i missing something?
1. i downloaded the file and run it as what it mention >> no display (already added my APP ID and Key in default)
2. Also ive tried the tutorial of adding comment box in webpages as instructed here and other similar guides on developer facebook
http://www.webascender.com/Blog/ID/269/How-to-Add-Facebook-Comments-to-My-Website >> still cant get it to display...

Or there is new way to use web2py with facebook connections like comments, share and like..

Thanks appreciate it much ....
Reply all
Reply to author
Forward
0 new messages