Feature Request: Facebook Connect
Reported by mast3ratarms | 2009-06-26 12:13:19 UTC | in 0.5
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.
Comments and changes to this ticket
-

Johannes Schirge 2009-06-26 23:07:14 UTC
- State changed from new to open
- Tag cleared.
- Milestone changed from 0.6 to 0.5
-

Johannes Schirge 2009-06-28 06:45:51 UTC
- Tag set to high-priority
-

Johannes Schirge 2009-07-02 23:51:16 UTC
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.
-

Brian Jesse Hendrickson 2009-07-03 00:21:28 UTC
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!
-

-

Johannes Schirge 2009-07-03 03:47:32 UTC
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?
-

Brian Jesse Hendrickson 2009-07-03 09:59:35 UTC
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
-

Brian Jesse Hendrickson 2009-07-03 10:23:56 UTC
in your config.yml you need to add "facebook" to the list of apps
-

Johannes Schirge 2009-07-03 12:21:53 UTC
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?
-

Johannes Schirge 2009-07-03 12:54:13 UTC
just added FB-image fix and updated changelog with all you commits to V3.80b
-

Johannes Schirge 2009-07-03 12:56:52 UTC
- State changed from open to resolved
-

-

-

Brian Jesse Hendrickson 2009-07-03 13:17:40 UTC
hey now the button doesn't work with my Safari/omb.com !!
-

Johannes Schirge 2009-07-03 13:21:03 UTC
Hm, okay, lets change back to the old one...maybe its a opera bug. But generally its not w3c conform
-

Brian Jesse Hendrickson 2009-07-03 13:25:54 UTC
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.
-

Johannes Schirge 2009-07-03 13:41:14 UTC
- 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 -

Johannes Schirge 2009-07-03 23:47:47 UTC
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.
-

-

Johannes Schirge 2009-07-04 01:53:24 UTC
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 -

chrislace 2009-07-04 10:29:51 UTC
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
-

Brian Jesse Hendrickson 2009-07-04 12:01:28 UTC
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
-

Brian Jesse Hendrickson 2009-07-04 12:32:32 UTC
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?
-

chrislace 2009-07-04 13:13:34 UTC
Brian thanks ... but where do i find my Connect tab for my Application settings
-

-

chrislace 2009-07-04 13:38:25 UTC
Brian thanks again will try that ... Another question how do I set pretty urls
-

Brian Jesse Hendrickson 2009-07-04 14:25:55 UTC
///////////////////////////// // 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]
-

chrislace 2009-07-04 14:32:48 UTC
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
-

Brian Jesse Hendrickson 2009-07-04 15:12:37 UTC
/////////////////////////////////
// Facebook, Twitter, Zeep Mobile
/////////////////////////////////
Facebook:
-
click "Edit Settings"
-
click "Connect"
your connect URL is
http://yoursite.com/?email_login or http://yoursite.com/email_login (pretty URLs)Twitter:
your callback URL is
http://yoursite.com/?oauth_login or http://yoursite.com/oauth_login (pretty URLs)Zeep Mobile:
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) -

chrislace 2009-07-04 15:35:40 UTC
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
-

-

chrislace 2009-07-04 16:10:00 UTC
which file should I change I have to keep re-uploading and over writing all my changes then re change them... thanks
-

-

Johannes Schirge 2009-07-05 06:37:00 UTC
Brian, I started from scratch, also deleted browser-cache. I tried it twice, but always the same. You can try at omb.tiquer.me
-

Johannes Schirge 2009-07-05 14:07:02 UTC
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.
-

Johannes Schirge 2009-07-07 04:12:25 UTC
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:
http://voitto.lighthouseapp.com/projects/16076/tickets/93-user-prof...
http://voitto.lighthouseapp.com/projects/16076/tickets/94-feature-r...
http://voitto.lighthouseapp.com/projects/16076/tickets/75-p2-theme-...
-

chrislace 2009-07-07 13:22:21 UTC
Johannes Thanks.... I will continue to share my ideas to help further develop this platform
-

chrislace 2009-07-07 16:27:01 UTC
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.
-

Brian Jesse Hendrickson 2009-07-08 01:20:57 UTC
@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
-

Johannes Schirge 2009-07-20 06:10:31 UTC
- 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 :)
-

Johannes Schirge 2009-09-17 10:54:24 UTC
Facebook found a solution. The button now works in Opera, too :)
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.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
a(nother) PHP implementation of the http://openmicroblogging.org standard for distributed microblogging. Compatible with identi.ca and laconi.ca