I want to share a video in facebook through c#.the following code is working fine.But the access token which i used here is dynamic.so i need a static access token.
string UserAccessToken = "EAACEdEose0cBAPmGpJXPITMiL*************************Iogiku8kH9QgzC3pMbmmAca4ORDyVSPvc0sZAItmcKpInK3MjSJ8coNthVXjKGSq71JckcQkBDpm7IVwAtJzgz8t4g0abc6XSLgLZAhPbyx106YUcdfa0pd6TYxhQyJatZA5na7krMZD";
string message = "having fun";
string title = "hi";
string filePath = @"F:\Songs\funnybabyclip1.mp4";
if (!string.IsNullOrEmpty(UserAccessToken))
{
string FileUploadUrl = string.Format("https://graph-video.facebook.com/me/videos?title={0}&description={1}&access_token={2}", HttpUtility.UrlEncode(message), HttpUtility.UrlEncode(title), UserAccessToken);
WebClient uploadClient = new WebClient();
byte[] returnBytes = uploadClient.UploadFile(FileUploadUrl, filePath);
}


ankit srivastavaRank #8,839 · 215 reputationPosted Feb 17, 2017, 1:22 AM EST
Naveen BishtRank #1,462 · 1.1K reputationPosted Feb 15, 2017, 5:38 PM EST
Getter for the access token that is current for the application.
public static AccessToken getCurrentAccessToken()setCurrentAccessToken(AccessToken)Setter for the access token that is current for the application.
public static void setCurrentAccessToken(AccessToken accessToken)Ayappan AlagesanRank #4,305 · 352 reputationPosted Feb 16, 2017, 9:27 PM EST
Naveen BishtRank #1,462 · 1.1K reputationPosted Feb 16, 2017, 9:41 PM EST