Connect .NET Applications With Facebook
Connect .NET Applications With Facebook
  • DataBind to Facebook data using standard Visual Studio wizards.
  • Comprehensive support for CRUD (Create, Read, Update, and Delete) operations.
  • Integrate .NET applications with Facebook Events, Groups, Pages, Places, Posts and more!
Download Beta

The Facebook ADO.NET Data Provider offers the most natural way to access Facebook data from any .NET application. Simply use Facebook Data Provider objects to connect and access data just as you would access any traditional database. You will be able to use the Facebook Data Provider through Visual Studio Server Explorer, in code through familiar classes, and in data controls like DataGridView, GridView, DataSet, etc.

Using the Facebook Data Provider

The Facebook Data Provider wraps the complexity of accessing Facebook services in an easy-to-integrate, fully-managed ADO.NET Data Provider. Applications then access Facebook through the Facebook Data Provider with simple Transact-SQL.

 

The Facebook ADO.NET Data Provider hides the complexity of accessing data and provides additional powerful security features, smart caching, batching, socket management, and more.

Working with DataAdapters, DataSets, DataTables, etc.

The Facebook Data Provider has the same ADO.NET architecture as the native .NET data providers for SQL Server and OLEDB including: FacebookConnection, FacebookCommand, FacebookDataAdapter, FacebookDataReader, FacebookDataSource, FacebookParameter, and FacebookTransaction. Because of this you can now access Facebook data in an easy, familiar way.

For example:

using (FacebookConnection conn = new FacebookConnection("...")) {
	string select = "SELECT * FROM Posts";
	FacebookCommand cmd = new FacebookCommand(select, conn);
	FacebookDataAdapter adapter = new FacebookDataAdapter(cmd);
	using (adapter) {
		DataTable table = new DataTable();
		adapter.Fill(table);		
		...
	}
}