News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

PHPBuilder.com:
Harness the Scripting Power of PHP and cURL to Update Facebook
February 16, 2011 @ 13:30:19

On PHPBuilder.com today there's a new article from Marc Plotz looking at how you can use PHP and cURL with Facebook to update your status.

You probably know that cURL is a wonderful tool for extracting data from a Web page -- that's a given if you are a developer worth your salt. However, in this article, I want to show you how to use cURL to do things for you. We will start by exploring cURL in detail and then move on to use a very cool script to update our Facebook status.

He introduces cURL for those that aren't familiar with it already (including how to tell if it's installed) and some basic code to show a GET request on a remote file. Things get a little more complicated from there - you'll need to set up some cookies for Facebook, use some regular expression matching to find the form to submit to and send the POST data correctly for the update.

0 comments voice your opinion now!
curl tutorial script facebook update status


blog comments powered by Disqus

Similar Posts

Matthew Weir O'Phinney's Blog: Cgiapp2 Tutorial 1 - Switch Template Plugins at Will

Zend Developer Zone: OSCON '07 Wrapup

Etsy Code as Craft: There and Back Again: Migrating Geolocation Data to GeoNames

Zend Developer Zone: Uploading YouTube Videos with Zend Framework

Inside DealTaker Blog: Kohana PHP 2.3.x Tutorial Part 1


Community Events

Don't see your event here?
Let us know!


unittest series extension language interview api library podcast voicesoftheelephpant introduction conference php7 framework version laravel release community example opinion laravel5

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework