Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

HowTo: Integrate with Facebook from PHP

DZone's Guide to

HowTo: Integrate with Facebook from PHP

· Web Dev Zone ·
Free Resource

Learn how error monitoring with Sentry closes the gap between the product team and your customers. With Sentry, you can focus on what you do best: building and scaling software that makes your users’ lives better.

Who doesn't want their apps to integrate with Facebook? the second most popular site worldwide, and most popular, bar none, in eight countries (according to Alexa)?

Well, Facebook loves PHP, and even offers a PHP SDK for the Facebook API.

The API is available on Github, with examples -- so browse the SDK directly, if you like.

Or try this new tutorial from phpmaster.com. The author, Hari KT, introduces the guide:

Integrating with Facebook from PHP is easy with the help of Facebook’s PHP SDK and some HTTP libraries like Zend_Http_Client or PEAR HTTP_Request2. In this article I’ll show you how to get started using the Facebook PHP SDK. You’ll learn about the Facebook Graph API and create a Facebook application capable of updating your status message and uploading photos.


Hari runs through initial setup, explains, the Graph API, and provides a sample ('Hello Facebook') application. It looks pretty easy, and could lead to something supremely cool.

Check out the SDK here, and the tutorial here.

What’s the best way to boost the efficiency of your product team and ship with confidence? Check out this ebook to learn how Sentry's real-time error monitoring helps developers stay in their workflow to fix bugs before the user even knows there’s a problem.

Topics:

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}