Skip to content

Instantly share code, notes, and snippets.

@johnou
Created January 5, 2017 13:20
Show Gist options
  • Save johnou/4b5c7e962c457913a55af0889c0cbb2c to your computer and use it in GitHub Desktop.
Save johnou/4b5c7e962c457913a55af0889c0cbb2c to your computer and use it in GitHub Desktop.
public partial class LauncherForm : Form
{
public LauncherForm()
{
InitializeComponent();
}
private void btnStart_Click(object sender, EventArgs e)
{
string accessToken = "{"+
"\"last_refresh\": \"0\","+
"\"expiration_timestamp\": \"0\","+
"\"permissions\": \"email,public_profile\","+
"\"user_id\": \"" + txtFacebookId.Text.Trim() + "\","+
"\"access_token\": \"" + txtAccessToken.Text.Trim() + "\"" +
"}";
System.Diagnostics.Process.Start("xxx.exe", "/access_token " + System.Convert.ToBase64String(System.Text.Encoding.UTF8.GetBytes(accessToken)) + " /pn fbpipe");
}
private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
System.Diagnostics.Process.Start(lnkAccessToken.Text);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment