+ Reply to Thread
Results 1 to 10 of 10

Thread: [GET] DAP with Facebook Connect / Login - Users Can Signup/Login with Facebook

  1. #1

    [GET] DAP with Facebook Connect / Login - Users Can Signup/Login with Facebook

    Please note: this is not official by any stretch, it does work however
    You can see a working example here:

    Yesterday I was reading about different ways to increase free trial signups/opt-ins and came across a few posts/pages/sites talking about the tremendous increase seen after implementing "Facebook Login/Connect" to allow their users to either sign up or log into their website.

    For those of you who don't know what I'm talking about, it's the little button that you simply click to sign up or into a third party website using your Facebook account. You can imagine what kind of impact that could have...allowing a user to sign up/into with just a click of the mouse.

    So I came onto here yesterday to ask about this feature only to find it is not a feature currently implemented...so I decided to take care of it myself.

    The primary functions are still all entirely left to the regular functionality of DAP. This script is essentially just pulling the users information from facebook, inputting it into either the signup or login form and then "clicking" the signup/login button.

    Important!
    • You have to be running PHP 5.4+ for this to work, as it relies on Facebooks latest SDK, which requires that version of PHP or higher.
    • I'm also running DAP v4.6.2, so I haven't tested it on other versions and am not aware of whether it will work on them or not. My GUESS is that it will, as I'm not using any special functions
    • You need to download the Facebook PHP SDK from here: https://github.com/facebook/facebook...ve/4.0-dev.zip

    To install/use
    (You'll need an active facebook app, which takes seconds to create here: https://developers.facebook.com/apps...-setup/dialog/ and then make sure it is "live")

    1) Download the 3 required files from here: https://www.mediafire.com/?luy68ja2w068g22 (the 3 files in that .rar file are all just text files...two .php files & one .js file)

    2) Edit the "settings" area in all 3 files at the top. I have fully commented all 3 files so the instructions within them should leave you without any questions...feel free to ask if you've got any though.

    3) Once the settings are edited & saved (and you're 100% sure they're correct!) upload "login.php" & "signup.php" to the ROOT of your site. Should both be accessible at: http://YourSite.com/login.php or signup.php. Then upload 'fbloginsignup.js' to a "scripts" folder that is at the root of your site. If done correctly, you should be able to access it at: http://YourSite.com/scripts/fbloginsignup.js

    4) Download the Facebook PHP SDK from here: https://github.com/facebook/facebook...ve/4.0-dev.zip

    5) Create a folder entitled "facebook" at the root of your site (should be accessible at: http://YourSite.com/facebook )

    6) Unzip the FB SDK you downloaded, open the folder that was created when you unzipped it, and upload the entire CONTENTS of that folder to the 'facebook' folder you created a second ago. If you did it correctly, you should be able to navigate to: http://YourSite.com/facebook/src/Facebook

    7) Make sure your site is already using jQuery (if not, you need to include a jQuery library), and then include the 'fbloginsignup.js' file AFTER jQuery. You should be good to go if you simply include it as the very last item before the closing '</head>' tag. You'll include it like this: <script type="text/javascript" src="http://YourSite.com/scripts/fbloginsignup.js"></script>

    8) That's it! Now to call the script, you're either going to either want to call the 'signup' function or the 'login' function.

    To call the "signup" function, create a button like this:
    Code:
    <a href="#" id="dap_facebook_signup" data-productid="63" onclick="fb_signup();"><img src="/images/fb_signup.png"></a>
    (you'll change the 63 to whatever product ID you want them to be signed up for within DAP. It must be a product that allows for free signups though!)

    To call the "login" function, create a button like this:
    Code:
    <a href="#" onclick="fb_login();"><img src="/images/fb_login.png"></a>
    Any questions, just post 'em here.
    Last edited by ScottEvans; 05-07-2015 at 10:47 AM.

  2. #2

    Re: [GET] DAP with Facebook Connect / Login - Users Can Signup/Login with Facebook

    I have updated this script so that it no longer is using the "log in as member" function of DAP. That means it's now using, 100%, all inherent functionality of DAP and is no longer "hacky" in nature. It should also be compatible with nearly any version of DAP. You also no longer need to include any admin login details within the script, and you don't have to include or create any special "login check" page on your site. It's very clean & simple now.

    I have updated the OP with the new download link for the new package, or you can just get it here: https://www.mediafire.com/?luy68ja2w068g22

  3. #3

    Re: [GET] DAP with Facebook Connect / Login - Users Can Signup/Login with Facebook

    If anybody is interested, I have also made a second version that will automatically confirm their email address if they've "signed up with facebook" for a product that requires a double opt-in. So instead of the user clicking the "sign up with facebook" button and being told they have to confirm their email address, it will instead sign them up and automatically "click" the double opt-in link they're sent via email and fully activate their account, preventing them from being taken to the "please confirm your email address" screen and instead just taking them to the page users are taken to when they click the confirmation link (this is all done instantly).

    If you want this second version, please just post here and I'll get it uploaded.

  4. #4
    Junior Member
    Join Date
    Jul 2015
    Posts
    2

    Re: [GET] DAP with Facebook Connect / Login - Users Can Signup/Login with Facebook

    yes, please. is it working with the current version of DAP?

  5. #5
    Junior Member
    Join Date
    Jul 2015
    Posts
    2

    Re: [GET] DAP with Facebook Connect / Login - Users Can Signup/Login with Facebook

    this looks pretty complicated, are the DAP developers working on a plugin for this?

  6. #6
    Administrator
    Join Date
    Oct 2010
    Posts
    262

    Re: [GET] DAP with Facebook Connect / Login - Users Can Signup/Login with Facebook

    Yes, we are working on it. We hope to have a plugin for both signup and login with FB in about 3 months from now.

  7. #7

    Re: [GET] DAP with Facebook Connect / Login - Users Can Signup/Login with Facebook

    Any update on this? Would be a great way to solve the nagging issue I have of people not being able to spell their own email addresses correctly :P

  8. #8

    Re: [GET] DAP with Facebook Connect / Login - Users Can Signup/Login with Facebook

    Daisy - We'll be releasing the 'Login with Facebook' plugin on Thursday (3/17) or Friday (3/18) this week.

    We'll release the signup with Facebook about 6 weeks after that.

  9. #9

    Re: [GET] DAP with Facebook Connect / Login - Users Can Signup/Login with Facebook

    SQUEEEEEE! So exciting! I know lots and lots of customers will be so happy to unify their logins!!! Sweet!

  10. #10

    Re: [GET] DAP with Facebook Connect / Login - Users Can Signup/Login with Facebook

    Where is this plugin, and/or documentation on how to implement it? I see in DAP settings/config a facebook api/secret key field...thanks!

+ Reply to Thread

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts