TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Ayappan Alagesan
NA
324
66.4k
How can we get static access-token from facebook ?
Feb 12 2017 11:09 PM
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);
}
Reply
Answers (
4
)
How to create master detail Select query
How to put popup Cancel button