开发者

facebook registration plugin - show on click only?

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜