[Twitter/X] Post "Nowplaying" statuses

djsoft

Well-known member
Staff member
To post Nowplaying tweets from RadioBOSS, please do the following:

1. Create Twitter application

Apply for a Twitter developer account https://developer.twitter.com/en/portal/petition/essential/basic-info and create a new Twitter app. Please see this page for details about creating an app.
Get the API Key, API Secret, Access token and Access token secret values for the newly created app - you will need those at the next step.

2. Configure RadioBOSS to update Twitter statuses.

Open RadioBOSS, in the top menu click Settings->Options, select the Reports section.
Check the Enable notifications checkbox.
Click the + button to add a new notification.

Click the Configuration Wizard button. Select Twitter and click Next. Input Twitter app access data: API Key, API Secret, Token, Token Secret.

The Tweet Text typically consists of custom text along with track information variables: http://manual.djsoft.net/radioboss/en/title-format-variables.htm

Example tweet text
Code:
Nowplaying: %casttitle

After everything is configured, a tweet will be posted each time a song is played in RadioBOSS.

Notice for RadioBOSS versions 5.6 and older, where configuration wizard is not available. In the URL/email field enter the following, change all of the YOUR_* values respectively with Twitter app keys
Code:
https://user.djsoft.net/twitter/status.php?apikey=YOUR_API_KEY&apisecret=YOUR_API_SECRET&token=YOUR_API_TOKEN&tokensecret=YOUR_API_TOKEN_SECRET&status=%casttitle

If you want to host the status.php script on your web site, please download the attached radioboss_twitter.zip file.
 

Attachments

  • twitter3.png
    twitter3.png
    55.9 KB · Views: 3,725
  • twitter4.png
    twitter4.png
    32.6 KB · Views: 4,362
  • radioboss_twitter.zip
    2.7 KB · Views: 97
Last edited:
It seemed to stop working today.  Getting "Exception: Invalid Server Response" which doesn't seem to be a twitter API issue.

Thoughts?
 
Is this the issue?

https://dev.twitter.com/discussions/24239

Looks like I have to purchase an SSL certificate for my site.

1.  Will the existing script(s) work as-is if I do?
2. Is there any alternative if I elect not to purchase SSL, since I have no other use for it?

Thanks
 
Yes, it's the issue. And I'm not sure if purchasing an SSL certificate will fix it, probably the change in the scripts will be required too. I'll look into it later.
 
djsoft said:
Yes, it's the issue. And I'm not sure if purchasing an SSL certificate will fix it, probably the change in the scripts will be required too. I'll look into it later.

Thanks...I thought it would have to be done in the script.
 
Yes, it now needs to do everything in secure mode (https). Twitter does a very bad practice breaking things this way... In a week or two the scripts will be updated to work with the new API.
 
donaorgasmos said:
Problem : Exception: Invalid server response 
Twitter changed their API (and removed backward compatibility), that's why the scripts doesn't work anymore. We'll update them soon.
 
moh001 said:
okay, is there away to do this with Facebook ?
Yes, you can use the HTTP request feature to your own script which will post songs to facebook. Soon we'll offer an example script on how to do it.
 
Oh can you update to the new api i see a few of the aimp3 twitter plugins allowing me to post what i play to twitter?
 
WBGS-Founder said:
Oh can you update to the new api i see a few of the aimp3 twitter plugins allowing me to post what i play to twitter?
Yes, it will be updated soon.
 
Back
Top