質問編集履歴
1
コードの修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -6,7 +6,45 @@
|
|
6
6
|
|
7
7
|
|
8
8
|
|
9
|
+
```
|
10
|
+
|
11
|
+
Twitter.sharedInstance().logInWithCompletion { (session, error) -> Void in
|
12
|
+
|
13
|
+
if let session = session {
|
14
|
+
|
15
|
+
PFUser.registerAuthenticationDelegate(self, forAuthType: "twitter")
|
16
|
+
|
17
|
+
let params: [String: String] = [
|
18
|
+
|
19
|
+
"id": (session.userID)!,
|
20
|
+
|
21
|
+
"screen_name": (session.userName)!,
|
22
|
+
|
9
|
-
|
23
|
+
"auth_token": (session.authToken)!,
|
24
|
+
|
25
|
+
"auth_token_secret": (session.authTokenSecret)!,
|
26
|
+
|
27
|
+
"consumer_key": Twitter.sharedInstance().authConfig.consumerKey,
|
28
|
+
|
29
|
+
"consumer_secret": Twitter.sharedInstance().authConfig.consumerSecret
|
30
|
+
|
31
|
+
]
|
32
|
+
|
33
|
+
|
34
|
+
|
35
|
+
PFUser.logInWithAuthTypeInBackground("twitter", authData: params).continueWithBlock { task -> AnyObject? in
|
36
|
+
|
37
|
+
print(task.error)
|
38
|
+
|
39
|
+
return task.completed
|
40
|
+
|
41
|
+
}
|
42
|
+
|
43
|
+
|
44
|
+
|
45
|
+
```
|
46
|
+
|
47
|
+
|
10
48
|
|
11
49
|
このメソッドを使用しているのですが
|
12
50
|
|