I am trying to implement t开发者_运维知识库he FB registration plugin on my site but it is active/opened by default. is there a way to have it open only when a user clicks on the Register/Login button instead?
Put it in a hidden div and then show the div when you want to with javascript
Put this on the page where you want Register button to be displayed:
<fb:login-button registration-url="http://yoursite.com/facebookregistration" />
facebookregistration page should have the registration form:
<fb:registration
fields="[
{'name':'name'},
{'name':'email'},
{'name':'gender'},
{'name':'birthday'}
]"
</fb:registration>
For more information refer to Facebook Developers page
精彩评论