开发者

facebook registration plugin - show on click only?

开发者 https://www.devze.com 2023-04-05 10:10 出处:网络
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

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

精彩评论

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