Questions tagged [social-framework]

The Social Framework allows you to integrate social networking services with your application on both iOS 6 and OS X 10.8 Mountain Lion. Using the Social Framework you can create requests for social information for the current user, or post to their accounts.

The Social Framework allows you to integrate social networking services with your application on both iOS 6 and OS X 10.8 Mountain Lion. Using the Social Framework you can create requests for social information for the current user, or post to their accounts.

These accounts include:

  • Facebook
  • Twitter
  • Sina Weibo

On iOS the Social Framework provides an interface for posting so the specified service via the .

Quoting the Social Framework Reference

A common way to use this framework is:

  • Create a network session.
  • Get the activity feed for a user.
  • Make a new post.
  • Set properties on a post, add attachments, etc.
  • Publish a post to an activity feed.
173 questions
99
votes
2 answers

How to display the default iOS 6 share action sheet with available share options?

Some apps show a default action sheet in iOS 6 with sharing options. Social Framework only has two classes, one for composing and one for request. What I found though is about composing for a particular service with SLComposeViewController and…
openfrog
  • 40,201
  • 65
  • 225
  • 373
77
votes
3 answers

Tutorial for SLComposeViewController sharing

What are the steps I need to follow to use iOS 6's new SLComposeViewController to post to Facebook, Twitter or Sina Weibo?
Mick MacCallum
  • 129,200
  • 40
  • 280
  • 281
46
votes
3 answers

SLServiceTypeFacebook setInitialText is not working

I am trying to share a text on Facebook with SLServiceTypeFacebook on IOS 8.3. But the popup text box displayed empty. I want it to be displayed with text in it. Below you can see the code I use for that. if([SLComposeViewController…
birdcage
  • 2,638
  • 4
  • 35
  • 58
25
votes
4 answers

TWRequest is deprecated in iOS 6.0 - what can I use instead?

I'm developing a Twitter Feed View for an iOS App. I found TWRequest and it works exactly like that which i was looking for. But: i get an Notice: "TWRequest is deprecated: first deprecated in iOS 6.0". What should I use instead?
Tobias Bambullis
  • 736
  • 5
  • 17
  • 45
23
votes
4 answers

Retrieving Twitter OAuth Token using Social Framework (iOS6)

I'm a little confused as to how I get the Twitter OAuth Token using the iOS Social Framework. Assuming I have a Facebook and Twitter account setup on iOS6, and I can get the ACAccount. When I check the ACAccountCredential for the Facebook ACAccount…
Click Ahead
  • 2,782
  • 6
  • 35
  • 60
19
votes
2 answers

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…
Michal Gumny
  • 1,770
  • 1
  • 16
  • 24
19
votes
4 answers

Strange behaviour when trying to use Twitter ACAccount

I've been playing a bit with the new Social.Framework and in particular with SLRequest, both available on iOS 6 and upwards. Thing is, I got really surprised by a crash I've been getting when trying to post such request. I've been getting the crash…
14
votes
1 answer

iOS 6 Social framework not going to settings or no alert

I'm trying to implement the new social framework in iOS6, and have it working, except for 2 weird problems. If I've enabled the services I'm interested in (say... FaceBook), then it works fine. However, if the accounts are deleted from the settings…
james Burns
  • 864
  • 2
  • 9
  • 22
9
votes
2 answers

Get Facebook uid from ACAccountStore in iOS?

Hi i want to get the Facebook user's UID from ACAccountStore in iOS 6 self.accountStore = [[ACAccountStore alloc]init]; ACAccountType *FBaccountType= [self.accountStore…
Saravana Vijay
  • 572
  • 3
  • 11
9
votes
0 answers

How to invite friends in Facebook using social framework

I'm developing social media app with Facebook. And my application is supporting both iOS 5 and iOS 6 and I want to use native facebook for inviting friends. In iOS 5 its working fine using graph api. And in iOS 6 new features added by apple that we…
Chirag Patel
  • 11,416
  • 3
  • 26
  • 38
8
votes
1 answer

How to make a social sharing exception for Twitter / action sheet?

I am using the following code to call action sheet sharing in my app: - (IBAction)sendPost:(id)sender { NSArray *activityItems = nil; UIImage *appIcon = [UIImage imageNamed:@"appIcon.png"]; NSString *postText = [[NSString alloc]…
vzm
  • 2,440
  • 6
  • 28
  • 47
7
votes
1 answer

Social framework returns "(#803) Cannot query users by their username (username)" when trying to get user feed

I'm using iOs social framework in order to retrieve facebook feeds from a certain user. For that purpose, after authenticating I'm doing the following: NSURL *requestURL = [NSURL URLWithString:@"https://graph.facebook.com/username"]; SLRequest…
Omer
  • 5,470
  • 8
  • 39
  • 64
6
votes
2 answers

setInitialText not work with IOS 8.3 (facebook,social,SLComposeViewController)

The functionality of SLComposeViewController no longer works as expected with the newest Facebook iPhone app update as of April 24th. Any initial text specified is ignored, though the setInitialText method returns true as if it was successful. The…
6
votes
1 answer

iOS 7 SLComposeViewController: Check if tweet was actually posted?

I am currently using SLComposeViewController to post a user's score to twitter or facebook (depending on the button they tap). When they share, they are rewarded with virtual currency. The problem that I'm facing is that it will only tell me whether…
KingPolygon
  • 4,753
  • 7
  • 43
  • 72
6
votes
2 answers

What if Twitter or Facebook accounts are not configured on iOS 6?

Does anybody know a smart way to bring the user to enter their Facebook or Twitter account login information, if they aren't already logged in? For example, a user tries to log in my application with Facebook without configuring the Facebook account…
dadederk
  • 315
  • 2
  • 11
1
2 3
11 12