Question

Can the full functionality of the Facebook Graph API be used with HTTP Requests, rather than using any of the SDK's? I've been able to use a GET requests to return public data; I've been able to use a POST request to make a post with an access token retrieved from Facebooks Graph API Explorer, but I'm not sure if Login, getting Access Tokens and determining whether a user has given permissions, is possible without using one of the SDK's? I could spend the next 2 days using trial and error, and reading docs to try to find out, but I'd hate to waste a couple days going down a road to nowhere if someone can just give me the answer now.

Was it helpful?

Solution

Yes, absolutely you can create application for Facebook without using any SDK..

SDK is just a software development kit (SDK or "devkit") it's typically a set of software development tools that allows for the creation of applications for a certain software package,

Facebook SDK made your work much easier because they give you ready made functions to call Facebook API like PHP sdk ,C# sdk.. etc

If you want to create application without using it .. then you have to request Facebook Graph API directly ..

For e.g you need to get page information using JS SDK ..you need to pass only name/id of the page in JS SDK

FB.api('/cocacola', function(response) {
  console.log(response);
});

but if you want to go without SDK, then you need to call http://graph.facebook.com/cocacola now you need to parse JSON then retrieve data based on the language you're working on

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top