Skip to Content
It is currently December 6th, 2019, 8:06 pm

All times are UTC - 6 hours [ DST ]




Post new topic Reply to topic  [ 715 posts ]  Go to page Previous  1 ... 42, 43, 44, 45, 46, 47, 48  Next
Author Message
PostPosted: March 31st, 2014, 9:42 am 
Offline
SVS Member
SVS Member

Joined: December 6th, 2004, 9:00 am
Posts: 7888
Location: Aachen (Germany)
I had looked into that when G+ was just launched, but back then there was no API for publishing stuff.
The situation has not changed that much by now. More of the opposite has happened since facebook still has the API for auto-posting in the name of a user, but disallows that in their policies.
As far as I can see from the Google+ documentation, they have a similar feature like Facebook's Open Graph stories, where an application can display accumulated "postings" in a special area and where it may post about performing an action (i.e. "ThunderVamp9 has listened to Justin Bieber on Mainstream radio")
Facebook requires the application author to define these action types (listen or for a fanpage probably "play") and get them pre-approved by facebook before going public.
At Google+ I am not yet sure if we can get custom action types at all or if we might be limited to those that Google defines themselves.
I'll definitely have an eye out for it and if it's possible and makes sense Google+ will be included in the Summer 2014 re-release of the application.

_________________
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: May 27th, 2014, 12:18 pm 
Offline
Senior User
Senior User

Joined: November 15th, 2003, 5:56 pm
Posts: 233
Location: Paris of the priaries
Hi there. I had to re-install SAM. Before the re-stall everything worked great. I have been using your app for a very long time (thank-you very much...great job!!), Once I re-installed, I went through all the steps again and re-logged-in to the SAM song-song-info site, re-downloaded the Twitter.pal (even though it has the exact same name (twitter110728a.pal). I made sure it is in my Approved Apps at http://twitter.com/purerocklive (my twitter account), but still nothing is working??? My station GM is running the SAME Pal in his machine and it works perfectly fine for him still, and was before the re-install too. I noticed when he does his Live shows (3-times a week) his tweets post just fine like normal with twitter110728a.pal, but mine are not posting since the re-install.

I took a look at the Pal when it runs and it posts an "empty result" on the second line after the song info.

here is a small section of the twitter-error.txt:
Code:
27/05/2014 10:06:06 AM  Empty result
27/05/2014 10:07:12 AM  Empty result
27/05/2014 10:08:19 AM  Empty result
27/05/2014 10:09:26 AM  Empty result
27/05/2014 10:10:34 AM  Empty result
27/05/2014 10:11:42 AM  Empty result
27/05/2014 10:12:49 AM  Empty result
27/05/2014 10:13:55 AM  Empty result
27/05/2014 10:15:02 AM  Empty result
27/05/2014 10:16:08 AM  Empty result


here is a small section of the twitter-debug.txt:
Code:
27/05/2014 9:54:55 AM  http://www.sam-song.info/twitter/?message=Death%20Angel%20-%20The%20Dream%20Calls%20For%20Blood&userid=16713963
27/05/2014 9:56:02 AM  http://www.sam-song.info/twitter/?message=Death%20Angel%20-%20The%20Dream%20Calls%20For%20Blood&userid=16713963
27/05/2014 9:57:09 AM  http://www.sam-song.info/twitter/?message=Death%20Angel%20-%20The%20Dream%20Calls%20For%20Blood&userid=16713963
27/05/2014 9:58:16 AM  http://www.sam-song.info/twitter/?message=Death%20Angel%20-%20The%20Dream%20Calls%20For%20Blood&userid=16713963
27/05/2014 9:59:23 AM  http://www.sam-song.info/twitter/?message=Bangalore%20Choir%20-%20Hold%20On%20To%20You&userid=16713963
27/05/2014 10:00:30 AM  http://www.sam-song.info/twitter/?message=Bangalore%20Choir%20-%20Hold%20On%20To%20You&userid=16713963
27/05/2014 10:01:37 AM  http://www.sam-song.info/twitter/?message=Bangalore%20Choir%20-%20Hold%20On%20To%20You&userid=16713963
27/05/2014 10:02:44 AM  http://www.sam-song.info/twitter/?message=Motley%20Crue%20-%20Wild%20Side&userid=16713963
27/05/2014 10:03:52 AM  http://www.sam-song.info/twitter/?message=Motley%20Crue%20-%20Wild%20Side&userid=16713963
27/05/2014 10:04:59 AM  http://www.sam-song.info/twitter/?message=Motley%20Crue%20-%20Wild%20Side&userid=16713963
27/05/2014 10:06:06 AM  http://www.sam-song.info/twitter/?message=Motley%20Crue%20-%20Wild%20Side&userid=16713963
27/05/2014 10:07:12 AM  http://www.sam-song.info/twitter/?message=Motley%20Crue%20-%20Wild%20Side&userid=16713963
27/05/2014 10:08:19 AM  http://www.sam-song.info/twitter/?message=Thornley%20-%20Man%20Overboard&userid=16713963
27/05/2014 10:09:26 AM  http://www.sam-song.info/twitter/?message=Thornley%20-%20Man%20Overboard&userid=16713963
27/05/2014 10:10:34 AM  http://www.sam-song.info/twitter/?message=Thornley%20-%20Man%20Overboard&userid=16713963
27/05/2014 10:11:42 AM  http://www.sam-song.info/twitter/?message=Iced%20Earth%20-%20Dystopia&userid=16713963
27/05/2014 10:12:49 AM  http://www.sam-song.info/twitter/?message=Iced%20Earth%20-%20Dystopia&userid=16713963
27/05/2014 10:13:55 AM  http://www.sam-song.info/twitter/?message=Iced%20Earth%20-%20Dystopia&userid=16713963
27/05/2014 10:15:02 AM  http://www.sam-song.info/twitter/?message=Iced%20Earth%20-%20Dystopia&userid=16713963
27/05/2014 10:16:08 AM  http://www.sam-song.info/twitter/?message=Iced%20Earth%20-%20Dystopia&userid=16713963


it looked like the default Pal was set to 1 minute and since our tracks are average 3-5 mins, I changed that to 2mins. hopefully it won't be hitting your server with as many needless quiries anymore. that being said...Any idea why the empty results all of a sudden, or what could be causing it on my end that I can fix?

Thanks. The now Playing tweets are an awesome addition for us. Its great seeing the re-tweets going out all the time from our listeners and the bands we play, it helps listenership greatly.


Top
 Profile  
Reply with quote  
PostPosted: May 27th, 2014, 2:38 pm 
Offline
SVS Member
SVS Member

Joined: December 6th, 2004, 9:00 am
Posts: 7888
Location: Aachen (Germany)
vocal wrote:
it looked like the default Pal was set to 1 minute and since our tracks are average 3-5 mins, I changed that to 2mins. hopefully it won't be hitting your server with as many needless quiries anymore.

Why don't you set it to wait for 1 track to play instead?
Code:
PAL.WaitForTime('+00:02:00');

becomes:
Code:
PAL.WaitForPlayCount(1);


Which version of SAM are you using? I can only assume that there are problems with correctly identifying your SAM.
My application only performs the actual posting and prints the success/error messages if the client can be matched to a known SAM version.
If it cannot match to any SAM version, it will instead serve a redirect to the start page (https://sam-song.info).
This is mainly thought to keep Google and other robots from posting stuff on behalf of my users.

Can you please run this command in a PAL script (you'll have to monitor the output in the PAL IDE):
Code:
WriteLn(WebToStr('http://xenzilla.de'));

If the second line says your User Agent is not allowed, please get back to me with the information from the first line.

Here's what that first line should look like for different SAM versions:
Code:
SAM 4.x (and probably older versions as well): Mozilla/3.0 (compatible)
SAM 2013.x (x<=5) Mozilla/4.0 (compatible; ICS)
SAM 2013.6: Mozilla/4.0 (compatible; SAMBC 2013.6)

As it looks like SAM will be following the new User Agent scheme for at least the next version, I just updated the app to allow all User Agents following the 2013.6 scheme. (I compared that to a few development versions of SAM 2014 that I got access to)

_________________
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: May 27th, 2014, 10:22 pm 
Offline
Senior User
Senior User

Joined: November 15th, 2003, 5:56 pm
Posts: 233
Location: Paris of the priaries
Thanks for your help Mastacheata. As we discussed in an email off-site (since I bugged you in a trouble ticket too). I am using the Beta version of SAM 2014.2, which you were kind enough to get your system all setup for this afternoon, so now my Tweets are working again like a charm...no errors, no issues..all is good again! thanks a bunch.

I also changed:
Code:
PAL.WaitForTime('+00:02:00');

To:
Code:
PAL.WaitForPlayCount(1);

Which is also much better...not sure why I didn't think of that along time ago!

Thanks again for all your help. We are already getting a bunch of re-tweets! You rule!


Top
 Profile  
Reply with quote  
PostPosted: June 7th, 2014, 5:22 pm 
Offline
Senior User
Senior User

Joined: October 10th, 2013, 11:27 am
Posts: 77
Location: Woodbridge, VA
Mastacheata,

I liked the code change to use

Code:
PAL.WaitForPlayCount(1);


Would the twitter post still work if i changed:

Code:
statusmessage := Song['artist'] + ' - ' + Song['title'];


to

Code:
statusmessage := 'Now Playing: ' + Song['artist'] + ' - ' + Song['title'];


I didn't want to try it until you gave the ok after all it's your script and system

_________________
Derek Cosby
Owner/Operator
Internet Radio WXYZ
http://www.wxyz-radio.com

Image


Top
 Profile  
Reply with quote  
PostPosted: June 10th, 2014, 4:34 pm 
Offline
SVS Member
SVS Member

Joined: December 6th, 2004, 9:00 am
Posts: 7888
Location: Aachen (Germany)
Yep, the web application will take any message you send.

_________________
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: June 15th, 2014, 8:42 am 
Offline
Senior User
Senior User

Joined: October 10th, 2013, 11:27 am
Posts: 77
Location: Woodbridge, VA
Thanks, I played with it and added it. It works great.

_________________
Derek Cosby
Owner/Operator
Internet Radio WXYZ
http://www.wxyz-radio.com

Image


Top
 Profile  
Reply with quote  
PostPosted: August 14th, 2014, 5:55 pm 
Offline
Super User
Super User

Joined: November 1st, 2005, 8:09 am
Posts: 567
Location: NJ NYC
i know this is an old thread and dont know if this particular information has been posted here or not
There is just WAYYYY too many replies to read just in HOPES that this bit of info has been noted.

While the changes have been made on the Facebook end which render this PAL useless for posting to your FACEBOOK timeline automatically

there is a way around it

You can use this PAL and only operate it to post to your TWITTER account.
Then you can go into your twitter settings and tell it to TWITTER you want it to connect to your FACEBOOK timeline.

Walk through the steps they ask for, and finally let the two applications shake hands.
Then in just about 2 minutes of clicking buttons and reading and verifying information
your FACEBOOK timeline will be updated via your TWEETS.

I have completed this today, and you can see it here


www.facebook.com/antifmradio

Hope it works for everyone else


Top
 Profile  
Reply with quote  
PostPosted: August 14th, 2014, 9:15 pm 
Offline
SVS Member
SVS Member

Joined: December 6th, 2004, 9:00 am
Posts: 7888
Location: Aachen (Germany)
Yeah, this thread is damn huge and noone expects you to read through all of the 600+ posts here.
But you could use the search box in the bottom of each page to search through this thread or search the whole forum.

That should point you at this thread: viewtopic.php?f=1&t=32978 or at a post in this thread where he mentions his workaround.
PhSyChoTiK wrote this simplified web application for self-hosting and made the web calls compatible to my PAL script.
IIRC he was the first to really write down how to teach Facebook to import your tweets. Not sure if anyone was using that before already.

But thanks for the detailed instructions anyway.

Also a quick update about the progress for a facebook replacement application:
I've submitted a draft for review by Facebook and expect a response within the next few days.
Don't hold your hopes too high, though. This draft was developed in the last winter and only some finishing touches were added in the last weeks. Facebook released two new API generations in the meantime and updated their policies to rule out anything that sends posts to facebook completely unless it is using the official facebook widgets/apps for that or unless there is no compatible facebook app for that platform and you want to provide basic facebook functionalities for that platform. Also the guidelines for the Object Graph thing I wanted to use in order to get around the damn policy for not prefilling posts content now rules out any actions that are triggered by purely consuming something. (Yeah, playing a song on a radio station is the exact opposite, but it still follows the same procedures by outputting a constant stream of messages every few minutes).

That is why is doubt that this app will ever make it through the review process.

_________________
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, 2014, 11:52 pm 
Offline
Super User
Super User

Joined: November 1st, 2005, 8:09 am
Posts: 567
Location: NJ NYC
wow thanks Mastacheata for that info
You know i never noticed the thread search at the bottom of the pages?
now ill know what its for

I would have used the general search however i thought that was just going to result in so many results outside of this thread, it wouldnt be what i was looking for because id never be able to refine the query enough

Thanks again


Top
 Profile  
Reply with quote  
PostPosted: August 15th, 2014, 7:26 am 
Offline
SVS Member
SVS Member

Joined: December 6th, 2004, 9:00 am
Posts: 7888
Location: Aachen (Germany)
Proper search queries seem to be a field of science of its own :(

Facebook and Twitter in a single post message text (telling the search to ignore the subject as that would return 99% of all posts in this thread) results in 160 posts. That's still a lot, but it's only a quarter of this thread.

_________________
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 15th, 2014, 8:35 pm 
Offline
Super User
Super User

Joined: November 1st, 2005, 8:09 am
Posts: 567
Location: NJ NYC
HAHHA so true


Top
 Profile  
Reply with quote  
PostPosted: January 12th, 2015, 3:55 pm 
Offline
SVS Member
SVS Member

Joined: December 6th, 2004, 9:00 am
Posts: 7888
Location: Aachen (Germany)
Development is making good progress, I guess we can start with a small test group in february and go live by april.

As such a rewrite of the application is a lot of work and basically donations only ever came in for the page posting feature, I will dramatically reduce the free feature set and introduce a paid subscription version of the app with the relaunch.

The amount of money that needs to be covered is about 600 EUR / year.

A free tier with a limited amount of posts (200 posts / month or so), no support and a low priority / larger intervals.
The paid tier would then include Google+, Facebook Pages and Groups, unlimited posts with no rate limiting (except for spam and double posting).

As I've got no experience at all with running a paid service, I've got no idea how many people would be willing to convert to the premium account at all.
If only 10 people sign up, the price tag will probably be around 5 EUR / month, but if 100 sign up, we can just as well go down to that amount for a whole year.

Please let me know what you think about my numbers. If you're willing to pay and how much you could spare for this service every year or every month.
The figures above are just first thoughts and I'll make up the final numbers in advance of the relaunch going live.

Kind regards,
Benedikt Bauer
Developer

I've set up a Questionnaire to gather some more detailed information on everyone's preferences. Would be great if you'd fill this out. (Should take less than 2 minutes)
http://goo.gl/forms/eAcZ7n6KR6

_________________
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: March 27th, 2015, 11:35 pm 
Offline
New User
New User

Joined: March 27th, 2015, 11:31 pm
Posts: 1
Hi, i'm having the same issue. I'm new to this, can someone help me?


A Database Error Occurred

Error Number: 1062

Duplicate entry 'playlistnofm' for key 'idx_name'

INSERT INTO `twitter` (`ID`, `token`, `secret`, `screenname`) VALUES ('XXXXXXXXXXXXXXXXX', 'XXXXXXXXXXXXXXXXXXXXX-XXXXXXXXXXXXXXXXXXxxx', 'XXXXXXXXXXXXXXXXXXXXXXXX', 'playlistnofm')

Filename: /public/models/twitter_model.php

Line Number: 28


Last edited by DJ Cassio on March 28th, 2015, 7:43 am, edited 1 time in total.
Token and Secret values removed for your protection


Top
 Profile  
Reply with quote  
PostPosted: March 28th, 2015, 10:07 am 
Offline
SVS Member
SVS Member

Joined: December 6th, 2004, 9:00 am
Posts: 7888
Location: Aachen (Germany)
Hmm, when I disabled the malicious users of my web application, I did not intend them to sign up again and do the very same thing.
I actually expected them to wonder why their twitter poster didn't work anymore and get in contact or at least look at the help website or the apps social media presences.

Check out this help link and follow the steps outlined there:
http://songinfo.uservoice.com/knowledge ... les/510956

If the problem still persists, contact me via the help widget on the homepage of sam-song.info or the support@sam-song.info email.

_________________
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  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 715 posts ]  Go to page Previous  1 ... 42, 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 7 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