Facebook login like Pinterest style -


i want integrate pinterest style facebook login website. there way this?

pinterest facebook login style

i have solution, it's not optimal. found pinterest uses endpoint generate it's nice button: facebook.com/v2.7/plugins/login_button.php ; however, generated output seems tied pinterest facebook application id (i tried inputting id received standard login button per facebook documentation here).

so hacky solution presented comes combining scottyg's answer this question iframe taken pinterest site following:

<div style="position:relative;">     <iframe name="f34219de7beb196" width="268px" height="50px" frameborder="0" allowtransparency="true" allowfullscreen="true" scrolling="no" title="fb:login_button facebook social plugin" src="https://www.facebook.com/v2.7/plugins/login_button.php?app_id=274266067164&channel=https%3a%2f%2fstaticxx.facebook.com%2fconnect%2fxd_arbiter%2fr%2fiproy23sgap.js%3fversion%3d42%23cb%3df5f46a0766a3f%26domain%3dau.pinterest.com%26origin%3dhttps%253a%252f%252fau.pinterest.com%252ff16edab41b7ba12%26relation%3dparent.parent&container_width=268&locale=en_us&scope=public_profile%2cemail%2cuser_likes%2cuser_about_me%2cuser_birthday%2cuser_friends&sdk=joey" class="" style="border: none; visibility: visible; width: 268px; height: 50px;"></iframe>     <a href="#" style="position:absolute; top:0; left:0; display:inline-block; width: 268px; height: 50px; z-index:5;"></a> </div> 

where here can replace anchor's href whichever url need if building server-side oauth dance planning (alternatively register facebook javascript api's fb.login() call onclick here).

here's example: https://jsfiddle.net/rw9f7jxj/

note: didn't test browsers worked me in both safari , chrome.


Comments

Popular posts from this blog

php - How to add and update images or image url in Volusion using Volusion API -

javascript - IE9 error '$'is not defined -