social-framework

In iOS 6, check if a person is logged in to a social network?

做~自己de王妃 提交于 2020-01-02 05:34:09
问题 Is there a way to check if a user actually is logged in to facebook or twitter in the operating system. The reason I want to do this is to fall back on sharing in the application by for example using facebooks SDK instead to share, without asking the user to log in again. I actually thought that the code: [SLComposeViewController isAvailableForServiceType:SLServiceTypeFacebook]; did exactly that, but apparently it only shows an alert if the user has not logged in. This only occurs when the

Retrieving Twitter OAuth Token using Social Framework (iOS6)

╄→гoц情女王★ 提交于 2019-12-31 08:24:43
问题 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 the OAuthToken property is set but for the Twitter ACAccount it isn't. Every other detail for the Twitter ACAccount is set just the ACAccountCredential is not. To add to the confusion I came across an article on using Reverse Auth to get the OAuth

Facebook and Twitter Share Error Swift

大城市里の小女人 提交于 2019-12-25 03:32:24
问题 I'm getting this error when Trying to share on facebook or twitter. 2015-04-12 17:49:42.208 TestShareApp[1069:30252] *** Assertion failure in -[UICGColor encodeWithCoder:], /SourceCache/UIKit_Sim/UIKit-3347.44/UIColor.m:1448 2015-04-12 17:49:42.359 TestShareApp[1069:30252] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Only RGBA or White color spaces are supported in this situation.' *** First throw call stack: ( 0 CoreFoundation 0x0000000110424c65

Unable to share PDF URL on Facebook using SLComposeViewController

旧巷老猫 提交于 2019-12-24 14:34:34
问题 I have created sharing module for Titanium Appcelerator using social.framework. Following is my code: - (id) Facebook { //if ([SLComposeViewController isAvailableForServiceType:SLServiceTypeFacebook]) //{ NSLog(@"Sharing via Facebook", nil); SLComposeViewController *fbSheet = [SLComposeViewController composeViewControllerForServiceType:SLServiceTypeFacebook]; [fbSheet setInitialText: [dictPost valueForKey: @"post"]]; [fbSheet addURL: [NSURL URLWithString: [dictPost valueForKey: @"link"]]];

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

爱⌒轻易说出口 提交于 2019-12-22 05:22:45
问题 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 in the iOS settings. Can I ask him to do it with an alert, for example, but how can I bring him to the exact section of settings for that? 回答1: @rckoenes is correct. Under normal circumstances there is no way to manually send the user to

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

血红的双手。 提交于 2019-12-22 05:21:29
问题 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 in the iOS settings. Can I ask him to do it with an alert, for example, but how can I bring him to the exact section of settings for that? 回答1: @rckoenes is correct. Under normal circumstances there is no way to manually send the user to

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

為{幸葍}努か 提交于 2019-12-21 10:48:41
问题 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 *request = [SLRequest requestForServiceType:SLServiceTypeFacebook requestMethod:SLRequestMethodGET URL:requestURL parameters:nil]; request.account = self.facebookAccount; [request performRequestWithHandler:^(NSData *data, NSHTTPURLResponse *response,

iOS 6 Social framework not going to settings or no alert

孤者浪人 提交于 2019-12-21 07:12:02
问题 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 panel (let's say FaceBook, to be consistent), then I get differing, and frustrating behaviors in the simulator and the device. Here's the relevant code in my view controller: //Method for FaceBook - (IBAction)doFacebook:(id)sender{ //check to see

Get Facebook uid from ACAccountStore in iOS?

本小妞迷上赌 提交于 2019-12-21 04:11:46
问题 Hi i want to get the Facebook user's UID from ACAccountStore in iOS 6 self.accountStore = [[ACAccountStore alloc]init]; ACAccountType *FBaccountType= [self.accountStore accountTypeWithAccountTypeIdentifier:ACAccountTypeIdentifierFacebook]; NSString *key = @"01234567890123"; NSDictionary *dictFB = [NSDictionary dictionaryWithObjectsAndKeys:key,ACFacebookAppIdKey,@[@"email"],ACFacebookPermissionsKey, nil]; [self.accountStore requestAccessToAccountsWithType:FBaccountType options:dictFB

Login with twitter in ios 7

给你一囗甜甜゛ 提交于 2019-12-20 17:31:12
问题 I am doing login functionality. In which - user will give twitter email id to login and if login gets succeeded, my app will navigate user to its inner screen of my app. If user has configured twitter account from user's device ios settings. My app takes user's email id from there and it will navigate into second screen of my app. If user has not configured twitter account from ios settings then, if user tapps a button login with twitter from my app login screen, it will navigate user to the