Skip to content

Commit c0278aa

Browse files
committed
Merge branch 'hotfix_doc_oauth' into develop
2 parents 8acb76e + 80d4416 commit c0278aa

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

protected/application/admin/controllers/SnsController.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,8 @@ public function submitAction()
7373
public function connectAction() {
7474

7575
if (! isset($this->_config->twitter->consumer_key) && !isset($this->_config->twitter->consumer_secret)) {
76-
$this->addErrorMessage("Missing OAuth consumer key and secret");
76+
$this->addErrorMessage("Missing OAuth consumer key and secret, these should be added to the Storytlr config.ini file.
77+
More details <a href='http://github.com/storytlr/core/wiki/How-to-integrate-with-twitter'>here</a>.");
7778
$this->_forward('index');
7879
return;
7980
}

protected/config/config.ini.sample

+3
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@ rss.default.hide_content=1
4444
;;flickr.api_key=
4545

4646
;; Twitter settings
47+
;; In order to integrate storytlr with twitter, you need to obtain OAuth application keys
48+
;; from Twitter directly (we are not allowed to redistribute keys). It is a simple process
49+
;; that you can follow here: http://dev.twitter.com/apps
4750
;;twitter.consumer_key=
4851
;;twitter.consumer_secret=
4952
;;twitter.default.hide_replies=1

protected/install/config.ini.template

+6-2
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,12 @@ rss.default.hide_content=1
4444
[:flickr_comment]flickr.api_key=[:flickr_key]
4545

4646
;; Twitter settings
47-
;;twitter.username=
48-
;;twitter.password=
47+
;; In order to integrate storytlr with twitter, you need to obtain OAuth application keys
48+
;; from Twitter directly (we are not allowed to redistribute keys). It is a simple process
49+
;; that you can follow here: http://dev.twitter.com/apps
50+
;;
51+
;;twitter.consumer_key=
52+
;;twitter.consumer_secret=
4953
;;twitter.default.hide_replies=1
5054

5155
;; Seesmic settings

0 commit comments

Comments
 (0)