From b75529b5daa28b0ea49216024747641b26fb7a67 Mon Sep 17 00:00:00 2001 From: mpl Date: Thu, 26 Jul 2018 02:33:49 +0200 Subject: [PATCH] pkg/importer/twitter: update importer account instruction Fixes #1130 Change-Id: I0ad7de5e09f00e8079e6ce498a0dbb38998f22a5 --- pkg/importer/twitter/twitter.go | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/pkg/importer/twitter/twitter.go b/pkg/importer/twitter/twitter.go index 19ddd39f8..63fe1cbba 100644 --- a/pkg/importer/twitter/twitter.go +++ b/pkg/importer/twitter/twitter.go @@ -150,8 +150,25 @@ func (im *imp) AccountSetupHTML(host *importer.Host) string {
  • Website: %s
  • Callback URL: %s
  • -

    Click "Create your Twitter application".You should be redirected to the Application Management page of your newly created application. -
    Go to the API Keys tab. Copy the "API key" and "API secret" into the "Client ID" and "Client Secret" boxes above.

    + +

    +Click "Create your Twitter application".You should be redirected to the
    +Application Management page of your newly created application.
    +Go to the "Keys and Access Tokens" tab. Copy the "Consumer Key (API Key)" and
    +"Consumer Secret (API Secret)" into the "Client ID" and "Client Secret" boxes
    +above. +

    +

    +Note that the twitter API prevents us from getting more than 3200 tweets
    +(including retweets) through your user timeline. So if you have more than that
    +limit (and want to get them all), after you have configured this account, you
    +need to download all your data as a zip first. Which you can do on your twitter
    +page, at: "Settings and Privacy", "Your Twitter data", "Download your Twitter
    +data". Then upload it to your instance with "pk-put file tweets.zip" (this will
    +return the zip-fileref), and signal the twitter importer that you have it, with
    +"pk-put attr <acct-permanode> twitterArchiveZipFileRef <zip-fileref>".
    +Then you can start running the importer. +

    `, base, base+"/callback") }