need help to fix the error " required extended permission : video_upload "

Sep 1, 2010 at 12:52 PM

Hi All,

I am trying to upload a video to facebook using Facebook developer toolkit in .net.

I am not yet successful to make it work. I have used the following code to upload a video.

The ConnectSession is working fine and allowing user to login and get authenticated.

But on Video.Upload , I m getting error as " required extended permission : video_upload" . Please someone help me what I m missing so that this exception is throwing.

protected void btnVideoUpload_Click(object sender, EventArgs e)
{

	try
	{
		ConnectSession connectSession = new ConnectSession(APPLICATION_KEY, SECRET_KEY);
		string filePath = ConfigurationSettings.AppSettings["VideoFilePath"].ToString();
		FileInfo fi1 = new FileInfo(filePath);

		if (connectSession.IsConnected())
		{
			Api api = new Api(connectSession);
			api.Auth.RevokeExtendedPermission(Enums.ExtendedPermissions.video_upload);
			api.Video.Upload(ConfigurationSettings.AppSettings["Title"].ToString(), ConfigurationSettings.AppSettings["Description"].ToString(), fi1);
		}
	}
	catch (FacebookException ex)
	{
		lblMessage.Text = ex.Message.ToString();
	}
}

I would grateful for any help.

Thanks

Oct 3, 2010 at 3:52 AM

This project isn't compatible with the new permissions. Try http://facebooksdk.codeplex.com