[Plugin: Tweet Old Post] Twitter Authorization Problem Work Around and Code Improvement
-
Had the authorisation issue with latest two versions, earlier version (been using this plugin a while no probs).
Followed the instruction in the FAQ (clicked the Update tweet Old Posts Option button) that still didn’t work, but did remove the redirection error message, had a link loaded in the webpage as plain text when I tried to authenticate similar to this (edited it to remove my domain etc…):
https://www.domain.com/wp-admin/admin.php?page=TweetOldPost&TOP_oauth=1&oauth_token1=qzQftrwitE4RWTCW5zJg9goyPLbNxRgrswaIpUk0G1I&oauth_verifier=VxWzkMBeJWQ3DDt2CYDg3yab2vURXiiUvkTrJqFIhttps://www.domaine.com/wp-admin/admin.php?page=TweetOldPost&TOP_oauth=1&oauth_token1=qzQftrwitE4RWTCgW5zJg9goPLbNxRggrswaIpUk0G1I&oauth_verifier=VxWzkMBeJWQ3DgDt2CYDg3ab2vURgXiiUvkTrJqFI
Copy and pasted the URL into a browser window and it redirected back to the options page and the plugin was activated. Posts are tweeting.
It works, I’m happy.
I run around 90 WordPress sites and have the plugin (a customized earlier version that Tweeted Pages as well) on around 30 sites. I found updating a site that was already authorised with an older version of the plugin still worked, but authorising new sites was hitting the redirection problem during activation. So if others can’t get it to authorise install an older version, authorise and update to V4.
Good to see you’ve added Pages, was a pain having to add Pages myself after each update.
Any news on Tweeting to multiple Twitter accounts, really looking forward to that feature?
Hmm, just updated another site and it’s working, but looks like you haven’t added Pages to the exclude options page so you can’t exclude Pages.
Really easy to add the exclude code, in top-excludepost.php change
$sql = "SELECT p.ID,p.post_title,p.post_date,u.user_nicename,p.guid FROM $wpdb->posts p join $wpdb->users u on p.post_author=u.ID WHERE post_type = 'post'
to
$sql = "SELECT p.ID,p.post_title,p.post_date,u.user_nicename,p.guid FROM $wpdb->posts p join $wpdb->users u on p.post_author=u.ID WHERE post_type = 'post' or post_type = 'page'
Only problem with this is Pages don’t have a category, so the options page layout lacks a category for the Page entries, says uncategorized (not linked), it works which is the main thing.
Any chance you could add this to your next update so I don’t need to edit it in each update?
It’s important to have Pages excluded, got a bunch of pages I don’t want tweeting and since you’ve added Pages it’s the only edit I had to make (earlier versions edited top-core.php as well to add Pages).
Not played with the plugin much yet, but looks like a good update with Pages and tweeting multiple posts, nice ??
You thought about adding a Tweet home page option? Appreciate the home page doesn’t have a Page ID unless you’ve selected a Front Page.
David
- The topic ‘[Plugin: Tweet Old Post] Twitter Authorization Problem Work Around and Code Improvement’ is closed to new replies.