News Feed
Jobs Feed
Sections




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

XPertDeveloper.com:
Get Facebook Page Detail Using Graph API and PHP
January 03, 2012 @ 11:06:04

New from the XPertDeveloper.com blog there's a tutorial showing how to use the Facebook graph API to get page details via a simple cURL request (cURL PHP support required for the example).

Here is the technique to get the detail of the Facebook page with Graph API and PHP. This is the very easy method to get the Facebook page detail. So Let's see how to get this done. With this method you can get details of any Facebook page [inluding] name, picture, link, website, products, description and if the user can post to it.

The sample code is only a few lines - it uses the Facebook page ID (easy to grab from the URL) and fetches a URL with it as a parameter. The output is returned as a standard PHP object with all of the properties attached (decoded from JSON). This is just one of many methods the Facebook graph API has, so check out their documentation for more methods and details on returned values.

0 comments voice your opinion now!
facebook graph api curl request tutorial


blog comments powered by Disqus

Similar Posts

Nefarious Designs: Object-Oriented PHP Part 4: PHP5's Improved Features

PHPMag.ru: Zend Framework: models auto-loading

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

SitePoint PHP Blog: Cursors in MySQL Stored Procedures

IBM developerWorks: Build Web services with PHP in Eclipse


Community Events











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


facebook performance component application overview hhvm podcast release code install language opinion unittest composer framework introduction package security symfony2 hack

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