[Twitter] 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/apply-for-access and create a new Twitter 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,337
  • twitter4.png
    twitter4.png
    32.6 KB · Views: 4,001
  • radioboss_twitter.zip
    3.6 KB · Views: 711
Last edited:

johngrant

New member
It seemed to stop working today.  Getting "Exception: Invalid Server Response" which doesn't seem to be a twitter API issue.

Thoughts?
 

johngrant

New member
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
 

djsoft

Well-known member
Staff member
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.
 

johngrant

New member
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.
 

djsoft

Well-known member
Staff member
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.
 

djsoft

Well-known member
Staff member
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.
 

djsoft

Well-known member
Staff member
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.
 

Ron

New member
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?
 

djsoft

Well-known member
Staff member
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.
 
Top