Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Facebook iOS SDK vs Social framework

I want to write app that is heavily integrated with Facebook. I'm not sure what shoud I use - sdk provided by Facebook or new Social Framework provided by Apple. Do you know some pros and cons of them?

[EDIT] I ended using Social Framework provided by Apple, because it's much easier to integrate, It will be develop in future, and I have access to device owner Facebook account, so user don't have to log in to Facebook when using my app. I want to do some custom stuff, so I get oauth token from ACAccountCredential and then I make requests with AFNetworing to Facebook's Graph API.

like image 449
Michal Gumny Avatar asked Mar 30 '13 19:03

Michal Gumny


People also ask

What is Facebook SDK iOS?

The Facebook SDK enables: Facebook Login - Authenticate people with their Facebook credentials. Share and Send dialogs - Enable sharing content from your app to Facebook. App Events - Log events in your application.

What SDK does Facebook use?

To learn more about using Facebook development tools, see App Development. The current version of the Facebook SDK for Android is version 14.1. 1 and requires the Android API 15.

What is the latest version of Facebook SDK for iOS?

The current version of the Facebook SDK for iOS is version 14.1. 0. Code and samples for the Facebook SDK for iOS are available on GitHub. When you use the Facebook SDK for iOS, follow the Facebook Open Source Terms of Use and Privacy Policy.

What version of iOS does Facebook require?

The application is installable on Apple products that have iOS 9.0 or a newer operating system.


1 Answers

The Social Framework is designed for simple, site-neutral data manipulation. Examples might include getting the user's 'activity feed' (as described by the docs) or posting a new status or photo. It currently works with Twitter, Facebook and Weibo however, other than lack of features, the current main disadvantage is that it is limited to iOS 6, which won't be as much of a problem in the future.

On the other hand Facebook does have an iOS SDK that makes it reasonably easy to integrate Facebook into your app, and it is much more powerful than the Social Framework. Another benefit is that support goes back to iOS 4.3.

I'd recommend using the Facebook iOS SDK over writing your own custom one and using OAuth because Facebook has already done the work for you.

like image 53
Thomas Denney Avatar answered Oct 19 '22 00:10

Thomas Denney