{"id":31707,"date":"2014-09-15T07:03:40","date_gmt":"2014-09-15T07:03:40","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/fb-last-posts\/"},"modified":"2014-09-15T08:33:43","modified_gmt":"2014-09-15T08:33:43","slug":"fb-last-posts","status":"closed","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/fb-last-posts\/","author":9523381,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.0","stable_tag":"1.0.1","tested":"4.0.38","requires":"3.0.1","requires_php":"","requires_plugins":"","header_name":"FB Last Posts","header_author":"vitalikaz","header_description":"","assets_banners_color":"","last_updated":"2014-09-15 08:33:43","external_support_url":"","external_repository_url":"","donate_link":"http:\/\/www.blast.lt\/kontaktai\/","header_plugin_uri":"","header_author_uri":"http:\/\/www.blast.lt\/kontaktai","rating":5,"author_block_rating":0,"active_installs":20,"downloads":2828,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":{"1.0":"<p>Have fun using this extremely tiny plugin! :)<\/p>"},"ratings":{"1":0,"2":0,"3":0,"4":0,"5":"4"},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0","1.0.1"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":"989898","resolution":"1","location":"assets"}},"screenshots":{"1":"Plugin settings page"}},"plugin_section":[],"plugin_tags":[157,4784,21682,29239,815],"plugin_category":[56],"plugin_contributors":[87162],"plugin_business_model":[],"class_list":["post-31707","plugin","type-plugin","status-closed","hentry","plugin_tags-facebook","plugin_tags-facebook-page","plugin_tags-facebook-posts","plugin_tags-fb-posts","plugin_tags-like-button","plugin_category-social-and-sharing","plugin_contributors-vitalikaz","plugin_committers-vitalikaz"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/fb-last-posts.svg","icon_2x":false,"generated":true},"screenshots":[{"src":"https:\/\/ps.w.org\/fb-last-posts\/assets\/screenshot-1.png?rev=989898","caption":"Plugin settings page"}],"raw_content":"<!--section=description-->\n<p>This plugin allows you to show posts from Facebook pages, groups and timelines directly on your website in a very simple way.\nPlugin does not register shortcodes, JS scripts or any extra libraries, so it's extremely clean &amp; tiny and you are free to decide how your recent Facebook posts listing will look like.<\/p>\n\n<p>If you are a fan of clean code (like me) without tons of extra scripts for plugin to work, you will definitely like this plugin. It's extremely fast as it does not any unnecessary work and cleverly caches results.<\/p>\n\n<h4>Sample Usage<\/h4>\n\n<pre><code>&lt;?php\n\/\/ try to get posts from Facebook\n$fb_posts = fb_get_last_posts(10);\n\n\/\/ check if result is not a WP error\nif (!is_wp_error($fb_posts)):\n    \/\/ loop through posts and show them\n    foreach($fb_posts as $fb_post): ?&gt;\n        &lt;div&gt;\n            &lt;span class=\"author\"&gt;&lt;?php print esc_html($fb_post['author_name']);?&gt;&lt;\/span&gt;,\n            &lt;span class=\"date\"&gt;&lt;?php print date(get_option('date_format'), strtotime($fb_post['created_time']));?&gt;&lt;\/span&gt;\n            &lt;p&gt;&lt;?php print esc_html($fb_post['message']); ?&gt;&lt;\/p&gt;\n            &lt;a href=\"&lt;?php print $fb_post['permalink'];?&gt;\"&gt;Original post&lt;\/a&gt;\n        &lt;\/div&gt;\n    &lt;?php endforeach;\nelse: \n    \/\/ or display an error ?&gt;\n    &lt;div&gt;&lt;?php print esc_html($fb_posts-&gt;get_error_message());?&gt;&lt;\/div&gt;\n&lt;?php endif; ?&gt;\n<\/code><\/pre>\n\n<!--section=installation-->\n<ol>\n<li>Upload the <code>fb-last-posts<\/code> folder to the <code>\/wp-content\/plugins\/<\/code> directory.<\/li>\n<li>Activate plugin through the 'Plugins' menu in WordPress.<\/li>\n<li>Setup plugin through 'Settings -&gt; FB Last Posts' menu. This page will guide you how to do everything you need to use this plugin.<\/li>\n<li>You are ready to go! Use <code>fb_get_last_posts()<\/code> function to get posts from Facebook (please check Description tab for an example).<\/li>\n<\/ol>\n\n<!--section=faq-->\n<p>If you have any questions, please contact author on labas [at] blast [dot] lt<\/p>\n\n<!--section=changelog-->\n<h4>1.0<\/h4>\n\n<ul>\n<li>Initial version<\/li>\n<\/ul>","raw_excerpt":"A very tiny plugin that helps you to show last Facebook posts of certain page, group or timeline on your site.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/31707","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=31707"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/vitalikaz"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=31707"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=31707"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=31707"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=31707"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=31707"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=31707"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}