Two Facebook Connect Button Appear On Forms

When using the Membership short-codes on slide-ins as well as a text widget in the footer, two Facebook Connect buttons appear. I have temporarily added the following CSS:

.ms-login-form .form .wdfb_login_button {
display: none;
}

and manually added the following:
[wdfb_connect]Access The Community![/wdfb_connect]
In addition, there is an additional challenge that is stopping accounts from being created with the one click feature for Ultimate Facebook. As a result, membership are not being created on http://wealthtrainingcommunity.com
Please take a look at this and advise on how to resolve the registration via facebook challenge please.
In addition, I also have a thread open that may be related...
https://premium.wpmudev.org/forums/topic/solve-wrong-facebook-sdk-version
Thanks in advance for your help with this challenge...

  • Tyler Postle

    Hey Thomas,

    Thanks again for creating this ticket. The login button showing up in 2 different spots on the same login form is definitely a compatibility bug.

    As for the login functionality issue, there appears to be an issue with the FB api. I've tested with the latest v2.5 and I'm not able to use it all then in yours(2.0) it's not creating the account. I'm going to flag the developer on this so we can find out what the issue is.

    Cheers,
    Tyler

  • Michael Bissett

    Hey @Thomas Edgell, Michael here, Happy New Year!

    We've released a couple of updates in the meantime to Ultimate Facebook, and I do see that the login button issue has resolved itself (I do see the button you placed, though, that being the reason there's 2 buttons now).

    On this, though:

    In addition, there is an additional challenge that is stopping accounts from being created with the one click feature for Ultimate Facebook. As a result, membership are not being created on http://wealthtrainingcommunity.com

    I'm still seeing this on your site, but I'm also seeing the following errors on your site:

    leadwithanedge.com/wp-login.php?privacy=2&redirect_to=http%3A%2F%2Fleadwith…2Fdm-sso-endpoint%2F1451701548%2F%3Fdm_action%3Ddomainmap-setup-cdsso%2F:1 - Uncaught SyntaxError: Unexpected token <
    
    connect.facebook.net/en-US/sdk.js:94 - Uncaught Error: invalid version specified

    And I'm thinking we'll want to take a deeper look at things, could you please send in the following:

    - Mark to my attention, the subject line should contain only: ATTN: Michael Bissett
    - Do not include anything else in the subject line, doing so may delay our response due to how email filtering works.
    - Link back to this thread
    - Include WordPress network admin access details (login address, username & password)
    - Include FTP log-in details (hostname, username & password)
    - Include any relevant URLs for your site

    IMPORTANT: Please make sure you select "I have a different question" for your topic, so it doesn't go back to the forums - this and the subject line ensure that it gets assigned to me.

    https://premium.wpmudev.org/contact/

    Kind Regards,
    Michael

  • Michael Bissett

    Hey @Thomas Edgell!

    I did indeed get your mail, and have been digging into this over on my end.

    After doing some digging around, it seems like the situation might've been related to W3 Total Cache, though I'm inclined to think a conflict was already done in regards to this in the past.

    From the looks of it, after temporarily disabling that plugin, and removing this from the wp-config.php:

    define('WP_CACHE', true); // Added by W3 Total Cache

    And then reverting what I did (as this was part of a conflict test I was doing on your site this time around), I'm able to log into your site now on your home page via Facebook.

    Can you please confirm that you're able to now as well?

    Please advise,
    Michael

    Edit: One thing I recalled in the process of testing was that I had removed the redirect URL for the login process, I believe you had it set to /my-dashboard/ before?

    I was able to get it re-inserted for you, but I keep getting a 520 Error from Cloudflare on and off here, and got it again when I was trying to test this change.

  • Thomas Edgell

    @Michael Bissett When I went to a different browser (safari) and tried to login via the registration page http://wealthtrainingcommunity.com/membership-registration/ I got an email from Facebook saying that I had logged in; however, there was a pop up from the Facebook app asking for permission. The pop up was for our wordpress social invite app not the ultimate facebook app. Therefore, it never hit the redirect setting in ultimate facebook.

    So there are two facebook apps and I am guessing that the latter takes priority and overwrites the other.

    How can this be resolved?

  • Thomas Edgell

    @Michael Bissett - Here are the results of a few tests...

    1) Removed the Wordpress Social Invite Facebook App info and replaced it with the Ultimate Facebook App info. This failed.

    2) Disabled the Wordpress Social Invite Facebook invite option. This failed.

    3) Removed the Facebook App info from the Wordpress Social invite plugin and it logged in a current user and redirected to the My Dashboard.

    Obviously it is these two that are fighting for a position and the challenge is that the callback url's in the Facebook Apps are different.

    The ultimate solution would be that the Wordpress Social invite did not get loaded until a user is logged in. Then it could over-write the Ultimate Facebook SDK.

    The goal is to have current members invite others with their referral code so that they get credit for the referral. Once a user is logged in, they are assigned a membership level and the Wordpress Social Invite shotcode [wsi-widget title="Invite your friends"] can be wrapped by Membership 2 Pro to hide or reveal the links.

    I am not sure what effect this would have on any of the other Ultimate Facebook features.

    I look forward to your solution and insight into this challenge

    Tom

  • Michael Bissett

    Hey @Thomas Edgell,

    The ultimate solution would be that the Wordpress Social invite did not get loaded until a user is logged in. Then it could over-write the Ultimate Facebook SDK.

    Honestly, at this point, we're talking custom development, in order to get WSI to play nice with Ultimate Facebook.

    It's a simple problem to describe, the resolution of it isn't a quick and easy one, much as I'd like it to be. I'd advise posting a job for this on our Jobs Board, and having one of our Pros cook up a customization to that plugin:

    https://premium.wpmudev.org/wordpress-development/

    Kind Regards,
    Michael

  • Thomas Edgell

    @Michael Bissett Thank you for your answer.

    One further question if you don't mind... Do you think that a plugin like https://wordpress.org/plugins/plugin-organizer/ could achieve the desired effect by shutting off Ultimate Facebook on the pages that we place the WordPress Social Invite short-code and reverse the process that we want the ability to have Ultimate Facebook load instead of WordPress Social Invite?

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.