Skip to Content
It is currently November 21st, 2019, 2:14 pm

All times are UTC - 6 hours [ DST ]




Post new topic Reply to topic  [ 715 posts ]  Go to page Previous  1 ... 43, 44, 45, 46, 47, 48  Next
Author Message
PostPosted: September 29th, 2015, 9:32 am 
Offline
SVS Member
SVS Member

Joined: December 6th, 2004, 9:00 am
Posts: 7882
Location: Aachen (Germany)
Currently uploading the first test version to the new server.
That also means we're ready to let a few early testers in.

The new app requires a minimum SAM version of 4.8.0 (due to the PAL script generated by default, people with older SAM versions need a custom PAL script to simulate some newer functions of SAM Broadcaster)

Just put a comment here and please let us know which social networks you plan to publish to.
As we have introduced support for Google+ with the redesign, we would appreciate requests by testers with a Google+ business page for their station.

In order to request an invitation, please leave a message with some details about your station and what features you will use (i.e.: "Our station is playing country music and we have 700 fans on facebook plus 500 twitter followers, we will post to our facebook personal profile and our twitter account without images, but would love ‪#‎hashtags‬ and @mentions")

We'll need a means of contacting you, so either make sure you read the messages from "strangers" on your account or tell us your email address.

The same announcement goes out to facebook and twitter.

_________________
Benedikt Bauer - SVS (Spacial Volunteer Support)

We're offering custom PAL / PHP code and general SAM assistance at palscripts.com

My Project:
Send "Now Playing" from SAM to Twitter and/or Facebook | Sourcecode


Top
 Profile  
Reply with quote  
PostPosted: October 19th, 2015, 3:46 pm 
Offline
SVS Member
SVS Member

Joined: December 6th, 2004, 9:00 am
Posts: 7882
Location: Aachen (Germany)
First test results are looking very positive.
We need to get a few minor quirks in the GUI polished up and get a few features ready for release, but then we're good to go.

Authentication is now in place, so noone can take over your account just by knowing your screenname or userid anymore.

I guess we can go live by the end of this month if no major problems appear out of nowhere.

The old application will be around for some time, but don't ask me for how long.
Would rather drop it sooner than later, but we need to find a way to get most users over to the new app in a reasonable amount of time.

I could inform the twitter users by mentioning them in tweets, but I fear that could be recognized as Spam by some people and/or twitter itself.
As we don't have that many followers on twitter (only a handful vs over 200 on facebook), this might look like a stranger getting in touch with you to most people.
Would love to hear from others what you think about that notification approach.
Also if you know anyone who uses or has used this application in the past, please let them know where to find more information (especially the facebook fanpage and the twitter account).

facebook - https://facebook.com/songposter
twitter - https://twitter.com/samsonginfo

_________________
Benedikt Bauer - SVS (Spacial Volunteer Support)

We're offering custom PAL / PHP code and general SAM assistance at palscripts.com

My Project:
Send "Now Playing" from SAM to Twitter and/or Facebook | Sourcecode


Top
 Profile  
Reply with quote  
PostPosted: November 27th, 2015, 2:58 am 
Offline
Senior User
Senior User

Joined: February 9th, 2011, 3:21 pm
Posts: 126
Hi Benedikt. I had previously used the posting tool for our station Harry Chapin Radio and would like to use it again. We have a personal Harry Chapin Facebook account (about 3,200 followers) and have a Twitter account but haven't promoted it so no followers there. But would use the Twitter feed to communicate what we're currently playing so that it could feed into the Facebook page.

Should I log in to the same place I logged into originally? Thanks.


Top
 Profile  
Reply with quote  
PostPosted: November 27th, 2015, 5:07 am 
Offline
SVS Member
SVS Member

Joined: December 6th, 2004, 9:00 am
Posts: 7882
Location: Aachen (Germany)
The old website continues to work just like before.
The beta can be found via a Google group /mailing list with additional information.
https://groups.google.com/forum/m/#!for ... er-testing

Just send a request to join there. Make sure to reference your forum username in the join request.

_________________
Benedikt Bauer - SVS (Spacial Volunteer Support)

We're offering custom PAL / PHP code and general SAM assistance at palscripts.com

My Project:
Send "Now Playing" from SAM to Twitter and/or Facebook | Sourcecode


Top
 Profile  
Reply with quote  
PostPosted: November 27th, 2015, 8:43 am 
Offline
Super User
Super User

Joined: November 1st, 2005, 8:09 am
Posts: 567
Location: NJ NYC
I have mine working the same way
The PAL script sends the update to my twitter account.
My twitter account is already connected to my Facebook page

To avoid over usage i have it only updating every 6 or 8 songs (i have full length dj mixes playing too so it could at times take hours for an update to be reached)

Just the other day i logged back into the old site where the BETA was, did a quick setup
and snagged my copy of the PAL script.
Once tested, adjusted and working...... i did the nice thing and went back to the page to forward a PAYPAL donation

$3.00

That should be ok from each of us i think, and VERY afforable


Top
 Profile  
Reply with quote  
PostPosted: November 27th, 2015, 9:12 am 
Offline
SVS Member
SVS Member

Joined: December 6th, 2004, 9:00 am
Posts: 7882
Location: Aachen (Germany)
Thanks for your donation.
If you followed discussions on our facebook page and/or in the Google Group, you should've noticed that we're going to make this a paid service once it's finished.
I guess that won't affect you if you only play full DJ sets, as you will most likely not post often enough to deplete the free tier limit.

_________________
Benedikt Bauer - SVS (Spacial Volunteer Support)

We're offering custom PAL / PHP code and general SAM assistance at palscripts.com

My Project:
Send "Now Playing" from SAM to Twitter and/or Facebook | Sourcecode


Top
 Profile  
Reply with quote  
PostPosted: November 27th, 2015, 9:33 am 
Offline
Super User
Super User

Joined: November 1st, 2005, 8:09 am
Posts: 567
Location: NJ NYC
i just came across the facebook page yesterday. Ill try to catch up on discussion however
What are the limitations to the free tier limit?
Can i host it on my own server to void over usage at times?


Top
 Profile  
Reply with quote  
PostPosted: November 27th, 2015, 10:20 am 
Offline
SVS Member
SVS Member

Joined: December 6th, 2004, 9:00 am
Posts: 7882
Location: Aachen (Germany)
Antifmradio wrote:
What are the limitations to the free tier limit?

There will be a limited number of posts/month.
The exact number is yet to be defined, but we're looking at something between 60 (that would be the lower limit) and 120 or even 180 posts / month for the free tier.
We basically want to earn about 80-100 EUR / month (from ALL users combined) to cover cost of maintenance and development.

Antifmradio wrote:
Can i host it on my own server to void over usage at times?

The old application's source code is available free of charge on GitHub. It won't receive much more maintenance, though. The code is built on top of the CodeIgniter Framework, requires PHP 5 with the cURL extension and a MySQL database (might work with other database systems as well).

I can imagine granting access to the new application's code as well. The exact terms are up for negotiation, something like paying two years in advance for getting access to the source code repository AS IS (including updates and limited technical documentation, but no personal support).

_________________
Benedikt Bauer - SVS (Spacial Volunteer Support)

We're offering custom PAL / PHP code and general SAM assistance at palscripts.com

My Project:
Send "Now Playing" from SAM to Twitter and/or Facebook | Sourcecode


Top
 Profile  
Reply with quote  
PostPosted: November 27th, 2015, 4:58 pm 
Offline
Senior User
Senior User

Joined: February 9th, 2011, 3:21 pm
Posts: 126
Thanks. Will the new version be based on a Twitter feed character limit? I primarily want to use the service on Facebook, but it looks like you indicated the only way to do that based on Facebook's policy is to have a Twitter account feed in tweets to Facebook (thus the Twitter character limit for each post). Is that correct?

The reason I ask is because some of the songs I post have many characters in the title (my station plays many different versions of the same song, e.g. Cat's In The Cradle (Central Park, New York City); Cat's In the Cradle (Live in Germany), etc. and that uses up a lot of the limited # of characters in the previous version of this great tool that you've created.

Thanks.


Top
 Profile  
Reply with quote  
PostPosted: November 27th, 2015, 4:58 pm 
Offline
Senior User
Senior User

Joined: February 9th, 2011, 3:21 pm
Posts: 126
Thanks. Will the new version be based on a Twitter feed character limit? I primarily want to use the service on Facebook, but it looks like you indicated the only way to do that based on Facebook's policy is to have a Twitter account feed in tweets to Facebook (thus the Twitter character limit for each post). Is that correct?

The reason I ask is because some of the songs I post have many characters in the title (my station plays many different versions of the same song, e.g. Cat's In The Cradle (Central Park, New York City); Cat's In the Cradle (Live in Germany), etc. and that uses up a lot of the limited # of characters in the previous version of this great tool that you've created.

Thanks.


Top
 Profile  
Reply with quote  
PostPosted: November 27th, 2015, 4:58 pm 
Offline
Senior User
Senior User

Joined: February 9th, 2011, 3:21 pm
Posts: 126
Thanks. Will the new version be based on a Twitter feed character limit? I primarily want to use the service on Facebook, but it looks like you indicated the only way to do that based on Facebook's policy is to have a Twitter account feed in tweets to Facebook (thus the Twitter character limit for each post). Is that correct?

The reason I ask is because some of the songs I post have many characters in the title (my station plays many different versions of the same song, e.g. Cat's In The Cradle (Central Park, New York City); Cat's In the Cradle (Live in Germany), etc. and that uses up a lot of the limited # of characters in the previous version of this great tool that you've created.

Thanks.


Top
 Profile  
Reply with quote  
PostPosted: November 27th, 2015, 4:58 pm 
Offline
Senior User
Senior User

Joined: February 9th, 2011, 3:21 pm
Posts: 126
Thanks. Will the new version be based on a Twitter feed character limit? I primarily want to use the service on Facebook, but it looks like you indicated the only way to do that based on Facebook's policy is to have a Twitter account feed in tweets to Facebook (thus the Twitter character limit for each post). Is that correct?

The reason I ask is because some of the songs I post have many characters in the title (my station plays many different versions of the same song, e.g. Cat's In The Cradle (Central Park, New York City); Cat's In the Cradle (Live in Germany), etc. and that uses up a lot of the limited # of characters in the previous version of this great tool that you've created.

Thanks.


Top
 Profile  
Reply with quote  
PostPosted: November 27th, 2015, 5:34 pm 
Offline
SVS Member
SVS Member

Joined: December 6th, 2004, 9:00 am
Posts: 7882
Location: Aachen (Germany)
mgrayeb wrote:
Will the new version be based on a Twitter feed character limit?

Good point. I currently don't take that limit into account at all in the new version. You can post ?unlimited? characters to facebook.

mgrayeb wrote:
I primarily want to use the service on Facebook, but it looks like you indicated the only way to do that based on Facebook's policy is to have a Twitter account feed in tweets to Facebook (thus the Twitter character limit for each post). Is that correct?

The new version goes through the third party service of Buffer.com in order to post to Facebook, Google and Twitter without proxying through one another.

Facebook policy changes were the reason for discontinueing Facebook support in the "old" service. Basically their policy says you may not prefill message and image caption fields, these must be entered by a human.
Permissions for posting content need to be approved by facebook beforehand.

That's not going to happen and therefore we use Buffer.com nowadays. Leave it up to them handling that permissions stuff out with Facebook and all the others.


To sum it up:
#1 No character limit for facebook
#2 We don't go through twitter for posting stuff to Facebook
#3 Facebook policies won't allow you to run a public application on their platform which uses auto-generated content (It might work, though if you create a non-public/testing/development mode app where you name all users by hand in advance) That's why we go through Buffer.com in the new service.

_________________
Benedikt Bauer - SVS (Spacial Volunteer Support)

We're offering custom PAL / PHP code and general SAM assistance at palscripts.com

My Project:
Send "Now Playing" from SAM to Twitter and/or Facebook | Sourcecode


Top
 Profile  
Reply with quote  
PostPosted: August 14th, 2016, 1:12 pm 
Offline
Senior User
Senior User

Joined: February 9th, 2011, 3:21 pm
Posts: 126
Benedikt, I'm trying to use the new song poster PAL script for Facebook but I am getting an error meassage when trying to start it in SAM. Any idea of what I'm doing wrong?

{
Code:
**
 * SAM Broadcaster Web2.0 Connector (twitter)
 *
 * @copyright          2015 by Benedikt Bauer | http://www.sam-song.info
 * @version              15.09-23a
 * @link                    http://www.sam-song.info
 * @author                Benedikt Bauer
 *
 * @license
 * The contents of this file are subject to the
 *            DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
 *                   Version 2, December 2004
 *
 * Copyright for this License (C) 2004 Sam Hocevar <sam@hocevar.net>
 *
 * Everyone is permitted to copy and distribute verbatim or modified
 * copies of this license document, and changing it is allowed as long
 * as the name is changed.
 *
 *            DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
 *   TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
 *
 *  0. You just DO WHAT THE FUCK YOU WANT TO.
 *
 * Software distributed under the License is distributed on an "AS IS"
 * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied.
 *}



/////////////////////////////////////////////////////////////////////
//    Nettiquette                                                  //
//    You may use this PAL Script to communicate with my server    //
//    Change it to your like but don't flood the server/network    //
//                                                                 //
//    Also make sure you don't post any inappropriate messages     //
//    Either me or twitter/fb might then cease to run this service //
//                                                                 //
//    This service has no guaranteed uptime nor support            //
//    However you may ask Questions in the Spacialaudio Forums     //
//    I will probably come back to you and help                    //
//                                                                 //
//    The Webservice will stay private                             //
//    At least until its completely done and tidied up             //
//                                                                 //
//                                                                 //
//    Don't make any changes outside of boxes like this            //
//    unless you really know what you do.                          //
//    I won't give any support if you changed something            //
//    you better shouldn't have touched                            //
//                                                                 //
/////////////////////////////////////////////////////////////////////

{Declaration (Constants)}
CONST DEBUG = TRUE;

{Declaration (Variables)}
var     Player : TPlayer;
var     Song : TSongInfo;
var     statusmessage, returnmessage, picture : String;
var     ErrorLog, DebugLog : String;
var     tempFolder : String = 'C:\sam-song.info';
var     prefix  : String = 'Now Playing on Harry Chapin Radio ';
var     postfix : String = ' Tune in now on your computer at HarryChapinRadio.com and on your mobile device at HarryChapinRadio.org';
var     waitfornextday : Boolean = FALSE;

{Declaration (Functions and Procedures)}
// Construct the GET String for the Web Script, call it and return the output
FUNCTION update(status, picture : String) : String; forward;

// Write Error / Debug Log
PROCEDURE WriteLog(msg : String; error : boolean); forward;


// BEGIN MAIN
PAL.Loop := True;

PAL.LockExecution;
Player := ActivePlayer;

// Is anything playing right now?
IF ( Player <> NIL ) THEN
BEGIN
    Song := Player.GetSongInfo;
    IF (Song <> NIL) AND (Pos(Song['songtype'],'S') > 0) THEN
    BEGIN
        // Message to display in twitter
        statusmessage := Song['artist'] + ' - ' + Song['title'];

        picture := Song['picture'];

        IF (Pos('jpg', picture) = 0) AND (Pos('png', picture) = 0)  THEN
        BEGIN
            picture := 'na.gif'
        END;

        returnmessage := update(statusmessage, picture);

        // Errormessages don't contain the underscore
        IF ( Pos('##', returnmessage) = 0 )  THEN
        BEGIN
            // Special Errormessage for Queue is full => In that case wait for the next day
            IF (Pos('!!', returnmessage) = 0) THEN
            BEGIN
                waitfornextday := TRUE;
            END;
            WriteLog(returnmessage, TRUE)
        END
        // For debugging purposes Successful Posts will be logged as well
        ELSE
        BEGIN
            WriteLog(returnmessage, FALSE);
        END;
    END;
END;

Song.Free;
Player.Free;
PAL.UnlockExecution;
PAL.WaitForPlayCount(60);
WHILE (waitfornextday) DO
BEGIN
    // Try again after 30 minutes if twuitter or google have queue problems
    PAL.WaitForTime('+00:30:00');
    waitfornextday := FALSE;
END;
// END MAIN



FUNCTION update(status, picture : String) : String;
var getstr,returnstr : String;
BEGIN
    // IF status contains leading/trailing whitespace, remove whitespace from prefix and postfix
    IF (Length(Trim(status)) < Length(status)) THEN
    BEGIN
        prefix := Trim(prefix);
        prefix := Trim(postfix);
    END;

    // manually replace forward slashes in URLs
    status := StringReplace(URLEncode(Trim(prefix + status + postfix)), '/', '%2F');
    // normal URL encoding applied to filename to protect special characters
    picture := URLEncode(picture);
    getStr := 'http://songposter.net' + '/' + 'send-post' + '/'
        + 'facebook' + '/' + '0' + '/' + '104' + '/' + '****' + '/' + status + '/' + picture;

    WriteLog(getStr, FALSE);

    // Here goes the magic!
    returnstr := WebToStr(getStr);

    result := returnstr;
END;

PROCEDURE WriteLog(msg : String; error : boolean);
BEGIN
    IF NOT SetCurrentDir(tempFolder) THEN
    BEGIN
        CreateDir(tempFolder);
        SetCurrentDir(tempFolder);
    END;

    PAL.LockExecution;
    IF Pos('Awesome', msg) > 0 THEN
    BEGIN
        msg := DateTimeToStr(NOW) + '  ' + msg + chr(13) + chr(10);
        Writeln(msg);
    END
    ELSE
        SaveStringToFile('facebook.0-error.html', msg);

    IF error THEN
    BEGIN
        //ERROR LOG create if not exists
        IF FileExists('facebook.0-error.log') THEN
            AppendStringToFile('facebook.0-error.log', msg)
        ELSE
            SaveStringToFile('facebook.0-error.log', msg)
    END
    ELSE IF DEBUG THEN
    BEGIN
        //DEBUG LOG create if not exists
        IF FileExists('facebook.0-debug.log') THEN
            AppendStringToFile('facebook.0-debug.log', msg)
        ELSE
            SaveStringToFile('facebook.0-debug.log', msg);
    END;
    PAL.UnlockExecution;
END;


Last edited by Mastacheata on August 17th, 2016, 6:33 am, edited 2 times in total.
Added CODE tags for better readability, please use them yourself next time; Masked password


Top
 Profile  
Reply with quote  
PostPosted: August 14th, 2016, 1:28 pm 
Offline
Senior User
Senior User

Joined: February 9th, 2011, 3:21 pm
Posts: 126
P.S. In the PAL Scripts window on SAM, next to this PAL Script the message reads: Compiler errors.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 715 posts ]  Go to page Previous  1 ... 43, 44, 45, 46, 47, 48  Next

All times are UTC - 6 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group