{"id":12484,"date":"2011-03-10T10:18:08","date_gmt":"2011-03-10T10:18:08","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/open-graph\/"},"modified":"2011-03-10T12:47:24","modified_gmt":"2011-03-10T12:47:24","slug":"open-graph","status":"publish","type":"plugin","link":"https:\/\/pcd.wordpress.org\/plugins\/open-graph\/","author":2629064,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.1","stable_tag":"1.1","tested":"3.1.4","requires":"3.1","requires_php":"","requires_plugins":"","header_name":"Open Graph WP implementation","header_author":"Piyush Mishra","header_description":"","assets_banners_color":"","last_updated":"2011-03-10 12:47:24","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"http:\/\/www.piyushmishra.com\/plugins\/open-graph.html","header_author_uri":"http:\/\/www.piyushmishra.com\/","rating":0,"author_block_rating":0,"active_installs":70,"downloads":8813,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq"],"tags":[],"upgrade_notice":{"1.1":"<p>Fixes a major bug. New featues added. Absolutely necessary.<\/p>","1.0.1":"<p>Minor, not necessary from 1.0 versions.<\/p>"},"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0.1","1.1"],"block_files":[],"assets_screenshots":[],"screenshots":[],"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[157,5283,6487,2989],"plugin_category":[55,56],"plugin_contributors":[84848],"plugin_business_model":[],"class_list":["post-12484","plugin","type-plugin","status-publish","hentry","plugin_tags-facebook","plugin_tags-fb","plugin_tags-open-graph","plugin_tags-opengraph","plugin_category-seo-and-marketing","plugin_category-social-and-sharing","plugin_contributors-piyushmishra","plugin_committers-piyushmishra"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/open-graph.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>The Open Graph protocol enables any web page to become a rich object in a social graph. For instance, this is used on Facebook to enable any web page to have the same functionality as a Facebook Page.<\/p>\n\n<p>While many different technologies and schemas exist and could be combined together, there isn't a single technology which provides enough information to richly represent any web page within the social graph. The Open Graph protocol builds on these existing technologies and gives developers one thing to implement. Developer simplicity is a key goal of the Open Graph protocol which has informed many of the technical design decisions.<\/p>\n\n<h4>For Developers<\/h4>\n\n<p>Use <code>add_action('open_graph_head_pre','your_function');<\/code> and <code>add_action('open_graph_head_post','your_function');<\/code> to edit the meta data. For an instance of the class.<\/p>\n\n<p>Always use <code>open_graph_instance()<\/code>\nRead more on the Plugin URI &gt; <a href=\"http:\/\/www.piyushmishra.com\/plugins\/open-graph.html\" title=\"Plugin URI\">Open Graph WP implementation<\/a> or check out the FAQs<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Upload <code>open-graph.php<\/code> to the <code>\/wp-content\/plugins\/<\/code> directory<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress<\/li>\n<li>Set the default image for your domain (not available via admin panel in version 1.0, replace the image <code>open_graph_protocol_logo.png<\/code> for now)<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt>How to override opengraph metadata?<\/dt>\n<dd><p>You can add\/edit meta data by using 2 actions 'open_graph_head_pre' and 'open_graph_head_post'.\n'open_graph_head_pre' executes before the setup takes place.\n'open_graph_head_post' executes after the setup but before echoing meta data.\nI'll add more functions for editing in later versions.<\/p><\/dd>\n<dt>How to override default image of the plugin?<\/dt>\n<dd><ul>\n<li>Use the <code>add_action('open_graph_head_pre','my_function')<\/code> .<\/li>\n<li>In <code>my_function<\/code> grab an instance  <code>$og = open_graph_instance();<\/code> and call <code>$og-&gt;set_default_img( $url );<\/code><\/li>\n<li>Also you can use <code>'open_graph_head_post'<\/code> action and <code>$og-&gt;set_og_data( 'og:image' =&gt; $url )<\/code> but this will over ride for all pages\/ posts etc<\/li>\n<\/ul><\/dd>\n<dt>How to override default type of homepage?<\/dt>\n<dd><ul>\n<li>Use the <code>add_action('open_graph_head_pre','my_function')<\/code> .<\/li>\n<li>In <code>my_function<\/code> grab an instance  <code>$og = open_graph_instance();<\/code> and call <code>$og-&gt;set_home_type( $type );<\/code> <\/li>\n<li>Also you can use <code>'open_graph_head_post'<\/code> action and <code>if(is_home()) { $og-&gt;set_og_data( 'og:type' =&gt; $type );}<\/code><\/li>\n<\/ul><\/dd>\n\n<\/dl>","raw_excerpt":"Implements the Open Graph Protocol on a WordPress installation. Can be used by other plugins as a dependency.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/12484","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=12484"}],"author":[{"embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/piyushmishra"}],"wp:attachment":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=12484"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=12484"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=12484"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=12484"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=12484"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=12484"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}