Questions tagged [slrequest]

The SLRequest object encapsulates the properties of an HTTP request, providing a convenient template for you to make requests. You send a request to a social networking service to perform some operation on behalf of the user or to retrieve user information.

The SLRequest object encapsulates the properties of an HTTP request, providing a convenient template for you to make requests. You send a request to a social networking service to perform some operation on behalf of the user or to retrieve user information.

HTTP requests have these common components: an HTTP request method (GET, POST, or DELETE), a URL identifying the operation to perform, a set of query parameters, and an optional multipart POST body containing additional data. The values for these properties depend on the request you are sending and the target service provider. Refer to each supported social networking site’s documentation for possible values. Links to documentation are provided in Table 1.

Use the requestForServiceType:requestMethod:URL:parameters: method to initialize a newly created SLRequest object passing the required property values. Use the addMultipartData:withName:type: to optionally specify a multipart POST body. After you create your request, use the performRequestWithHandler: method to send the request, specifying the handler to call when the request is done.

If you already have a sending mechanism, you can use the preparedURLRequest method to create the request that you send using an NSURLConnection object. If the request requires user authorization, set the account property to an ACAccount object.

Table 1 Social Services Individual Documentation Sites

Facebook    | https://developers.facebook.com/docs/  
Sina Weibo  | http://open.weibo.com/wiki/  
Twitter     | https://dev.twitter.com/docs  

Official page for more info

68 questions
1
vote
1 answer

Why does requestAccessToAccountsWithType facebook fail with "Invalid Permission: photo_upload"

I am trying to get access to Facebook to post images to a page from an iOS app. But so far I can't even get it to give me the permissions I need. I've done a lot of searching including iOS 6 Facebook posting procedure ends up with "remote_app_id…
Simon East
  • 2,516
  • 2
  • 18
  • 21
1
vote
1 answer

Posting to Facebook with SLRequest but without an app ID

With SLComposeViewController it's possible to post to Facebook without needing a Facebook app ID, and this shows up as "via iOS" on the users wall. Is it possible to do the same with an SLRequest , I.e post with the "default" app, or is an app ID…
migueljuan
  • 437
  • 1
  • 3
  • 15
1
vote
0 answers

ACAccount not able to assign to SLRequest object account variable directly in IOS 6,How to solve this issue?

I had list all Twitter accounts in tableview of the First view controller. In that view controller i had select one account from that table view and pass that account object to second view controller. In second view controller i had assign ACAccount…
Velmurugan S
  • 619
  • 3
  • 21
1
vote
2 answers

App crashing with exception: -[NSConcreteMutableData _fastCharacterContents]

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…
ViruMax
  • 1,216
  • 3
  • 16
  • 41
1
vote
2 answers

Twitter SLRequest on OSX returns error 32

Executing an SLRequest for Twitter on OSX Mavericks 10.9 returns "Could not authenticate you" with error code 32 for any Twitter API request. The simple code snippet is below. ACAccountStore *accountStore = [[ACAccountStore alloc]…
Ivan
  • 330
  • 2
  • 9
1
vote
0 answers

Can we use SLRequest for all steps of reverse Auth?

Can we use SLRequest for all steps of reverse Auth (in Twitter) instead of working with NSURLRequest and NSURLConnection?
kaymas
  • 337
  • 1
  • 3
  • 10
1
vote
0 answers

Getting OauthException when uploading a video to facebook

I am trying to upload a video on an iPhone to the user's facebook timeline using Social Framework. I used the snippet given in this answer. Here is my code: - (void)performActivity { NSLog(@"sharing on facebook."); ACAccountStore *accountStore =…
Hgeg
  • 545
  • 6
  • 19
1
vote
0 answers

iOS Setting Twitter Consumer Key with SLRequest for Server Side

I am using SLRequest to call on twitter from my server. I have accomplished this by changing the url from the twitter API to the server's api calls. This works perfectly, accept for the consumer key and secret. From my reading, SLRequest doesn't…
Kyle Begeman
  • 7,169
  • 9
  • 40
  • 58
1
vote
2 answers

SLRequest Twitter iOS

I am downloading a users timeline for my iOS app. Right now I am getting the full JSON response from Twitter's API URL https://api.twitter.com/1.1/statuses/home_timeline.json It is returning everything as shown here... Timeline response: ( …
Dummy Code
  • 1,858
  • 4
  • 19
  • 38
1
vote
1 answer

how to get read permission before publishing permission for uploading video on Facebook using SLRequest?

I am simply trying to integrate Facebook sharing into my app, my app's end product is a video hence uploading and sharing the final compilation with friends is what i have in mind, I am using native social framework with ACAccount Framework, for my…
Abhinav Singh
  • 7,880
  • 1
  • 23
  • 33
1
vote
1 answer

How to use SLRequest for change via iOS to via

I goes through many link and tutorials but not working for me. Can anybody explain me How to use SLRequest for change via iOS to via MyAppName ?? step by step or give me some links which gives this solution in step by step. EDIT: I have tried. …
python
  • 1,407
  • 1
  • 15
  • 31
1
vote
1 answer

Using SLRequest to post to a Facebook Page

I can use SLRequest to publish to me/feed, but I am having issues trying to publish to [pageid]/feed. Can someone point me in the right direction on how to do this? I have @"publish_stream" permissions requested.
Kinetic Stack
  • 788
  • 12
  • 33
1
vote
0 answers

iOS: Post to Twitter causes error - Obtaining the web lock from a thread other than the main thread

I'm making an app where I want to post to twitter (without a modal view). I'm quite new to the Social.framework so I'm having some issues. More specifically I get the error: Obtaining the web lock from a thread other than the main thread or the web…
Anders
  • 2,903
  • 7
  • 58
  • 114
1
vote
1 answer

How to use signedURLRequest on SLRequest?

I want use userstream on iOS6 social framework. iOS5 TWRequest *request = [[TWRequest alloc] initWithURL:[NSURL URLWithString:@"https://userstream.twitter.com/1.1/user.json"] parameters:params requestMethod:TWRequestMethodGET]; [request…
noppe
  • 65
  • 1
  • 7
1
vote
1 answer

SLRequest gives Parse Error: Expected ]

I'm writing a Facebook Parser for iOS6. Yesterday, I made a test project with only the parser. This worked fine. When I want to implement the parser in my bigger project (with exactly the same method code), a "Parse Error: Expected ]" is given. The…
harmjanr
  • 930
  • 2
  • 11
  • 27