The ExoClick PHP Authentication Sample Code demonstrates how to authenticate the API with a token and a session. An example of getting and setting an authorization header with username and password includes request and response classes.
Facebook has launched a new suite of marketing APIs and taken its Facebook Ads API out of private beta. The suite gives developers, ad agencies, and marketers programmatic access to pages, advertising, and analytics for their social media marketing campaigns. In addition to the Ads API, the suite includes the Insights API for building social analytics tools, and Pages API for building and accessing pages and their fields, connections, events, links, notes, photos, and videos. Both are officially part of the Facebook Graph API.
Until recently, only a handful of vendors have had access to the Facebook Ads API—a few major tool developers and some folks willing to make a $5M deposit with Facebook. We've been running Facebook ads and building apps for the last 4 years. The breakdown on the Facebook Ads API: It’s not exactly as robust as the Google AdWords API, but that creates an opportunity to build what Facebook has missed, or game the system, depending on whether you’re white or black hat.
Facebook has made several announcements this week that will benefit developers by expanding the ways that they can reach audiences beyond the social network’s walls. The announcements include upgrades to both the Audience Network SDK and the Facebook Live API.