Twitter API keys

6 replies · opened Dec 7, 2020

SstookyDec 7, 2020

hello semicolon
I am referring to http://docs.semicolonweb.com/docs/widgets/twitter-widget/

Open the include/twitter/tweets.php file.
Enter your Twitter APP Details as mentioned below:
$consumerkey = ""; // Twitter App - Consumer Key for OAuth
$consumersecret = ""; // Twitter App - Consumer Secret for OAuth
$accesstoken = ""; // Twitter App - Access Token for OAuth
$accesstokensecret = ""; // Twitter App - Access Token Secret for OAuth

I just created a developer account on Twitter, created a app, and got 3 keys

  • API key
  • API secret key
  • Bearer token

and now? how do I have tp proceed using your Twitter solution?

rgds
guido

SSemicolon WebSTAFFDec 7, 2020

Hello,

  1. Go to your Twitter Developer App's Page: https://developer.twitter.com/en/apps .

  2. Click on the App (Details button) you want to use or Create a New App.

  3. Click on Keys and Tokens Tab.

  4. You will find Consumer API Keys and Access Token & Access Token Secret.

  5. If you already have your Access Token & Access Token Secret Keys (if not, click on Regenerate), simply paste all the Four Keys in the include/twitter/tweets.php File in their mentioned locations.

Then use the following code to display your Tweets:
[ch_pre]

[/ch_pre]

That's it. This will definitely work fine. Hope this Helps!

Let us know if we can help you with anything else or if you find any further issues.

SstookyDec 7, 2020

got them, thx a lot

rgds
guido

SstookyDec 7, 2020

sorry one more question please

I have a big space in footer on right, and no real content for that space
http://gjd.web.my1.cc/

no sitemap, or small form or anything, so I thought maybe the last twitter post
but even better would be e.g. 4x2 instagramm pics

do you have any information if it is possible to have sth. similiar with api from instagram?

ths and rgds
guido

SSemicolon WebSTAFFDec 7, 2020

Hello,

This is Definitely Possible but slightly complicated due to ever-changing API restrictions from Instagram.

We have tried working on this! Consider using the updated js/plugins.min.js File: https://drive.google.com/file/d/1vconePqhxq48GsF1GvQ75GGzgBiqConM/view?usp=sharing .

Then:

  1. Follow steps 1 - 3 here: Facebook Basic Display API guide.

  2. Use the User Token Generator to create a starting access token.

Then add the following code in the HTML File just after the js/plugins.min.js JS File Linking:
[ch_pre]var scwInstagramToken = 'your-access-token';[/ch_pre]

This should work fine for now. But this is strictly experimental and currently, there will be only limited support provided on this as this is something that is not officially included with Canvas at the moment.

Hope this Helps!

Let us know if we can help you with anything else or if you find any further issues.

SstookyDec 7, 2020

great, thx for the info

will test this these days and report success or not ;-)

SSemicolon WebSTAFFDec 7, 2020

Hello,

Yes, please do let us know if there are any issues, then we can make improvements.

Meanwhile, let us know if we can help you with anything else.

Have the same question, or something new?

Sign in to the Canvas dashboard to reply or open your own topic. Canvas owners get direct help from the SemiColonWeb team.

Reply on the dashboard