Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Resource for creating Web API like Twitter API or Facebook API? [closed]

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...

like image 329
Eko Kurniawan Khannedy Avatar asked Jan 18 '11 04:01

Eko Kurniawan Khannedy


People also ask

Does Facebook have an API like Twitter?

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.

Which API is used in Twitter?

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.

Is Facebook API a REST API?

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.

Is Twitter API a REST API?

Technically, no, it's not RESTful.


1 Answers

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.

like image 120
gideon Avatar answered Oct 14 '22 21:10

gideon