social-framework

Retrieving Twitter OAuth Token using Social Framework (iOS6)

时间秒杀一切 提交于 2019-12-02 16:19:06
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 Token ( https://dev.twitter.com/docs/ios/using-reverse-auth ). This article talks about calling https:/

Present another View Controller from SkScene

亡梦爱人 提交于 2019-12-02 11:09:18
问题 I'm trying to present another viewController from my "SkScene". This is my main viewController (tuViewController) Code: -(void) openTweetSheet{ FacebookLikeViewDemoViewController *ctrl = [[FacebookLikeViewDemoViewController alloc] initWithNibName:@"FacebookLikeViewDemoViewController" bundle:nil]; [self presentViewController:ctrl animated:YES completion:nil]; } This is my "SkScene": tuViewController *viewController = [[tuViewController alloc]init]; [viewController openTweetSheet]; And the

Present another View Controller from SkScene

拟墨画扇 提交于 2019-12-02 07:08:09
I'm trying to present another viewController from my "SkScene". This is my main viewController (tuViewController) Code: -(void) openTweetSheet{ FacebookLikeViewDemoViewController *ctrl = [[FacebookLikeViewDemoViewController alloc] initWithNibName:@"FacebookLikeViewDemoViewController" bundle:nil]; [self presentViewController:ctrl animated:YES completion:nil]; } This is my "SkScene": tuViewController *viewController = [[tuViewController alloc]init]; [viewController openTweetSheet]; And the viewController which i want to present is FacebookLikeViewDemoViewController and i need to have way back to

SLComposeViewController with screenshot but not image attachment

青春壹個敷衍的年華 提交于 2019-12-01 18:05:41
I notice that Mobile Safari's Twitter and Facebook share adds a screenshot of the current page without actually sharing it, eg: Im trying to duplicate this via SLComposeViewController, however calling the addImage: actually adds the UIImage to the tweet/facebook album (as expected). Is there a way to just display the screenshot of the page without adding the image ? Edit: Looks like SLComposeViewController conforms to UIAppearanceContainer however the UI_APPEARANCE_SELECTOR is not documented. Safari is previewing the screenshot to the website because it has it loaded and ready in on the screen

Post to Friends wall on Facebook failed with Social Framework in iOS 6

人盡茶涼 提交于 2019-11-30 14:43:30
I am trying to POST a invitation to iOS app on my facebook friends wall using Social framework in iOS 6+. But it gives me following error error = { code = 200; message = "(#200) Feed story publishing to other users is disabled for this application"; type = OAuthException; }; I know this is due to Facebook disable this functionality as mentioned on Facebook blog & this stackoverflow question On stackoverlow's page , it is written that use feed dialog. But I can't see any option to use feed dialog in Social framework. What is the alternative to POST on friends wall using Social Framewrok in iOS

Using SLRequest in iOS 6 with Facebook

独自空忆成欢 提交于 2019-11-30 10:32:45
I'm currently trying to use an SLRequest to post a status on to facebook this is the code i have: ACAccountStore *accountStore = [[ACAccountStore alloc] init]; ACAccountType *accountType = [accountStore accountTypeWithAccountTypeIdentifier:ACAccountTypeIdentifierFacebook]; NSLog(@"0"); [accountStore requestAccessToAccountsWithType:accountType options:@{ACFacebookAppIdKey : @"00000000000", ACFacebookPermissionsKey : @"publish_stream", ACFacebookAudienceKey : ACFacebookAudienceFriends} completion:^(BOOL granted, NSError *error) { if(granted) { NSLog(@"1"); NSArray *accountsArray = [accountStore

upload Video to Facebook using iOS6 Social Framework

ⅰ亾dé卋堺 提交于 2019-11-30 05:28:32
I want to publish a video file to facebook. Previously I used the Facebook iOS SDK3.0 and it works. However, for iOS6 Social Framework, there is problem. __block ACAccount * facebookAccount; ACAccountStore* accountStore = [[ACAccountStore alloc] init]; NSDictionary *options = @{ ACFacebookAppIdKey: @"MY APP ID", ACFacebookPermissionsKey: @[@"publish_actions", ], @"ACFacebookAudienceKey": ACFacebookAudienceFriends }; ACAccountType *facebookAccountType = [accountStore accountTypeWithAccountTypeIdentifier:ACAccountTypeIdentifierFacebook]; [accountStore requestAccessToAccountsWithType

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

北城以北 提交于 2019-11-30 02:02:59
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? On iOS 6 you should use the Social.framework . This has a class named SLRequest . You use it almost in the same way as the deprecated TWRequest , but you need to specify that it's a twitter request as opposed to a facebook request. The entire Twitter.framework became deprecated as of iOS 6, since Apple added Facebook and Weibo (a Chinese social network) to iOS 6, they

Using SLRequest in iOS 6 with Facebook

自古美人都是妖i 提交于 2019-11-29 15:43:46
问题 I'm currently trying to use an SLRequest to post a status on to facebook this is the code i have: ACAccountStore *accountStore = [[ACAccountStore alloc] init]; ACAccountType *accountType = [accountStore accountTypeWithAccountTypeIdentifier:ACAccountTypeIdentifierFacebook]; NSLog(@"0"); [accountStore requestAccessToAccountsWithType:accountType options:@{ACFacebookAppIdKey : @"00000000000", ACFacebookPermissionsKey : @"publish_stream", ACFacebookAudienceKey : ACFacebookAudienceFriends}

upload Video to Facebook using iOS6 Social Framework

空扰寡人 提交于 2019-11-29 04:12:45
问题 I want to publish a video file to facebook. Previously I used the Facebook iOS SDK3.0 and it works. However, for iOS6 Social Framework, there is problem. __block ACAccount * facebookAccount; ACAccountStore* accountStore = [[ACAccountStore alloc] init]; NSDictionary *options = @{ ACFacebookAppIdKey: @"MY APP ID", ACFacebookPermissionsKey: @[@"publish_actions", ], @"ACFacebookAudienceKey": ACFacebookAudienceFriends }; ACAccountType *facebookAccountType = [accountStore