wordpress giriş - fbml koşullara ifadeler eğer php?

0 Cevap php

I'm trying to integrate Facebook Connect with my Wordpress installation. I DO NOT want to use a plugin for this as all the ones I've tried do not give me the scope I need.

Herşeyi (wordpress) kayıt, (daha önce oluşturulan wordpress detayları ile) kullanıcı oturum seçeneği sunan ayarlamak veya kullanarak Facebook ile giriş ettik

<fb:login-button show-faces="true" width="160" max-rows="2"></fb:login-button>

Bu, tüm yeterince iyi çalışıyor. AMA ....

Ben aşağıdaki gibi bir şey elde etmek istiyorum:

    <?php global $user_identity, $user_ID; if (is_user_logged_in()) { ?>
        // Wordpress user details here

    <?php } elseif ***connected with Facebook*** { ?>
        // Facebook user details here

    <?php } else { ?>
        <a href="<?php bloginfo('url') ?>/wp-login.php">Log in (existing users)</a>
        <fb:login-button show-faces="true" width="160" max-rows="2"></fb:login-button>

    <?php } ?>

Ben php elseif deyimi içine ***connected with Facebook*** parçası entegre nasıl emin değilim.

Herkes önce bu yapılır mı ya da bu konuda bazı anlaşılabilir belgelerine bana gelin. FBML belgelerine bilmiyorum ... zaten bir sürü biliyorum varsayar. (

0 Cevap