Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Feature Request: Facebook Connect

#86

Would like for users to be able to login using the facebook connect API. I think this would be more welcoming and easier for many users.

Reported by mast3ratarms · June 26th, 2009 @ 12:13 PM

State: resolved
Milestone: 0.5

Activity

  1. Johannes Schirge
    Johannes Schirge
    • State changed from new to open
    • Tag cleared.
    • Milestone changed from 0.6 to 0.5

    June 26th, 2009 @ 11:07 PM

  2. Johannes Schirge
    Johannes Schirge
    • Tag set to high-priority

    June 28th, 2009 @ 06:45 AM

  3. Johannes Schirge
    Johannes Schirge

    Tried your commit. Do I have to set some other settings to enable FB Connect? There is nothing shown on login-page on my installation.

    July 2nd, 2009 @ 11:51 PM

  4. Brian Jesse Hendrickson
    Brian Jesse Hendrickson

    I haven't put all the pieces together yet :-)

    As I finish different parts, I'm pushing them to github so I can "pull" to openmicroblogger.com

    Probably will be able to finish in the next few hours, if so you will see the commits, you should just be able to set your API key etc in config.yml and voila!

    July 3rd, 2009 @ 12:21 AM

  5. Brian Jesse Hendrickson
    Brian Jesse Hendrickson

    ok it works! for new signup/register so far

    July 3rd, 2009 @ 01:16 AM

  6. Johannes Schirge
    Johannes Schirge

    Great!

    I created an facebook dev-account and created a new application. I copied the api-key etc. to config.yml.

    But the button is not shown at login-page

    Do I have to change some api settings at facebook, too?

    July 3rd, 2009 @ 03:47 AM

  7. Brian Jesse Hendrickson
    Brian Jesse Hendrickson

    on the Application Settings page

    find the "Connect" tab

    set the connect URL to http://tiquer.me/email_login

    on that same "Connect" tab I set my "base domain" to

    openmicroblogger.com but it's not necessary

    I did upload some simple .png files too, but that's all I set up

    July 3rd, 2009 @ 09:59 AM

  8. Brian Jesse Hendrickson
    Brian Jesse Hendrickson

    in your config.yml you need to add "facebook" to the list of apps

    July 3rd, 2009 @ 10:23 AM

  9. Johannes Schirge
    Johannes Schirge

    Ah, okay. Works with Firefox and IE, Opera 10 doesn't load the image.

    <a href="#" onclick="FB.Connect.requireSession(); return false;" >
      <img id="fb_login_image" src="http://static.ak.fbcdn.net/images/fbconnect/login-buttons/connect_light_medium_long.gif" alt="Connect"/>
    </a>
    

    Tried it with this code and it works. May I change it to this or are there any disadvantages?

    July 3rd, 2009 @ 12:21 PM

  10. Johannes Schirge
    Johannes Schirge

    just added FB-image fix and updated changelog with all you commits to V3.80b

    July 3rd, 2009 @ 12:54 PM

  11. Johannes Schirge
    Johannes Schirge
    • State changed from open to resolved

    July 3rd, 2009 @ 12:56 PM

  12. Brian Jesse Hendrickson
    Brian Jesse Hendrickson

    as long as it works I have no objection :-)

    July 3rd, 2009 @ 01:00 PM

  13. Johannes Schirge
  14. Brian Jesse Hendrickson
    Brian Jesse Hendrickson

    hey now the button doesn't work with my Safari/omb.com !!

    July 3rd, 2009 @ 01:17 PM

  15. Johannes Schirge
    Johannes Schirge

    Hm, okay, lets change back to the old one...maybe its a opera bug. But generally its not w3c conform

    July 3rd, 2009 @ 01:21 PM

  16. Brian Jesse Hendrickson
    Brian Jesse Hendrickson

    I'm glad that you test things with Opera, I would very much like to be compatible.

    Maybe for a few items we will have to detect the browser?

    I admit that my Safari is a little bit old so it's probably part of the problem.

    July 3rd, 2009 @ 01:25 PM

  17. Johannes Schirge
    Johannes Schirge
    • State changed from resolved to open

    I will try a little bit around with opera...maybe I will find a solution.

    By the way: I do now get this error if I entered login/password:

    Fatal error: require_once() [function.require]: Failed opening required 'Validate.php' (include_path='.::db/library/facebook-platform/php:db/library/facebook_stream') in /var/www/vhosts/tiquer.me/httpdocs/tiquer_me/db/library/facebook_stream/Services/Facebook/Common.php on line 24
    

    July 3rd, 2009 @ 01:41 PM

  18. Johannes Schirge
    Johannes Schirge

    Now it's getting tricky. I think it is because I set "openbasedir none" to resolve the login-bug. But only an idea, I didn't try it up to now. will do that later and report.

    July 3rd, 2009 @ 11:47 PM

  19. Brian Jesse Hendrickson
  20. Johannes Schirge
    Johannes Schirge

    Okay, the second one works fine.

    But if I try to register a new user (on a clean installation) I get:

    Sorry, that nickname is already being used.
    Fatal error in line 155 of file /var/www/vhosts/tiquer.me/subdomains/omb/httpdocs/app/omb/controllers/identities.php

    July 4th, 2009 @ 01:53 AM

  21. chrislace
    chrislace

    I'm trying to find the correct settings to make facebook connect work I have so far added the apikey, secret, appname, app id in the config file, I used mysite.com/?email_login button shows but when try to connect nothing happens the popup shows up from face book but that's it... So what are the correct configurations I need to put in the facebook app.... Thanks

    July 4th, 2009 @ 10:29 AM

  22. Brian Jesse Hendrickson
    Brian Jesse Hendrickson

    Hey Chris, thanks for reporting your bugs. Did you get Zeep Mobile to work?

    To set up your site on Facebook you just need to go to the Connect tab of your Application Settings

    It sounds like you have set it up correctly, if you were using Pretty URLs then your Connect URL would be http://yoursite.com/email_login but with the default URLs it would be http://yoursite.com/?email_login

    I'm posting a new download right now, you can download it in the next few minutes here, it should fix the issue you are seeing, let me know.

    Thanks

    -- Brian

    July 4th, 2009 @ 12:01 PM

  23. Brian Jesse Hendrickson
    Brian Jesse Hendrickson

    Johannes, you are doing a clean install, registering as an admin, and then trying to register with Facebook Connect and you get that nickname error?

    July 4th, 2009 @ 12:32 PM

  24. chrislace
    chrislace

    Brian thanks ... but where do i find my Connect tab for my Application settings

    July 4th, 2009 @ 01:13 PM

  25. Brian Jesse Hendrickson
  26. chrislace
    chrislace

    Brian thanks again will try that ... Another question how do I set pretty urls

    July 4th, 2009 @ 01:38 PM

  27. Brian Jesse Hendrickson
    Brian Jesse Hendrickson

    ///////////////////////////// // use pretty URLs (optional) /////////////////////////////

    To enable pretty URLs:

    1) edit config.php (or config/config.php if you used Web installer)

    2) change the 2 lines at the bottom of config.php

    // global $pretty_url_base;
    // $pretty_url_base = "http://openmicroblogger.com";
    

    [[ change the 2 lines like this ]]

    global $pretty_url_base;
    $pretty_url_base = "http://yoursite.com";
    

    3) copy the file /resource/prettyurls/.htaccess to the top level folder

    3a) change the first line of .htaccess from "off" to "on"

    4) change these 2 lines in .htaccess

    RewriteCond %{HTTP_HOST} ^www.openmicroblogger.com$ [NC] RewriteRule ^(.*)$ http://openmicroblogger.com/$1 [R=301,L]

    [[ change the 2 lines like this ]]

    RewriteCond %{HTTP_HOST} ^www.yoursite.com$ [NC] RewriteRule ^(.*)$ http://yoursite.com/$1 [R=301,L]

    5) if you need to use [www.]yoursite.com or [blog.]yoursite.com ]]

    [[ then just use this 1 line in your.htaccess ]]

    RewriteRule ^(.*)$ http://blah.yoursite.com/$1 [R=301,L]

    July 4th, 2009 @ 02:25 PM

  28. chrislace
    chrislace

    Brian great work Facebook connect works great now , about to do the pretty url... Just one more million things and I'm done... Ok the Twitter sign in what is the call back url for that I'm getting an error

    sorry the nickname was not found on this site, nor at Twitter.com

    Fatal error in line 507 of file /home/xxxxxx/public_html/app/omb/plugins/omb.php

    July 4th, 2009 @ 02:32 PM

  29. Brian Jesse Hendrickson
    Brian Jesse Hendrickson

    /////////////////////////////////

    // Facebook, Twitter, Zeep Mobile

    /////////////////////////////////

    Facebook:

    1. http://www.facebook.com/develope...

    2. click "Edit Settings"

    3. click "Connect"

    your connect URL is

    http://yoursite.com/?email_login   or
    
    http://yoursite.com/email_login (pretty URLs)
    

    Twitter:

    1. http://twitter.com/oauth_clients

    your callback URL is

    http://yoursite.com/?oauth_login   or
    
    http://yoursite.com/oauth_login (pretty URLs)
    

    Zeep Mobile:

    1. https://secure.zeepmobile.com/account/create_app

    your callback URL is

    http://yoursite.com/?mobile_event   or
    
    http://yoursite.com/mobile_event (pretty URLs)
    

    your website URL is

    http://yoursite.com/?mobile_settings   or
    
    http://yoursite.com/mobile_settings (pretty URLs)
    

    July 4th, 2009 @ 03:12 PM

  30. chrislace
    chrislace

    Brian thanks again but even with these settings for twitter i still get these errors:

    sorry the nickname was not found on this site, nor at Twitter.com

    Fatal error in line 507 of file /home/xxxxx/public_html/app/omb/plugins/omb.php

    July 4th, 2009 @ 03:35 PM

  31. Brian Jesse Hendrickson
  32. chrislace
    chrislace

    which file should I change I have to keep re-uploading and over writing all my changes then re change them... thanks

    July 4th, 2009 @ 04:10 PM

  33. Brian Jesse Hendrickson
    Brian Jesse Hendrickson

    db/library/dbscript/mapper.php

    July 4th, 2009 @ 04:10 PM

  34. Johannes Schirge
    Johannes Schirge

    Brian, I started from scratch, also deleted browser-cache. I tried it twice, but always the same. You can try at omb.tiquer.me

    July 5th, 2009 @ 06:37 AM

  35. Johannes Schirge
    Johannes Schirge

    I hadn't a profile-picture in my facebook account and got the error. Now I have added a facebook profile-picture and it works.

    July 5th, 2009 @ 02:07 PM

  36. Johannes Schirge
    Johannes Schirge

    Hey Chris,
    you have so many good Ideas. Great!
    Could you create new Tickets for every new Idea or Issue and add successional ideas to existing Tickets? If everything is in one Ticket it becomes very confusing.

    Thank you and keep on posting new suggestions :-)

    EDIT:

    I moved your ideas/requests to this Tickets:

    #93 Feature Request: User profile background customization

    #94 Feature Request: Set Photo-size in admin-menu

    #75 P2 Theme Update

    July 7th, 2009 @ 04:12 AM

  37. chrislace
    chrislace

    Johannes Thanks.... I will continue to share my ideas to help further develop this platform

    July 7th, 2009 @ 01:22 PM

  38. chrislace
    chrislace

    Brian or Johannes does anyone know where I can get Code Stylist I'm trying to use it to that photo wall app tutorial but there's no download at the Codestylist website. I'm trying to accomplish having users upload photos to a tribute wall.

    July 7th, 2009 @ 04:27 PM

  39. Brian Jesse Hendrickson
    Brian Jesse Hendrickson

    @chrislace code stylist has been on the backburner as you can see, but I will test and update the Photo Wall app and get back to you

    July 8th, 2009 @ 01:20 AM

  40. Johannes Schirge
    Johannes Schirge
    • State changed from open to resolved

    Okay, set to resolved. It's not in our hand to add opera support because it is a known facebook-connector issue which hopefully will be resolved soon :)

    July 20th, 2009 @ 06:10 AM

  41. Johannes Schirge
    Johannes Schirge

    Facebook found a solution. The button now works in Opera, too :)

    September 17th, 2009 @ 10:54 AM

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.