PHP Open Graph Example
The following PHP example script demonstrates how a user might use Opengraph.io to get a website’s title, description, and icon given a URL. This example really just shows how to get and parse the data (normal JSON)… once you have the data you can throw it on a page similar to the way that Facebook shows link information.. The OpenGraph.io API will pull down the requested URL and determine the appropriate information from the site depending on what is available.
NOTE: If you use the Compose package manager for PHP, use our Composer package! https://github.com/primeobsession/opengraph-io-php