{"id":40044,"date":"2015-11-13T10:09:11","date_gmt":"2015-11-13T10:09:11","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/fb-display-events-shortcode\/"},"modified":"2016-09-05T18:26:58","modified_gmt":"2016-09-05T18:26:58","slug":"fb-display-events-shortcode","status":"closed","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/fb-display-events-shortcode\/","author":14664532,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.1","stable_tag":"1.2","tested":"4.6.30","requires":"3.1","requires_php":"","requires_plugins":"","header_name":"FB Display Events Shortcode","header_author":"Krzysztof Kuziel KrzyKuStudio","header_description":"","assets_banners_color":"808da5","last_updated":"2016-09-05 18:26:58","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/www.paypal.com\/cgi-bin\/webscr?cmd=_donations&business=E6LKSXS2ZK432&lc=US&item_name=KrzyKuStudio&item_number=FB%20Display%20Events%20Shortcode&currency_code=USD&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted","header_plugin_uri":"https:\/\/wordpress.org\/plugins\/fb-display-events-shortcode","header_author_uri":"http:\/\/krzykustudio.pl","rating":1.8,"author_block_rating":0,"active_installs":10,"downloads":2558,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":{"1.1":"<p>Upgraded data access to fb not only via file_get_contents but also cURL<\/p>","1.0":"<p>Initial release<\/p>"},"ratings":{"1":"4","2":0,"3":0,"4":0,"5":"1"},"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":"1285461","resolution":"128x128","location":"assets"}},"assets_banners":{"banner-772x250.png":{"filename":"banner-772x250.png","revision":"1285461","resolution":"772x250","location":"assets"}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0","1.1","1.2"],"block_files":[],"assets_screenshots":{"screenshot-1.jpg":{"filename":"screenshot-1.jpg","revision":"1285461","resolution":"1","location":"assets"},"screenshot-2.jpg":{"filename":"screenshot-2.jpg","revision":"1285461","resolution":"2","location":"assets"},"screenshot-3.jpg":{"filename":"screenshot-3.jpg","revision":"1285461","resolution":"3","location":"assets"}},"screenshots":{"1":"Event List","2":"Single Event in detail","3":"Settings Page"},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[2431,1486,157,5283,80],"plugin_category":[40,43,56],"plugin_contributors":[],"plugin_business_model":[],"class_list":["post-40044","plugin","type-plugin","status-closed","hentry","plugin_tags-event","plugin_tags-events","plugin_tags-facebook","plugin_tags-fb","plugin_tags-shortcode","plugin_category-calendar-and-events","plugin_category-customization","plugin_category-social-and-sharing","plugin_committers-krzykustudio"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/fb-display-events-shortcode_808da5.svg","icon_2x":false,"generated":true},"screenshots":[{"src":"https:\/\/ps.w.org\/fb-display-events-shortcode\/assets\/screenshot-1.jpg?rev=1285461","caption":"Event List"},{"src":"https:\/\/ps.w.org\/fb-display-events-shortcode\/assets\/screenshot-2.jpg?rev=1285461","caption":"Single Event in detail"},{"src":"https:\/\/ps.w.org\/fb-display-events-shortcode\/assets\/screenshot-3.jpg?rev=1285461","caption":"Settings Page"}],"raw_content":"<!--section=description-->\n<p>The FB Display Events Shortcode plugin allows you to display list of events from a Facebook on your website using shortcode.<\/p>\n\n<p>Features:<\/p>\n\n<ul>\n<li>Display facebook user's events by user name or user_id.<\/li>\n<li>Display facebook single event by its ID<\/li>\n<li>English, Deutsch and Polish translation included.<\/li>\n<\/ul>\n\n<h4>Requirements<\/h4>\n\n<ul>\n<li>Facebook Developer Access Token<\/li>\n<\/ul>\n\n<h4>Usage<\/h4>\n\n<ol>\n<li>To display user's events by facebook user name use shortcode [fb_event_list] with attribute fb_user_name, example [fb_event_list fb_user_name=\"user_name\"]<\/li>\n<li>To display user's events by facebook user_id use shortcode [fb_event_list] with attribute fb_user_id, example [fb_event_list fb_user_id=\"342353464567\"]<\/li>\n<li>To display single event use shortcode [fb_event_list] with attribute fb_event_id, example [fb_event_list fb_event_id=\"4234464534534\"]<\/li>\n<li>Optional attributes:\n\n<ul>\n<li>fb_time=\"upcoming, past, all\" - Display upcoming, past or all user's events<\/li>\n<li>limit=\"value\" - limits the number of displayed user's events to a given value<\/li>\n<\/ul><\/li>\n<\/ol>\n\n<!--section=installation-->\n<h4>Automatic<\/h4>\n\n<ol>\n<li>In the admin panel plugins page click Add New<\/li>\n<li>Search for FB Display Events Shortcode<\/li>\n<li>Find FB Display Events Shortcode in the list an click Install Now<\/li>\n<li>Click OK when prompted<\/li>\n<li>Click activate plugin when prompted<\/li>\n<li>In the admin panel under Settings click on FB Event List. Paste your Facebook Developer Access Token in form and save it.<\/li>\n<li>Enjoy!<\/li>\n<\/ol>\n\n<h4>Manual<\/h4>\n\n<ol>\n<li>Extract fb-display-events-shortcode.zip to your <code>wp-content\/plugins<\/code> directory.<\/li>\n<li>In the admin panel under plugins activate FB Display Events Shortcode.<\/li>\n<li>In the admin panel under Settings click on FB Display Events. Paste your Facebook Developer Access Token in form and save it.<\/li>\n<li>It should now be completely set up and functional<\/li>\n<li>Enjoy!<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt>How to get Facebook Developer Access Token<\/dt>\n<dd><p>To get Facebook Developer Access Token, register at developers.facebook.com and create new App.\nSimply go to <a href=\"https:\/\/smashballoon.com\/custom-facebook-feed\/access-token\/\">https:\/\/smashballoon.com\/custom-facebook-feed\/access-token\/<\/a> and follow instructions.<\/p><\/dd>\n<dt>How to get Facebook User Name<\/dt>\n<dd><p>Go facebook page from you want get username, example https:\/\/www.facebook.com\/happysadpl\/?fref=nf In that case username is happysadpl\nxxxxxx refers to the Facebook user's name: http:\/\/facebook.com\/xxxxxxx\/?otherCharacters<\/p><\/dd>\n<dt>How to get Facebook User ID<\/dt>\n<dd><p>Paste that URL into browser https:\/\/graph.facebook.com\/XXXXXX?access_token=YYYYY and replace XXXXXX with Facebook User Name, YYYYYY with your access_token\nYou will get json Response with id.<\/p><\/dd>\n<dt>How to get Facebook Event ID<\/dt>\n<dd><p>Go to the facebook event from which you want to get an ID. Get the URL from the webbrowser. \nxxxxxx refers to the event id: https:\/\/www.facebook.com\/events\/xxxxxx\/<\/p>\n\n<p>Example https:\/\/www.facebook.com\/events\/923003774401481\/\nIn that case fb_event_id=923003774401481<\/p><\/dd>\n<dt>Country name is not showing on local development using xampp on windows<\/dt>\n<dd><p>That is: cURL Error # 60: SSL certificate problem: unable to get local issuer certificate\nFollow this link: http:\/\/curl.haxx.se\/ca\/cacert.pem Copy the entire page and save it in a: \"cacert.pem\". \nThen in your php.ini file insert or edit the following line: curl.cainfo = \"[pathtothisfile]\\cacert.pem\"\nexample curl.cainfo = \"c:\\xampp\\cacert.pem\"<\/p><\/dd>\n<dt>How to check if token is working<\/dt>\n<dd><p>Sample below is generated from plugin. Just replace XXXXX with your token. Place that link into browser. If the token is valid you will get data from facebook. You can modify this url. 463776883765579 is user id. Sice and until are timestamps.<\/p>\n\n<p>https:\/\/graph.facebook.com\/463776883765579\/events\/attending\/?fields=id,name,description,place,timezone,start_time,cover&amp;access_token=XXXXXXXXXXXXXXXXXXX&amp;since=1388534400&amp;until=1468972800<\/p><\/dd>\n<dt>Shortcode displays only text<\/dt>\n<dd><p>Try to deactivate other plugins. It may be some sort of collision.<\/p><\/dd>\n<dt>Shortcode not working<\/dt>\n<dd><p>If you dont need full place addres try to replace word 'place' with 'location' in fb-display-events-shortcode.php\nReplace \n$fields=\"id,name,description,place,timezone,start_time,cover\";\nwith\n$fields=\"id,name,description,location,timezone,start_time,cover\";\nor\n$fields=\"id,name,description,timezone,start_time,cover\";<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.2<\/h4>\n\n<p>Fixed missing  in Print_event function<\/p>\n\n<h4>1.1<\/h4>\n\n<p>Upgraded data access to fb not only via file_get_contents but also cURL<\/p>\n\n<h4>1.0<\/h4>\n\n<ul>\n<li>Initial release<\/li>\n<\/ul>","raw_excerpt":"Display Facebook Events in your website using shortcode.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/40044","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=40044"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/krzykustudio"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=40044"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=40044"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=40044"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=40044"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=40044"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=40044"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}