Forum Moderators: coopster

Message Too Old, No Replies

PHP to Facebook message?

Having trouble finding a way out

         

explorador

3:58 am on Aug 6, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Hi Webmasters, I have a set of websites with standard contact form that lets sales dept receive visitors messages. Now I need to send this message to their phones via SMS. I know how to do this, but the cell phone companies masked their programs behind flash and now I can't find a way to send the post. Other companies now force you to login before sending a single SMS. It was easy years ago where I only needed to check their form and tweak my scripts :(

Anyway I find two ways out. One is a paid service of sms gateway and then having access to an api. I can't find any free services covering my country so that's out.

The other way is to create an app that sends the message to facebook accounts (one per each sales guy) it will need a master account from where the messages are sent. I know this needs an app facebook to be created. So far I found little documentation (and confusing) but only to post messages on walls, that's public, I need the messages to go directly to the inbox. This way each account can be configured to send mobile notifications and that's it.

I'm more skilled in Perl but I see PHP apps are more suitable for this, specially because perhaps there is already one for this.

Actually I have a third option... sending emails to the cellphone number@#*$!xbla-bla-cellphonecompany.com but that's my last option.

Thanks in advance for any directions or clues for documentation on how to do this. (I found some but are outdated, the api refuses connections and the new ones are confusing but only related to send messages to wall). I wanted to use twitter but sms notifications are not available in my country anymore.

astupidname

6:54 am on Aug 6, 2010 (gmt 0)

10+ Year Member



Actually I have a third option... sending emails to the cellphone number@#*$!xbla-bla-cellphonecompany.com but that's my last option.

Just wondering, why is that your 'last option' ?
I just tried it with php's mail function and mycellnumber@mycellprovider.net and it works fine for me, with a very basic cell package.
There is a list of carriers SMS gateways here: [en.wikipedia.org...]
And this works fine for me (my provider is US Cellular):
$headers = 'From: webmaster@example.com' . "\r\n" . 'Reply-To: webmaster@example.com';
$sentMail = mail('nnnnnnnnnn@email.uscc.net', 'New sms message test', 'Did you get this message?', $headers);

Where 'nnnnnnnnnn' is my ten digit cellphone number such as 3335558888 for example.
So I would think you should have easy time sending text messages of the visitors comments to the reps, unless there's much more to it I'm misunderstanding.

explorador

6:55 am on Aug 7, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Direct email to the phone is my last option because it doesn't always work. It also takes more time to get to the phone than the usual sms (product of actual real life tests). Besides here for the most companies you only receive one line and then you have to open the message to initiate a download of the rest of it.

Yes it is very simple and Ive done it. As for the wiki, my country is not listed there. There is no way to deliver a free sms here, not anymore that way. There are many listing free sms delivery and I've tried, but works only for other countries.

Sms is a business, so that's why I'm looking for other options.