is there any resource for creating Web API like Twitter API or Facebook API. I want to create a Web API for my website.
thanks...
Facebook APIThe Facebook Graph API is JSON-enabled and has search functionality similar to Twitter. You can search for who is posting publicly about topics, search Facebook Places, and see photos and videos posted publicly or by your page's followers.
The Twitter Ads API is the direct connection to the Twitter Ads platform. Integrate with the Twitter Ads API to enhance the Twitter Ads experience with additional innovation and efficiencies for your business. To apply for Twitter Ads API access, a developer account with Elevated access is required.
Yes, it is a REST API as well. Show activity on this post. Yes, there have been 3 Facebook API's to date: Legacy REST.
Technically, no, it's not RESTful.
What you could do is expose a restful service.
To put it simply you'll have urls that return XML or JSON. See the stack exchange API docs and a sample.
You can then create wrappers around this service in as many languages as you like. See the twitter API overview, its a REST service, and languages wrap this up nicely. (Like Linq2Twitter for example)
Now you haven't mentioned the language you are using to write your web app, but if you're with .NET then look into WCF Data Services and OData which can expose, data entities from a database (among other things) over a RESTful service. See http://www.odataprimer.com/ for examples.
Also See REST on Wikipedia & How I explained REST to my wife
For authorization look into OAuth and http://www.dotnetopenauth.net/ if you're with .NET
Note: Facebook initially had REST-API but I think the complexity of their platform got them to change their API.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With