简体   繁体   English

注册后Facebook重定向

[英]Facebook redirect after registration

I am trying to implement Fb registration in my site.I want to redirect it to my custom page (under the same domain) after registration.. how should I code? 我正在尝试在我的站点中实现Fb注册。注册后,我想将其重定向到我的自定义页面(在同一域下)..我应该如何编码? anyone please help me.... 任何人都请帮助我...

I am using the registration link in the FB login popup. 我正在使用FB登录弹出窗口中的注册链接。 Code is here... 代码在这里...

<fb:login-button autologoutlink="true" perms="email,user_birthday,status_update,publish_stream"></fb:login-button>

Registration is done. 注册完成。 But after registration it is redirected to the facebook profile.I want it to be redirected to my domain. 但是注册后将其重定向到facebook个人资料。我希望将其重定向到我的域。

Exactly in the site : https://www.wimdu.com/users/login#signin 确实在该网站中: https : //www.wimdu.com/users/login#signin

You can use this code: 您可以使用以下代码:

<iframe src="https://www.facebook.com/plugins/registration.php?
         client_id=<APPLICATION_ID>&
         redirect_uri=<REDIRECT_URL>&
         fields=name,gender,first_name,last_name,location,email"
    scrolling="auto"
    frameborder="no"
    style="border:none"
    allowTransparency="true"
    width="500"
    height="400">
</iframe>

Facebook will call the redirect url with a POST request containing the information within a signed request. Facebook将通过POST请求(包含已签名请求中的信息)来调用重定向URL。 It will always do a top redirect. 它将始终进行顶部重定向。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM