Version Description
- New: Shared events now display event details (name, location, date/time, description) directly in the feed
Download this release
Release Info
Developer | smashballoon |
Plugin | Custom Facebook Feed |
Version | 1.3.5 |
Comparing to | |
See all releases |
Code changes from version 1.3.4 to 1.3.5
- README.txt +4 -1
- custom-facebook-feed.php +12 -2
README.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: smashballoon
|
|
3 |
Tags: facebook, custom, customizable, feed, seo, search engine, responsive, mobile, shortcode, social, status
|
4 |
Requires at least: 3.0
|
5 |
Tested up to: 3.5.1
|
6 |
-
Stable tag: 1.3.
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
@@ -74,6 +74,9 @@ It sure is. Unlike other Facebook plugins which use iframes to embed your feed i
|
|
74 |
|
75 |
== Changelog ==
|
76 |
|
|
|
|
|
|
|
77 |
= 1.3.4 =
|
78 |
* New: Email addresses within the post text are now hyperlinked
|
79 |
* Fix: Links beginning with 'www' are now also hyperlinked
|
3 |
Tags: facebook, custom, customizable, feed, seo, search engine, responsive, mobile, shortcode, social, status
|
4 |
Requires at least: 3.0
|
5 |
Tested up to: 3.5.1
|
6 |
+
Stable tag: 1.3.5
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
74 |
|
75 |
== Changelog ==
|
76 |
|
77 |
+
= 1.3.5 =
|
78 |
+
* New: Shared events now display event details (name, location, date/time, description) directly in the feed
|
79 |
+
|
80 |
= 1.3.4 =
|
81 |
* New: Email addresses within the post text are now hyperlinked
|
82 |
* Fix: Links beginning with 'www' are now also hyperlinked
|
custom-facebook-feed.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Custom Facebook Feed
|
4 |
Plugin URI: http://smashballoon.com/custom-facebook-feed
|
5 |
Description: Add a completely customizable Facebook feed to your WordPress site
|
6 |
-
Version: 1.3.
|
7 |
Author: Smash Balloon
|
8 |
Author URI: http://smashballoon.com/
|
9 |
License: GPLv2 or later
|
@@ -162,9 +162,19 @@ function display_cff($atts) {
|
|
162 |
$created_event = 'created an event.';
|
163 |
$shared_event = 'shared an event.';
|
164 |
|
165 |
-
|
|
|
|
|
|
|
166 |
//Get the event object
|
167 |
$eventID = $PostID[1];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
168 |
//Get the contents of the event
|
169 |
$event_json = fetchUrl('https://graph.facebook.com/'.$eventID.'?access_token=' . $access_token);
|
170 |
|
3 |
Plugin Name: Custom Facebook Feed
|
4 |
Plugin URI: http://smashballoon.com/custom-facebook-feed
|
5 |
Description: Add a completely customizable Facebook feed to your WordPress site
|
6 |
+
Version: 1.3.5
|
7 |
Author: Smash Balloon
|
8 |
Author URI: http://smashballoon.com/
|
9 |
License: GPLv2 or later
|
162 |
$created_event = 'created an event.';
|
163 |
$shared_event = 'shared an event.';
|
164 |
|
165 |
+
$created_event = stripos($story, $created_event);
|
166 |
+
$shared_event = stripos($story, $shared_event);
|
167 |
+
|
168 |
+
if ( $created_event || $shared_event ){
|
169 |
//Get the event object
|
170 |
$eventID = $PostID[1];
|
171 |
+
if ( $shared_event ) {
|
172 |
+
//Get the event id from the event URL. eg: http://www.facebook.com/events/123451234512345/
|
173 |
+
$event_url = parse_url($news->link);
|
174 |
+
$url_parts = explode('/', $event_url['path']);
|
175 |
+
//Get the id from the parts
|
176 |
+
$eventID = $url_parts[count($url_parts)-2];
|
177 |
+
}
|
178 |
//Get the contents of the event
|
179 |
$event_json = fetchUrl('https://graph.facebook.com/'.$eventID.'?access_token=' . $access_token);
|
180 |
|