Facebook的 Mash-up Service的集成方式

两种方式:

  1. iframe

  2. XFBML

1.
iframe

<iframe src="http://www.facebook.com/plugins/like.php?href=google.com"
        scrolling="no" frameborder="0"
        style="border:none; width:450px; height:80px"></iframe>

2.
XFBML

<script src="http://connect.facebook.net/en_US/all.js#appId=APP_ID&amp;xfbml=1"></script>
<fb:comments href="example.com" num_posts="2" width="500"></fb:comments>

它实际上还是会生成一个iframe

Leave a Comment

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.