Facebook Connect Integration with a site using ASP.NET Membership Provider

58

Solution 1

Look into RPXNow: https://rpxnow.com/

It'll allow you to integrate your app with a whole range of OpenId providers, and i believe with Facebook amongst them, with a nice tidy API. If you only want facebook as a provider, you may want to look elsewhere however

Solution 2

https://rpxnow.com/ has changed its name to "Janrain" and is commercialized. It would be nice to know the technology behind it in order to create a solution of your own.

Does anyone know an open source, free solution like "Janrain"? Or a good tutorial, suitable for ASP.NET MVC 2?

Share:
58
Martin Pratte
Author by

Martin Pratte

Updated on June 05, 2022

Comments

  • Martin Pratte
    Martin Pratte almost 2 years

    I find a code somewhere in the site that do a part of I need to do. It add a 1 color selector but I try to add multiple selector but I can't find the right way to do it.

    function mytheme_customize_register( $wp_customize ) {
        //All our sections, settings, and controls will be added here
        $wp_customize->add_setting( 'header_textcolor' , array(
            'default'     => "#000000",
            'transport'   => 'refresh',
        ) );
    
        $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'header_textcolor', array(
            'label'        => __( 'Header Color', 'mytheme' ),
            'section'    => 'colors',
        ) ) );
    }
    add_action( 'customize_register', 'mytheme_customize_register' );
    
    function mytheme_customize_css()
    {
        ?>
        <style type="text/css">
            h2 { color: #<?php echo get_theme_mod('header_textcolor', "#000000"); ?>; }
        </style>
        <?php
    }
    add_action( 'wp_head', 'mytheme_customize_css');
    

    I try to find the way to do ad multiple selector, one for h1, one for h2, one for link, ... for example.

    Anyone know how to the it the right way? I try a couple of thing, I can make it appear but then they are not active, I'm not familliar with the WP structure :/

    Here's the strucure I'm trying to do:

        /** OPTION COLOR LINK**/
    function mytheme_customize_register_link( $wp_customize ) {
        //All our sections, settings, and controls will be added here
        $wp_customize->add_setting( 'header_textcolor' , array(
            'default'     => "#000000",
            'transport'   => 'refresh',
        ) );
    
        $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'header_textcolor', array(
            'label'        => __( 'Link', 'mytheme' ),
            'section'    => 'colors',
        ) ) );
    }
    add_action( 'customize_register', 'mytheme_customize_register_link' );
    
    function mytheme_customize_css_link()
    {
        ?>
        <style type="text/css">
            a { color: #<?php echo get_theme_mod('header_textcolor', "#000000"); ?>; }
        </style>
        <?php
    }
    add_action( 'wp_head', 'mytheme_customize_css_link');
    
    /** OPTION COLOR LINK HOVER**/
    function mytheme_customize_register_link_hover( $wp_customize ) {
        //All our sections, settings, and controls will be added here
        $wp_customize->add_setting( 'header_textcolor' , array(
            'default'     => "#000000",
            'transport'   => 'refresh',
        ) );
    
        $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'header_textcolor', array(
            'label'        => __( 'Link Hover', 'mytheme' ),
            'section'    => 'colors',
        ) ) );
    }
    add_action( 'customize_register', 'mytheme_customize_register_link_hover' );
    
    function mytheme_customize_css_link_hover()
    {
        ?>
        <style type="text/css">
            a:hover, a:active { color: #<?php echo get_theme_mod('header_textcolor', "#000000"); ?>; }
        </style>
        <?php
    }
    add_action( 'wp_head', 'mytheme_customize_css_link_hover');
    

    But I know it's something not right here but can't understand what.

  • ccook
    ccook about 15 years
    Thank you Chris, I will look into it