Showing Become a fan button in Custom FBML Facebook App

Want to add Become a fan button of my custom Facebook application on FBML Canvas page. In facebook Developer WIKI i found this, If you want to render a Fan Box on an FBML canvas page, use fb:iframe and reference the Fan Box as per the instructions on the Fan Box page. I just want so sample code to see how it can be done.

Thanks
moiz_kiyaniAsked:
Who is Participating?
 
moiz_kiyaniConnect With a Mentor Author Commented:
The solution to this I found is:

<fb:iframe scrolling="no" frameborder="0" src= "http://www.facebook.com/connect/connect.php?id=<?=$app_id?>">
            <fb:fan profile_id="<?=$app_id?>"></fb:fan>
        </fb:iframe>
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.