Download the PHP package lumisys/open-graph-protocol-tools without Composer
On this page you can find all versions of the php package lumisys/open-graph-protocol-tools. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download lumisys/open-graph-protocol-tools
More information about lumisys/open-graph-protocol-tools
Files in lumisys/open-graph-protocol-tools
Package open-graph-protocol-tools
Short Description Open Graph protocol
License
Homepage https://github.com/lumisys/open-graph-protocol-tools
Informations about the package open-graph-protocol-tools
Open Graph protocol
Open Graph protocol enhances information associated with a webpage through key-value pairs included as <meta>
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
Facebook indexes Open Graph protocol markup 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 and Facebook 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 displays a Facebook interpretation of your site's Open Graph protocol content.
mixi Check
Mixi indexes Open Graph protocol markup in its mixi Check social sharing service.
Google+ Snippet
Google indexes Open Graph protocol markup to populate a Google+ activity post.
Sample code
Core Open Graph protocol
Support for structured properties for image, video, and audio objects.
Declare a new OpenGraphProtocol
object and set some properties. Add structured media objects.
Output your OpenGraphProtocol object as HTML <meta>
elements. Default configuration uses the property
attribute from RDFa. Change to name
if you prefer HTML specification compliance and consuming agents support the name
attribute as a property
fallback.
Global objects
Build global objects and attributes. Set time values using either an ISO 8601 formatted string or a DateTime object. DateTimes will be converted to the UTC timezone before output for consistency.
Convert a global object to <meta>
elements just as you would with OpenGraphProtocol.
Combined
A common use case might be storing Open Graph protocol objects in a Controller for use by your web application. You can add each object to an array and later iterate through the array for <head prefix="">
and <meta>
outputs.
All versions of open-graph-protocol-tools with dependencies
ext-curl Version *