How to Access FaceBook Subscription APIs Using ASP.NET

I want to access the FaceBook Ads API using the FaceBook Toolkit for .NET (which I found at codeplex.com)

We wish to access ads.estimateTargetingStats in particular.

FaceBook API Information

FaceBook API API Link

Are there any frameworks (in .NET) developed around the FaceBook API. I know

  • FaceBook Toolkit,
  • FaceBook.NET

both of codeplex .

Does anyone let me know how to achieve the above requirement with any .NET platform?

+4
source share
2 answers

My SDK, called the Facebook.Net SDK, will do this. The http://facebooksdk.codeplex.com SDK supports .Net 3.5 and .Net 4.0. If you can, I would recommend using .Net 4.0, as the experience will be better.

Sample code using .net 4.0 dynamic version:

FacebookApp app = new FacebookApp(); dynamic parameters = new ExpandoObject(); parameters.method = "ads.estimateTargetingStats"; parameters.account_id = "account_id"; parameters.targeting_spec = new List<string> { "spec1", "spec2" }; parameters.currency = "USD"; dynamic result = app.Api(parameters); // from here just access the properties dyanmically string s = result.something; // I dont remember exactly what all the return values are. You can view the dynamic result if you set a breakpoint when debugging. 
+2
source

For those still looking for an answer, I recently released an unofficial SDK for C #. The code is available on GitHub here .

It implements most of the GET requests that are available, acting as a wrapper for the SDK for C # for Facebook. Hope this helps anyone.

+2
source

All Articles