Javascript SDK in ASP.NET C# -
i building website in asp.net needs log in facebook button (and later google) integrated create account.
i have looked @ great sources http://www.aspdotnet-suresh.com/2012/04/aspnet-integrate-facebook-login.html , http://facebooksdk.net/docs/web/getting-started/
[1] however, examples never deal masterpages , content placeholders. when trying integrate them in content pages, errors because instance login button called
"fb:login-button scope="email" data-size="large" data-show-faces="false" data-auto-logout-link="true" onlogin="window.location='/main.aspx'">
log in facebook < fb:login-button>"
is not accepted without html tag
html xmlns:fb="http://www.facebook.com/2008/fbml">
which cannot place on content page anyways.
[2] also, want user create business relationship using facebook login. business relationship meant used instance parent can sign multiple children summer program, need application associate facebook login new/existing business relationship on application. tips on how handle appreciated.
[3] lastly, after user logs facebook, see them redirected page. however, in code-behind file page, cannot utilize facebook attributes written in javascript , since facebook button not element of toolbox, cannot create event handler that. instead, had write
onlogin="window.location='/main.aspx'
within tags of facebook button. not ideal because means everytime click facebook button, redirect me main.aspx. meaning if logged facebook already, , ran web site, click on "log out" , still access main.aspx page...
hope there's out there has been in same situation... or can help me! have been researching 12 hours straight , cannot anywhere :(
c# asp.net facebook login sdk
No comments:
Post a Comment