Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#271 2016-11-15 15:34:03

michaelkpate
Moderator
From: Avon Park, FL
Registered: 2004-02-24
Posts: 1,379
Website GitHub Mastodon

Re: TXP Tweet: arc_twitter and arc_twitter_intents

Update: I got that error resolved.

public static function callbackURL($event,$step)
	{
		return preg_replace('/\?.*/', '',PROTOCOL.$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI'])
		  .'?event='.$event.'&step='.$step;
	}

I also figured out what error Twitter is returning:


Whoa there! The request token for this page is invalid. It may have already been used, or expired because it is too old. Please go back to the site or application that sent you here and try again; it was probably just a mistake.

Apparently this is not a unique problem but I am still trying to figure out where and how to correct it.

Offline

#272 2018-02-05 22:33:50

monkeyninja
Plugin Author
From: Sheffield, UK
Registered: 2008-10-14
Posts: 239
Website

Re: TXP Tweet: arc_twitter and arc_twitter_intents

arc_twitter has been updated to support Twitter’s increased tweet character length.

Offline

#273 2019-05-16 20:14:01

amordecosmos
Plugin Author
From: London (Hometown: Vancouver)
Registered: 2004-08-03
Posts: 120
Website

Re: TXP Tweet: arc_twitter and arc_twitter_intents

Arc_Twitter breaks on 4.7.3 even if I do the edit above (it gets the same error).

Any clue what I can do? My client has auto-post on Twitter as a must-have so I can’t upgrade him.

Offline

#274 2019-06-08 12:19:22

amordecosmos
Plugin Author
From: London (Hometown: Vancouver)
Registered: 2004-08-03
Posts: 120
Website

Re: TXP Tweet: arc_twitter and arc_twitter_intents

Am I right about this? txp:tweet (and it’s underlying arc_twitter) don’t work on 4.7.3?

Offline

#275 2020-12-09 22:41:59

whocarez
Plugin Author
From: Germany/Ukraine
Registered: 2007-10-08
Posts: 305
Website GitHub Twitter

Re: TXP Tweet: arc_twitter and arc_twitter_intents

Has anyone a working version for Textpattern 4.8.x?

Seems to me, that the used TwitterOAuth v0.2.0-beta2 from 2009 is too old. The latest one is already 2.0.1, but more complex and unfortunately the author monkeyninja said good bye to Textpattern.

Offline

#276 2020-12-10 00:28:48

bici
Member
From: vancouver
Registered: 2004-02-24
Posts: 2,252
Website Mastodon

Re: TXP Tweet: arc_twitter and arc_twitter_intents

Are you wanting to simply output a twitter feed to your webpage?

I don’t recall how i did but i currently have a twitter output on my home page usng this code:

<div id="twitter_div">  
<a class="twitter-timeline" width="250" height="300" href="https://twitter.com/YOURID" data-widget-id="358723390632247296">Tweets by @YOURID</a>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+"://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
</div>

I think i got it from the Twitter api pages.


…. texted postive

Offline

#277 2020-12-10 05:02:48

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,376
Website GitHub Mastodon Twitter

Re: TXP Tweet: arc_twitter and arc_twitter_intents


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#278 2020-12-10 07:55:16

whocarez
Plugin Author
From: Germany/Ukraine
Registered: 2007-10-08
Posts: 305
Website GitHub Twitter

Re: TXP Tweet: arc_twitter and arc_twitter_intents

No, I want to tweet new articles from inside Textpattern, so it’s about arc_twitter.

Offline

#279 2020-12-10 09:34:34

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,376
Website GitHub Mastodon Twitter

Re: TXP Tweet: arc_twitter and arc_twitter_intents

I’m wondering if adi_notes can parse txp tags on the back-end. Do ask in that thread and, if it does, the following untested code may work in combination with the recommended twitter meta-tags.

<a href="http://www.twitter.com/intent/tweet?url=<txp:permlink id='<txp:article_id />' />" title="Share on Twitter">Post on Twitter</a>

Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

Board footer

Powered by FluxBB