Skip to content

Instantly share code, notes, and snippets.

@vquaiato
Created September 19, 2012 01:14
Show Gist options
  • Save vquaiato/3747052 to your computer and use it in GitHub Desktop.
Save vquaiato/3747052 to your computer and use it in GitHub Desktop.
Facebook C# SDK, RLY?
// Do a post to the server to finish the logon
// This is a form post since we don't want to use AJAX
var form = document.createElement("form");
form.setAttribute("method", 'post');
form.setAttribute("action", '/FacebookLogin.ashx');
var field = document.createElement("input");
field.setAttribute("type", "hidden");
field.setAttribute("name", 'accessToken');
field.setAttribute("value", accessToken);
form.appendChild(field);
document.body.appendChild(form);
form.submit();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment