Skip to:
Content
Pages
Categories
Search
Top
Bottom

New FB Autoconnect Plugin for WP…will it work with MU/BP?

Viewing 25 replies - 1 through 25 (of 105 total)
  • Avatar of Bowe
    Bowe
    Participant

    @bowromir

    It works flawlessy! And to make it even more awesome the author Justin Klein will also make an adjustment for us BuddyPress so that email adresses get mapped automatically to the BP profile (without asking permission first). So updates/notifications and/or welcome messages (through the Welcome Pack from DJPaul) are now covered.

    I can’t tell how happy I am with this. The next step is to add fetching of avatars and profile info mapping to the list, but for now I’m more then pleased. I pointed the developer to this thread so maybe he will chip in :)

    ow and.. please donate if you like this.. seriously.. we get so much awesome stuff but every dev I speak hardly get’s any donations :)

    Avatar of Peter Hofman
    Peter Hofman
    Participant

    @blackphantom

    Tell me about it… updates etc will be there soon with facestream to :)

    Avatar of Andy Peatling
    Andy Peatling
    Keymaster

    @apeatling

    He should also add the FB connect button to the BP sidebar login form using the action “bp_sidebar_login_form”. And also add the buddypress tag to the plugin. If someone wants to let him know that.. :)

    Also, the plugin is phoning home with server details, I think that’s against the repo rules? Check function jfb_auth().

    Edit: Not sure if it does break the rules (http://markjaquith.wordpress.com/2010/02/11/how-to-get-plugin-removed-from-dir/) but I still find it a bit off, even if it is harmless.

    Avatar of justin_k
    justin_k
    Participant

    @justin_k

    Is that not okay?? Basically that’s how I’ve fixed 99% of the bugs in the plugin – when someone activates it, it tells me about it, so I can checkout their site and make sure everything’s working properly. Often I’ll find something that doesn’t work right, so I fix it and release an update, and let that user know directly. I’ve found that users almost never bother to report bugs, but are extremely happy when I contact them to let them know that i’ve fixed something just for them :)

    Avatar of justin_k
    justin_k
    Participant

    @justin_k

    PS, so glad people seem to be liking it so far :)

    Avatar of justin_k
    justin_k
    Participant

    @justin_k

    Regarding the specific buddypress suggestions: I actually use WP myself (and have never even tried BP) so this is a bit outside the scope of what I’d planned for the plugin, but I did try to write it so that it’d be very easy to extend in a variety of ways.

    For example, you can have it output additional Connect buttons anywhere you like (in addition to/instead of its built-in widget). See the “Custom Login Buttons” section here: http://www.justin-klein.com/projects/wp-fb-autoconnect#customizing

    Avatar of gregfielding
    gregfielding
    Participant

    @gregfielding

    @bowe

    I get an error message trying to login with facebook on your ms sunshine site…did you get this working?

    Avatar of justin_k
    justin_k
    Participant

    @justin_k

    That’s because he specified “http://www.cfcommunity.net/” in his Facebook Application, but his website is identified as “http://cfcommunity.net/” by WordPress (see http://www.justin-klein.com/projects/wp-fb-autoconnect#faq11 )

    Avatar of gregfielding
    gregfielding
    Participant

    @gregfielding

    @justin_k

    I put this on your board but I’ll throw it here as well cause i’m in MU 2.9.2 and Buddypress 1.2.1

    Fatal error: Uncaught exception ‘FacebookRestClientException’ with message ‘Session key invalid or no longer valid’ in /home/housings/public_html/wp-content/plugins/wp-fb-autoconnect/facebook-platform/client/facebookapi_php5_restlib.php:3112 Stack trace: #0 /home/housings/public_html/wp-content/plugins/wp-fb-autoconnect/facebook-platform/client/facebookapi_php5_restlib.php(1764): FacebookRestClient->call_method(‘facebook.users….’, Array) #1 /home/housings/public_html/wp-content/plugins/wp-fb-autoconnect/_process_login.php(37): FacebookRestClient->users_getInfo(’100000441950350′, Array) #2 {main} thrown in /home/housings/public_html/wp-content/plugins/wp-fb-autoconnect/facebook-platform/client/facebookapi_php5_restlib.php on line 3112

    This is when I click to log on.

    Avatar of justin_k
    justin_k
    Participant

    @justin_k

    I just successfully logged in with it on your site. Could you refresh the page and try again – or even try it in a different browser? The only time I’ve seen that error is when I had a leftover Facebook session cookie from previous experimentation…like I changed my API key while I was still logged in, or something similar.

    Avatar of Jamie Marsland
    Jamie Marsland
    Participant

    @jamesmarsland

    HI Justin,

    I have just installed your plugin at http://www.leckhamptononline.co.uk and it works great. Could you let us know the easiest way add your button to the default BP login box please.

    tks

    james

    Avatar of gregfielding
    gregfielding
    Participant

    @gregfielding

    @Jamesmarsland

    I’m struggling with this now…Justin gave me a code snip:

    if( wp_get_current_user()->ID == 0 )

    {

    if( function_exists(‘jfb_output_facebook_btn’) )

    {

    jfb_output_facebook_btn();

    jfb_output_facebook_init();

    jfb_output_facebook_callback();

    }

    }

    I can’t get it to work right.

    Avatar of stwc
    stwc
    Participant

    @stwc

    Just tested it, works nicely. Thanks for this. Going to dig in to using the hooks and stuff soon!

    Avatar of gregfielding
    gregfielding
    Participant

    @gregfielding

    I’ve got it working perfectly, coded into the sidebar. Check it out:

    http://housingstorm.com

    …and while you’re there, set up profiles if any of you want to develop custom themes for real estate agents :)

    Avatar of Jamie Marsland
    Jamie Marsland
    Participant

    @jamesmarsland

    @gregfielding that’s what i want. Can you let me know what code , and where to put please.

    tks

    j

    Avatar of gregfielding
    gregfielding
    Participant

    @gregfielding

    <p></p>

    <?php

    if( wp_get_current_user()->ID == 0 )

    {

    if( function_exists(‘jfb_output_facebook_btn’) )

    {

    jfb_output_facebook_btn();

    jfb_output_facebook_init();

    jfb_output_facebook_callback();

    }

    }

    ?>

    in sidebar.php

    Avatar of Jamie Marsland
    Jamie Marsland
    Participant

    @jamesmarsland

    Great tks :)

    Avatar of Andy Peatling
    Andy Peatling
    Keymaster

    @apeatling

    @justin_k – I understand your motives, but it is more an ethical/privacy issue. You should perhaps at least let people know that you are harvesting server details. There may be private unlaunched sites that do not want the details of their setup exposed without their knowledge.

    The best way to integrate this into BP is to put this code in a custom plugin or in bp-custom.php file. That way you don’t have to edit the theme at all. This code would also be great if it was added to the actual plugin ;) :

    function bp_add_fb_login_button() {
    if ( !is_user_logged_in() ) {
    if ( function_exists( 'jfb_output_facebook_btn' ) ) {
    jfb_output_facebook_btn();
    jfb_output_facebook_init();
    jfb_output_facebook_callback();
    }
    }
    }
    add_action( 'bp_after_sidebar_login_form', 'bp_add_fb_login_button' );

    That way anyone activating this plugin when using BuddyPress won’t have to do anything else, the login button will just appear on the login sidebar form.

    Avatar of Footballfantalk
    Footballfantalk
    Participant

    @footballfantalk

    I receive this message, what am I doing wrong?

    Fatal error: Uncaught exception ‘FacebookRestClientException’ with message ‘param accounts has too many elements.’ in /home/fft_user/footballfantalk.com/wp-content/plugins/wp-fb-autoconnect/facebook-platform/client/facebookapi_php5_restlib.php:3112 Stack trace: #0 /home/fft_user/footballfantalk.com/wp-content/plugins/wp-fb-autoconnect/facebook-platform/client/facebookapi_php5_restlib.php(438): FacebookRestClient->call_method(‘facebook.connec…’, Array) #1 /home/fft_user/footballfantalk.com/wp-content/plugins/wp-fb-autoconnect/_process_login.php(109): FacebookRestClient->connect_registerUsers(‘{“1″:{“email_ha…’) #2 {main} thrown in /home/fft_user/footballfantalk.com/wp-content/plugins/wp-fb-autoconnect/facebook-platform/client/facebookapi_php5_restlib.php on line 3112

    Avatar of justin_k
    justin_k
    Participant

    @justin_k

    @Footballfantalk: Please post this question here, so other users who might be experiencing a similar problem can benefit from the discussion (and also so I can get notification of replies):

    http://www.justin-klein.com/projects/wp-fb-autoconnect

    Avatar of justin_k
    justin_k
    Participant

    @justin_k

    @Andy: I see what you’re saying, I guess. Keep in mind of course that any URL which is already publicly accessible on the web is pretty much public in the first place, so anyone (person or crawler) could stumble on it by accident – all I’m doing is pointing out to myself “Here’s where someone’s trying your plugin – let’s make sure it’s working right for them!” If the site happens to be hidden or inaccessible, then they’re on their own :) Now that it seems stable, though, this probably isn’t as needed…but I should mention that it was purely because of it that I was able to find some critical bugs in early versions that prohibited it from working in 99% of cases.

    It seems to me that this is pretty much the exact same thing as how i.e. Google Earth sends usage statistics back to Google to help them improve their (free) software…

    Avatar of Ted Mann
    Ted Mann
    Participant

    @tedmann

    This plugin is really sweet, but as Andy points out, it would be even better if we built some BP functions into it. I would love it if when you register you could map your name, location, etc to BuddyPress fields.

    Avatar of Andy Peatling
    Andy Peatling
    Keymaster

    @apeatling

    @justin_k – for sure, it’s certainly a valuable thing to have. I would just be concerned if I had a local WP site running on my intranet at http://internal.coca-cola.dev/secret-new-product-name/ and that is now exposed unknowingly. The details don’t have to be on a public facing site. I think Google Earth asks you first if you want to send usage stats back?

    Anyway, this is a great plugin, I’m liking it a lot and it’d be awesome if you could add some BP hooks too, I know there are literally thousands of BP users looking for this.

    Avatar of @modemlooper
    @modemlooper
    Moderator

    @modemlooper

    How did you get this to work? All user links are broken and it redirects to front page.

    Avatar of justin_k
    justin_k
    Participant

    @justin_k

    I’ll add a satellite php file with BP actions in the next version, conditionally included by an “Include BP Actions” option or something. Then it’ll be easy to paste any more you may think of in that file, without complexifying the main code :)

Viewing 25 replies - 1 through 25 (of 105 total)

You must be logged in to reply to this topic.