Version Description
- Fix: Fixed a bug in 1.6.7 which was causing an issue displaying the feed in some circumstances
Download this release
Release Info
Developer | smashballoon |
Plugin | Custom Facebook Feed |
Version | 1.6.7.1 |
Comparing to | |
See all releases |
Code changes from version 1.6.7 to 1.6.7.1
- README.txt +7 -4
- custom-facebook-feed.php +7 -7
README.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: smashballoon
|
|
3 |
Tags: facebook, custom, customizable, feed, events, seo, search engine, responsive, mobile, shortcode, social, status, posts
|
4 |
Requires at least: 3.0
|
5 |
Tested up to: 3.7.1
|
6 |
-
Stable tag: 1.6.7
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
@@ -52,6 +52,8 @@ To display photos, videos, the number of likes, shares and comments for each Fac
|
|
52 |
|
53 |
== Frequently Asked Questions ==
|
54 |
|
|
|
|
|
55 |
= How do I find the Page ID of my Facebook page or group? =
|
56 |
|
57 |
If you have a Facebook **page** with a URL like this: `https://www.facebook.com/smashballoon` then the Page ID is just `smashballoon`. If your page URL is structured like this: `https://www.facebook.com/pages/smashballoon/123654123654123` then the Page ID is actually the number at the end, so in this case `123654123654123`.
|
@@ -103,9 +105,7 @@ It sure is. Unlike other Facebook plugins which use iframes to embed your Facebo
|
|
103 |
|
104 |
= How do I embed the Custom Facebook Feed directly into a WordPress page template? =
|
105 |
|
106 |
-
You can embed your Facebook feed directly into a template file by using the WordPress do_shortcode function:
|
107 |
-
|
108 |
-
**For more detailed FAQs and help with troubleshooting please visit the [FAQ & Troubleshooting](http://smashballoon.com/custom-facebook-feed/faq/) section of the Smash Balloon website**
|
109 |
|
110 |
== Screenshots ==
|
111 |
|
@@ -121,6 +121,9 @@ You can embed your Facebook feed directly into a template file by using the Word
|
|
121 |
|
122 |
== Changelog ==
|
123 |
|
|
|
|
|
|
|
124 |
= 1.6.7 =
|
125 |
* New: Your feed can now be completely displayed in any language - added i18n support for date translation
|
126 |
* Tweak: Improved documentation within the plugin
|
3 |
Tags: facebook, custom, customizable, feed, events, seo, search engine, responsive, mobile, shortcode, social, status, posts
|
4 |
Requires at least: 3.0
|
5 |
Tested up to: 3.7.1
|
6 |
+
Stable tag: 1.6.7.1
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
52 |
|
53 |
== Frequently Asked Questions ==
|
54 |
|
55 |
+
For a full list of FAQs and help with troubleshooting please visit the **[FAQ & Troubleshooting](http://smashballoon.com/custom-facebook-feed/faq/)** section of the Smash Balloon website
|
56 |
+
|
57 |
= How do I find the Page ID of my Facebook page or group? =
|
58 |
|
59 |
If you have a Facebook **page** with a URL like this: `https://www.facebook.com/smashballoon` then the Page ID is just `smashballoon`. If your page URL is structured like this: `https://www.facebook.com/pages/smashballoon/123654123654123` then the Page ID is actually the number at the end, so in this case `123654123654123`.
|
105 |
|
106 |
= How do I embed the Custom Facebook Feed directly into a WordPress page template? =
|
107 |
|
108 |
+
You can embed your Facebook feed directly into a template file by using the WordPress do_shortcode function: `do_shortcode('[custom-facebook-feed]');`.
|
|
|
|
|
109 |
|
110 |
== Screenshots ==
|
111 |
|
121 |
|
122 |
== Changelog ==
|
123 |
|
124 |
+
= 1.6.7.1 =
|
125 |
+
* Fix: Fixed a bug in 1.6.7 which was causing an issue displaying the feed in some circumstances
|
126 |
+
|
127 |
= 1.6.7 =
|
128 |
* New: Your feed can now be completely displayed in any language - added i18n support for date translation
|
129 |
* Tweak: Improved documentation within the plugin
|
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.6.7
|
7 |
Author: Smash Balloon
|
8 |
Author URI: http://smashballoon.com/
|
9 |
License: GPLv2 or later
|
@@ -621,11 +621,8 @@ function display_cff($atts) {
|
|
621 |
}
|
622 |
//Get JSON object of feed data
|
623 |
function cff_fetchUrl($url){
|
624 |
-
//Can we use
|
625 |
-
if
|
626 |
-
$feedData = @file_get_contents($url);
|
627 |
-
//If not then can we use cURL?
|
628 |
-
} elseif(is_callable('curl_init')){
|
629 |
$ch = curl_init();
|
630 |
curl_setopt($ch, CURLOPT_URL, $url);
|
631 |
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
|
@@ -633,7 +630,10 @@ function cff_fetchUrl($url){
|
|
633 |
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
|
634 |
$feedData = curl_exec($ch);
|
635 |
curl_close($ch);
|
636 |
-
//
|
|
|
|
|
|
|
637 |
} else {
|
638 |
if( !class_exists( 'WP_Http' ) ) include_once( ABSPATH . WPINC. '/class-http.php' );
|
639 |
$request = new WP_Http;
|
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.6.7.1
|
7 |
Author: Smash Balloon
|
8 |
Author URI: http://smashballoon.com/
|
9 |
License: GPLv2 or later
|
621 |
}
|
622 |
//Get JSON object of feed data
|
623 |
function cff_fetchUrl($url){
|
624 |
+
//Can we use cURL?
|
625 |
+
if(is_callable('curl_init')){
|
|
|
|
|
|
|
626 |
$ch = curl_init();
|
627 |
curl_setopt($ch, CURLOPT_URL, $url);
|
628 |
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
|
630 |
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
|
631 |
$feedData = curl_exec($ch);
|
632 |
curl_close($ch);
|
633 |
+
//If not then use file_get_contents
|
634 |
+
} elseif ( ini_get('allow_url_fopen') == 1 || ini_get('allow_url_fopen') === TRUE ) {
|
635 |
+
$feedData = @file_get_contents($url);
|
636 |
+
//Or else use the WP HTTP API
|
637 |
} else {
|
638 |
if( !class_exists( 'WP_Http' ) ) include_once( ABSPATH . WPINC. '/class-http.php' );
|
639 |
$request = new WP_Http;
|