<div dir="ltr">You can. Just add &kc_idp_hint=facebook to the login url and the login will redirect directly to Facebook</div><div class="gmail_extra"><br><div class="gmail_quote">On 8 January 2016 at 23:11, Bill Burke <span dir="ltr"><<a href="mailto:bburke@redhat.com" target="_blank">bburke@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
You can't generate it now. I guess it might be interesting to do
this though. Log a jira please.<div><div class="h5"><br>
<br>
<div>On 1/8/2016 2:08 PM, LEONARDO NUNES
wrote:<br>
</div>
</div></div><blockquote type="cite"><div><div class="h5">
<div>Hi,</div>
<div><br>
</div>
<div>I need to create a button for social login that behaves
exactly like the one inside of Keycloak login page.</div>
<div>Below is the Link that was generated for the Facebook button:</div>
<div><a href="http://localhost:8080/auth/realms/facebook-identity-provider-realm/broker/facebook/login?code=yK04T2nBA534MQZBJuUyrxLylZLLVva272s06gRjqAk.73604a88-2b05-46f4-a570-019445581d6b" target="_blank">http://localhost:8080/auth/realms/facebook-identity-provider-realm/broker/facebook/login?code=yK04T2nBA534MQZBJuUyrxLylZLLVva272s06gRjqAk.73604a88-2b05-46f4-a570-019445581d6b</a></div>
<div><br>
</div>
<div>How can I generate this link?</div>
<div>Is there an API I can call to generate the code parameter?</div>
<div>Is there any other way to add the social login buttons
outside of the Keycloak login page?</div>
<div><br>
</div>
<div><br>
</div>
<div>--</div>
<div>Leonardo Nunes</div>
<div>
</div>
<hr style="min-height:1px;color:#c4c4c4">
<div style="font-family:Arial;color:#848484;font-size:11px"><i>Esta
mensagem pode conter informação confidencial e/ou
privilegiada. Se você não for o destinatário ou a pessoa
autorizada a receber esta mensagem, não poderá usar, copiar ou
divulgar as informações nela contidas ou tomar qualquer ação
baseada nessas informações. Se você recebeu esta mensagem por
engano, por favor avise imediatamente o remetente, respondendo
o e-mail e em seguida apague-o. Agradecemos sua cooperação.
<br>
<br>
This message may contain confidential and/or privileged
information. If you are not the addressee or authorized to
receive this for the addressee, you must not use, copy,
disclose or take any action based on this message or any
information herein. If you have received this message in
error, please advise the sender immediately by reply e-mail
and delete this message. Thank you for your cooperation</i></div>
<i><i>
</i></i>
<br>
<fieldset></fieldset>
<br>
</div></div><pre>_______________________________________________
keycloak-user mailing list
<a href="mailto:keycloak-user@lists.jboss.org" target="_blank">keycloak-user@lists.jboss.org</a>
<a href="https://lists.jboss.org/mailman/listinfo/keycloak-user" target="_blank">https://lists.jboss.org/mailman/listinfo/keycloak-user</a></pre><span class="HOEnZb"><font color="#888888">
</font></span></blockquote><span class="HOEnZb"><font color="#888888">
<br>
<pre cols="72">--
Bill Burke
JBoss, a division of Red Hat
<a href="http://bill.burkecentral.com" target="_blank">http://bill.burkecentral.com</a></pre>
</font></span></div>
<br>_______________________________________________<br>
keycloak-user mailing list<br>
<a href="mailto:keycloak-user@lists.jboss.org">keycloak-user@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/keycloak-user" rel="noreferrer" target="_blank">https://lists.jboss.org/mailman/listinfo/keycloak-user</a><br></blockquote></div><br></div>