PHPackages                             lumisys/open-graph-protocol-tools - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. lumisys/open-graph-protocol-tools

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

lumisys/open-graph-protocol-tools
=================================

Open Graph protocol

v2.0.0(4y ago)06PHPPHP ^5.3 || ^7.0 || ^8.0

Since Mar 30Pushed 4y agoCompare

[ Source](https://github.com/LumiSys/open-graph-protocol-tools)[ Packagist](https://packagist.org/packages/lumisys/open-graph-protocol-tools)[ Docs](https://github.com/lumisys/open-graph-protocol-tools)[ RSS](/packages/lumisys-open-graph-protocol-tools/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

Open Graph protocol
===================

[](#open-graph-protocol)

[![Open Graph protocol](https://camo.githubusercontent.com/9bd236abde68b83fa707321e7525e0429a99800c2445ba93bb1dc70c15bbe40f/687474703a2f2f6f67702e6d652f6f70656e5f67726170685f70726f746f636f6c5f6c6f676f2e706e67 "Open Graph protocol logo")](https://camo.githubusercontent.com/9bd236abde68b83fa707321e7525e0429a99800c2445ba93bb1dc70c15bbe40f/687474703a2f2f6f67702e6d652f6f70656e5f67726170685f70726f746f636f6c5f6c6f676f2e706e67)

[Open Graph protocol](http://ogp.me/ "Open Graph protocol community site") enhances information associated with a webpage through key-value pairs included as `` elements in your HTML. This additional data is consumed by social sharing sites, populating a story preview for shared links and referenced objects in the social graph.

This project includes tools to validate and sanitize inputs before generating Open Graph protocol markup on your webpages. This project standardizes outputs for easy indexing by consuming agents.

Consuming agents
----------------

[](#consuming-agents)

### Facebook

[](#facebook)

[Facebook indexes Open Graph protocol markup](http://developers.facebook.com/docs/opengraph/ "Facebook Open Graph protocol") found on pages shared in a member's social news feed. This markup also enhances social news feed stories generated by the [Like button social plugin](http://developers.facebook.com/docs/reference/plugins/like/ "Facebook Like button") and [Facebook Share](http://developers.facebook.com/docs/share/).

Open Graph protocol markup turns webpages into objects within the Facebook social graph, increasing search exposure and uniquely classifying your site and story type within the social news feed.

The [Facebook Object Debugger](http://developers.facebook.com/tools/debug) displays a Facebook interpretation of your site's Open Graph protocol content.

### mixi Check

[](#mixi-check)

[Mixi indexes Open Graph protocol markup](http://groups.google.com/group/open-graph-protocol/browse_thread/thread/356d722abf70001d/397ec334ca87f122 "mixi Check Open Graph protocol Google Group announcement") in its [mixi Check](http://developer.mixi.co.jp/connect/mixi_graph_api/mixi_io_spec_top/check-api/) social sharing service.

### Google+ Snippet

[](#google-snippet)

[Google indexes Open Graph protocol markup](https://developers.google.com/+/plugins/+1button/#plus-snippet) to populate a Google+ activity post.

Sample code
-----------

[](#sample-code)

### Core Open Graph protocol

[](#core-open-graph-protocol)

Support for structured properties for image, video, and audio objects.

```
