FBML: fb sekmeleri sorunlar

0 Cevap php

Benim API içinde sekmeler: Ben fb kullanıyorum, benim ilk facebook API geliştirirken bir sorun var.

Ama bazı sorunlar var.

<div>
        <fb:serverfbml style="width: 650px;">
            <script type="text/fbml">
                    <fb:fbml>
                    <fb:tabs>
                    <fb:tab-item href="http://apps.facebook.com/myapi/invite.php" title="Invite Friends" selected="true"/>
                    <fb:tab-item href="http://apps.facebook.com/myapi/inbox.php" title="inbox"/>
                    <fb:tab-item href="http://apps.facebook.com/myapi/sent.php" title="sent"/>
                    title="comm" align="right"/>
                    </fb:tabs>
                    </fb:fbml>
            </script>
        </fb:serverfbml>
        <div id="center-border">

        </div>
    </div>

Ben sekmeleri işlemek için yukarıdaki kodu kullanılır.

  1. I use the div with id= "center-border" to render the rest of the page, though a big gab appears between tabs and the content of the page, when I check it with fire bug it was iframe. note: the above problem does not appear when the rest of the page be fb: elements inside .
  2. sekmeler arasında geçiş yaparken facebook logosu görünür, ve ben diğer sekmesine beni yönlendirmek için tıklayın gerekir.
  3. Ben başka bir yol yok, sekmeleri işlemek için her sayfasında yukarıdaki kodu kullanabilirsiniz

update: I solved the second problems by replacing the links in tabs by actual reference in my case it was local host like that:

<fb:tab-item href="http://localhost/facebook......./invite.php" title="Invite Friends" />

update: I searched in that problem again, now I can restate it more clearly, I will divide it to steps to be more clear.

  1. zaman kullanımı: fb tab-madde (Ben kundakçı kullanarak tahmin) "href" linki üzerine işlenir ki, kendi iframe olan sekmeler: Yukarıdaki kodu gibi her fb gibi görünüyor

  2. Bağlantılı sayfa sorunsuz görünen bir sekmesini tıklatarak zaman, sorun sekmeleri yok olduğunu.

  3. kaybolmalarını sekmeleri önlemek için, her sayfasında yukarıdaki kodu koymak ve seçili sekmeyi değiştirmek zorunda.

  4. sonra sekmeler çubuğu ve sayfanın içeriği arasında görünen boşluk, hiçbir şey işlemek sekmeler arasında iframe ve içeriği aşağıdaki "doğru" iframe işlenir.

  5. Ben bu sorun yukarıda belirtildiği gibi facebook aynı sayfayı davet "yerleşik" işlemek zaman olmaz.

  6. Ben düşündüm çözümlerden biri fb bulunan şudur: "X" Ben bu soruna olsun böylece "örneğin" bir HTML öğesi oluşturabilirsiniz, ancak ben böyle bir şey bulamadık.

update: I could fix problem 3, by putting the above code in php file and include it when needed, we can change selected tabs like that:

    <?php $page = basename($_SERVER['PHP_SELF']);?>
<fb:tabs>
    <fb:tab-item href="http://localhost/facebook......./invite.php" title="Invite Friends" <?php if ($page == 'invite.php'):?>selected="true"<?php endif;?>/>
    <fb:tab-item href="http://localhost/facebook......./inbox.php" title="inbox" <?php if ($page == 'inbox.php'):?>selected="true"<?php endif;?>/>
    <fb:tab-item href="http://localhost/facebook......./sent.php" title="sent" <?php if ($page == 'sent.php'):?>selected="true"<?php endif;?>/>
</fb:tabs>

uzun yazı konusunda çok üzgünüm.

any help will be appreciated. Thanks in advance

0 Cevap