slrequest

App crashing with exception: -[NSConcreteMutableData _fastCharacterContents]

橙三吉。 提交于 2019-12-13 01:27:02
问题 I am trying to share data with facebook. I am able to share data except image stored locally in iPhone memory. But when I try to share image stored locally with parameter @"source" my app gets terminated with error "[NSConcreteMutableData _fastCharacterContents]". For sharing a local image I am converting it into NSData as required by @"source" parameter. NSData *data = [NSData dataWithContentsOfURL:localUrl]; __block ACAccount *facebookAccount = nil; ACAccountType *facebookAccountType =

SLRequest - Twitter returns code 215 (Bad authentication data)

喜你入骨 提交于 2019-12-09 18:34:07
问题 I have application with upload photo like in Instagram app. First my app uploads photo and returns link. Then sends link in status message. When I'm testing on my iPhone everything is ok, but when I'm testing on another iPhone then twitter return code 215 bad authentication data. Any ideas what could be wrong? Thx for reply. - (void)tweet:(NSString *)identifier withCompletionHandler:(void (^)())completionHandler { ACAccountStore *accountStore = [[ACAccountStore alloc] init]; // Create an

Accessing Twitter Direct Messages using SLRequest iOS

余生颓废 提交于 2019-11-30 15:54:23
I need to access the Direct Messages using SLrequest. I got the oAuthToken and oAuthToken Secret using the Reverse oAuth of twitter. Now I need to know how to fetch the direct messages from the https://api.twitter.com/1.1/direct_messages.json url. I have tried adding oAuthToken and oAuthTokenSecret part of SLRequest but I get the same error, "This application is not allowed to access or delete your direct messages". What is the use of oAuthToken and oAuthTokenSecret? How to make direct messages work for the app? I have changed the access level of application to "Read, write, and direct

Accessing Twitter Direct Messages using SLRequest iOS

我与影子孤独终老i 提交于 2019-11-29 22:00:24
问题 I need to access the Direct Messages using SLrequest. I got the oAuthToken and oAuthToken Secret using the Reverse oAuth of twitter. Now I need to know how to fetch the direct messages from the https://api.twitter.com/1.1/direct_messages.json url. I have tried adding oAuthToken and oAuthTokenSecret part of SLRequest but I get the same error, "This application is not allowed to access or delete your direct messages". What is the use of oAuthToken and oAuthTokenSecret? How to make direct

Retrieving twitter user data with iOS Social / Accounts frameworks

浪尽此生 提交于 2019-11-29 05:01:13
Is there a way to get user data (first name, last name, and email) from Twitter using the iOS social/accounts frameworks? I'm able to do it with Facebook, but every SLRequest I make to Twitter returns an empty array. Here's the code I've got right now. I've tried several URLS with varying parameters, but I haven't had any luck. - (void)populateTwitterAccount { NSURL *twitterURL = [NSURL URLWithString:@"https://api.twitbridge.com/1.1/users/show.json"]; SLRequest *twitterRequest = [SLRequest requestForServiceType:SLServiceTypeTwitter requestMethod:SLRequestMethodGET URL:twitterURL parameters:nil

Retrieving twitter user data with iOS Social / Accounts frameworks

孤街醉人 提交于 2019-11-27 18:48:15
问题 Is there a way to get user data (first name, last name, and email) from Twitter using the iOS social/accounts frameworks? I'm able to do it with Facebook, but every SLRequest I make to Twitter returns an empty array. Here's the code I've got right now. I've tried several URLS with varying parameters, but I haven't had any luck. - (void)populateTwitterAccount { NSURL *twitterURL = [NSURL URLWithString:@"https://api.twitbridge.com/1.1/users/show.json"]; SLRequest *twitterRequest = [SLRequest