View previous topic :: View next topic |
Author |
Message |
marty Professional Member
Joined: 10 May 2001 Posts: 789
|
Posted: Tue Jan 31, 2012 10:15 pm Post subject: Updating Twiiter or Facebook with VDS? |
|
|
Hello,
Just wondering if anyone managed to use VDS with Twitter or Facebook ?
Like for posting messages/status for example?
Thanks |
|
Back to top |
|
|
Rubes_sw Valued Contributor
Joined: 11 Jun 2001 Posts: 625 Location: Northern Ireland
|
Posted: Wed Feb 01, 2012 2:24 pm Post subject: |
|
|
Hi Marty
I started a project a while ago, trying to find it here somewere...
Basically, i have a php file on my server, that VDS posted data to and the php file then udpated my facebook page...
If i find it i'll let you know
Nathan |
|
Back to top |
|
|
marty Professional Member
Joined: 10 May 2001 Posts: 789
|
Posted: Wed Feb 01, 2012 10:15 pm Post subject: |
|
|
Woa. That would be nice. Maybe its possible to compile the php into an exe and then a VDS exe could call it with some parameters.
Anyway, will wait
Thanks |
|
Back to top |
|
|
PGWARE Web Host
Joined: 29 Dec 2001 Posts: 1562
|
Posted: Wed Feb 01, 2012 11:06 pm Post subject: |
|
|
You would need to include the php extension and a webserver like apache to do that. Pretty much pointless; you need to be online to post to facebook anyway so no point including php and apache when you can just run a real webserver online.
Have a server online with the php script is the best possible way to do that. You get the added benefit of being able to update the code on your server anytime without having to give end-users updated client exe's when you need to make updates to the facebook functionality. |
|
Back to top |
|
|
marty Professional Member
Joined: 10 May 2001 Posts: 789
|
Posted: Thu Feb 02, 2012 2:00 am Post subject: |
|
|
You are right.
The only thing is when the username and password are passed to the url, it will be clear.
But wait, maybe I could use vdsipp..hummm.. now getting my ideas to start going. |
|
Back to top |
|
|
PGWARE Web Host
Joined: 29 Dec 2001 Posts: 1562
|
Posted: Thu Feb 02, 2012 4:05 am Post subject: |
|
|
I believe facebook uses oauth, you cant pass a login like that; it will display a dialog to you where the person logs in, you get a token and then can update with a new post. Typically you use a browser window in your application to get the oauth token (a string of characters) that you pass back using a url. Check the facebook sdk to learn more - http://developers.facebook.com/docs/authentication/
You will want to use the CLIENT side oauth protocal. Also the first url needs to be done in a browser (you can use embedded ie control); it prompts the user from facebooks login page, that returns a token that you can use from that point on to post to the users page, etc. You can refresh the token later on incase it expires.
Asking a user for their username/password is strongly discouraged for most online applications now because of security/privacy risks. |
|
Back to top |
|
|
cnodnarb Professional Member
Joined: 11 Sep 2002 Posts: 762 Location: Rockeledge, GA
|
Posted: Fri Feb 03, 2012 8:44 pm Post subject: |
|
|
Im a little confused about your Gui concept for this project, couldn't you just go embedded ie all the way for this? |
|
Back to top |
|
|
marty Professional Member
Joined: 10 May 2001 Posts: 789
|
Posted: Sat Feb 04, 2012 11:05 am Post subject: |
|
|
Well I wanted an edit box on the UI of my application that could allow to let the user simple change their Facebook status. That way they could stay within the application instead of opening there browser.
There is many ways that it can be done I think. |
|
Back to top |
|
|
webdaddy Contributor
Joined: 14 Nov 2004 Posts: 151 Location: Raleigh NC
|
Posted: Wed Apr 17, 2013 3:36 am Post subject: Updating Twitter |
|
|
I did it with twittermail. They allow one account free I think. It's basically an email address then I used vdsipp to send that address an email and used the subject line as the twitter update I wanted to send. Works well. Now if I could just figure out vdsipp mail attachments I would be in business. What it says to do in the help file doesn't work unfortunately.
Kevin _________________ K Wetzel
Programming - Technology - Communications
"The Home of the SLC Security Console"
SLC now available for Linux... |
|
Back to top |
|
|
|