Why would I want to use Facebook's JS SDK for making API calls....meaning use the FB.api() method when I can simply send the HttpRequest and get back the JSON very easily using the jQuery getJSON
for any api calls.
I think of the benefits of using the FB.api
is that it already already grabs and knows about the user's token from the cookie right? But then the not so nice part is finding a way to parse through the returned JSON data if not using the getJSON method. I can't think of any benefits here outside of this unless there are methods I can act on such as FB.api().SomeMethod
.
I see at this point using the JS SDK for authing and maintaining the user's info in a cookie which is is great, but if I can simply use jQuery like I have with any other API returning JSON for api calls thereafter, is there anything from stopping me with Facebook? Any show stoppers?
What are you using out there?