with example español facebook login oauth firebug

facebook - example - El parámetro registration-url falla para fb: login-button si oauth 2.0 está habilitado



login with facebook javascript (1)

Estoy intentando que el flujo de registro para el inicio de sesión de Facebook funcione. Aquí hay un ejemplo escueto:

<html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://www.facebook.com/2008/fbml"> <head> <title>My Facebook Login Page</title> </head> <body> <script type="text/javascript" src="http://connect.facebook.net/en_US/all.js"></script> <div id="fb-root"></div> <script type="text/javascript"> FB.init({ appId:''xxxxxxxxxxx'', cookie:true, status:true, xfbml:true, channelUrl : ''http://<myWebSite>/channel.html'', oauth:true }); </script> <fb:login-button registration-url="http://<myWebSite>/register"/> </body> </html>

(Las únicas cosas que he reemplazado anteriormente son el sitio web y la aplicación ID)

Si lo intento así, aparece el botón de inicio de sesión, pero al hacer clic en él FireBug informa ''Estado desconocido: indefinido'' en el registro del navegador. Sin embargo, si elimino la línea ''oauth = true'', funciona. Intento adherirme al nuevo estándar Oauth 2.0, así que me gustaría dejarlo. ¿Alguien más se ha topado con esto? Parece que si se tratara de un error, habría sido atrapado desde el principio.