• 09-04-2015, 12:04:35
    #1
    sitemde şöyle bir sorunla karşılaşıyorum yardımcı olurmusunuz. Anasayfada facebook ile üye ol çalışmıyor e-evcil.com

    ama bu sayfada çalışıyor. e-evcil.com/Sosyal-Ag.html

    sorun neden kaynaklanıyor nasıl çözerim acil yardım lütfen.
  • 09-04-2015, 20:36:24
    #2
    ylv
    Üyeliği durduruldu
    Adalente adlı üyeden alıntı: mesajı görüntüle
    sitemde şöyle bir sorunla karşılaşıyorum yardımcı olurmusunuz. Anasayfada facebook ile üye ol çalışmıyor e-evcil.com

    ama bu sayfada çalışıyor. e-evcil.com/Sosyal-Ag.html

    sorun neden kaynaklanıyor nasıl çözerim acil yardım lütfen.
    kaynak kodlarına bakarsanız

    ana sayfada
    <script type="text/javascript">function jomFbButtonInit(){ FB.init({ appId: '1585318795016452', status: true, cookie: true, oauth: true, xfbml: true }); } FB.Event.subscribe('auth.login', function(response) { //window.location.reload(); }); /* FB.Event.subscribe('auth.logout', function(response) { window.location.reload(); }); */if( typeof window.FB != 'undefined' ) { jomFbButtonInit();} else { window.fbAsyncInit = jomFbButtonInit;}</script>

    kırmızı ile belirttiğim kısım çalışmıyor // eklemesi yaptığınız için.

    diğer sayfalarda javascript kodları düzgün.

    <script type="text/javascript">
    function jomFbButtonInit(){
    FB.init({
    appId: '1585318795016452',
    status: true,
    cookie: true,
    oauth: true,
    xfbml: true
    });
    }

    FB.Event.subscribe('auth.login', function(response) {
    //window.location.reload();
    });

    /*
    FB.Event.subscribe('auth.logout', function(response) {
    window.location.reload();
    });
    */


    if( typeof window.FB != 'undefined' ) {
    jomFbButtonInit();
    } else {
    window.fbAsyncInit = jomFbButtonInit;
    }
    </script>
  • 13-04-2015, 11:15:03
    #3
    ylv adlı üyeden alıntı: mesajı görüntüle
    kaynak kodlarına bakarsanız

    ana sayfada
    <script type="text/javascript">function jomFbButtonInit(){ FB.init({ appId: '1585318795016452', status: true, cookie: true, oauth: true, xfbml: true }); } FB.Event.subscribe('auth.login', function(response) { //window.location.reload(); }); /* FB.Event.subscribe('auth.logout', function(response) { window.location.reload(); }); */if( typeof window.FB != 'undefined' ) { jomFbButtonInit();} else { window.fbAsyncInit = jomFbButtonInit;}</script>

    kırmızı ile belirttiğim kısım çalışmıyor // eklemesi yaptığınız için.

    diğer sayfalarda javascript kodları düzgün.

    <script type="text/javascript">
    function jomFbButtonInit(){
    FB.init({
    appId: '1585318795016452',
    status: true,
    cookie: true,
    oauth: true,
    xfbml: true
    });
    }

    FB.Event.subscribe('auth.login', function(response) {
    //window.location.reload();
    });

    /*
    FB.Event.subscribe('auth.logout', function(response) {
    window.location.reload();
    });
    */


    if( typeof window.FB != 'undefined' ) {
    jomFbButtonInit();
    } else {
    window.fbAsyncInit = jomFbButtonInit;
    }
    </script>
    Hocam öncelikle ilginiz için teşekkür ederim ama söylediğiniz kodu göremedim benim gördüğüm kaynak kod.

    <div class="">
        <div id="fb-root"></div>
        <script type="text/javascript">
        var count   = 1;
        window.fbAsyncInit = function() {
            FB.init({appId: '1585318795016452', status: true, oauth:true, cookie: true, xfbml: true});
    
            /* All the events registered */
            FB.Event.subscribe('auth.login', function(response) {
                //if( count == 1 )
                    //joms.api.fbcUpdate();
    
                //count++;
            });
        };
        (function() {
            var e = document.createElement('script');
            e.type = 'text/javascript';
            e.src = document.location.protocol +
                '//connect.facebook.net/en_US/all.js';
            e.async = true;
            document.getElementById('fb-root').appendChild(e);
        }());
        </script>
        <fb:login-button autologoutlink="true" onlogin="joms.api.fbcUpdate();" scope="read_stream,publish_stream,offline_access,email,user_birthday,status_update,user_status">Facebook ile giriş yapın</fb:login-button>
    </div>
    aşağıdaki kodu görüyorum ben.
  • 13-04-2015, 13:16:09
    #4
    Çözdüm Teşekkürler