Skip to content

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
GetFacebookContext
private static FacebookContext GetFacebookContext(string signedRequest)
{
var client = GlobalFacebookConfiguration.Configuration.ClientProvider.CreateClient();
dynamic parsedSignedRequest = client.ParseSignedRequest(signedRequest);
string accessToken = parsedSignedRequest.oauth_token;
client.AccessToken = accessToken;
return new FacebookContext
{
AccessToken = accessToken,
Client = client,
Configuration = GlobalFacebookConfiguration.Configuration,
UserId = parsedSignedRequest.user_id,
SignedRequest = parsedSignedRequest
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.