Custom Facebook Feed - Version 1.4.6

Version Description

  • fix: Fixed 'num' option in shortcode
Download this release

Release Info

Developer smashballoon
Plugin Icon 128x128 Custom Facebook Feed
Version 1.4.6
Comparing to
See all releases

Code changes from version 1.4.5 to 1.4.6

Files changed (2) hide show
  1. README.txt +26 -23
  2. custom-facebook-feed.php +7 -9
README.txt CHANGED
@@ -2,8 +2,8 @@
2
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.4.5
7
License: GPLv2 or later
8
License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
@@ -15,19 +15,19 @@ Display a **customizable**, **responsive** and **search engine crawlable** versi
15
16
= Features =
17
18
- * **Completely Customizable** - By default the feed will adopt the style of your website, but can be completely customized to look however you like - with tons of styling options and custom CSS!
19
- * Feed content is **crawlable by search engines** adding SEO value to your site - other Facebook plugins embed the feed using iframes which are not crawlable
20
* Completely **responsive** and mobile optimized - layout looks great on any screen size and in any container width
21
* Display **feeds from multiple Facebook pages** and use the shortcode to embed them into a page, post or widget anywhere on your site
22
- * Show **events** with name, date/time, location and description
23
* Add your own **custom CSS**
24
* Show and hide certain parts of each post
25
- * Control the width, height, padding and background color of your feed
26
* Customize the size, weight and color of text
27
* Select the number of posts to display
28
* Set a maximum character length for both the post title and body text
29
30
- To display photos, videos, the number of likes, shares and comments for each post, multiple layout options and more then [upgrade to the PRO version](http://smashballoon.com/custom-facebook-feed/wordpress-plugin/ "Custom Facebook Feed PRO"). Try out the [PRO demo](http://smashballoon.com/custom-facebook-feed/demo "Custom Facebook Feed Demo").
31
32
== Installation ==
33
@@ -41,15 +41,15 @@ To display photos, videos, the number of likes, shares and comments for each pos
41
42
= How do I find the Page ID of my Facebook page? =
43
44
- If you have a Facebook page with a URL like this: `https://www.facebook.com/Your_Page_Name` then the Page ID is just `Your_Page_Name`. If your page URL is structured like this: `https://www.facebook.com/pages/Your_Page_Name/123654123654123` then the Page ID is actually the number at the end, so in this case `123654123654123`.
45
46
- = Are there any limitations on which page feeds I can display? =
47
48
- The feed you're trying to display has to be a publicly accessible page. This means that you can't display the feed from your own personal profile or a group. This is to do with Facebook's privacy policies. You can't display a non-public feed publicly.
49
50
- If your page has any restrictions on it (age, for example) then it means that people have to be signed into Facebook in order to view your page. This isn't desirable for most pages as it means that it isn't accessible by people who don't have a Facebook account and that your page can't be crawled and indexed by search engines.
51
52
- An easy way to determine whether your page is set to public is to sign out of your Facebook account and try to visit your page. If Facebook forces you to sign in to view your page then it isn't public. You can change your page to public in your Facebook page settings simply by removing any restrictions you have on it, which will then allow the Custom Facebook Feed plugin to access and display your feed.
53
54
= What's an Access Token and why do I need one? =
55
@@ -57,19 +57,19 @@ An Access Token is required by Facebook in order to access their feeds. Don't w
57
58
= Can I display feeds from multiple Facebook pages? =
59
60
- Yep. You set your default Facebook page ID in the plugin's settings but then you can define different page IDs in the shortcodes you use to show multiple feeds from different Facebook pages. Just use the id option in your shortcode like so: id=another_page_id.
61
62
- = Can I show photos and videos in my feed? =
63
64
- This plugin only allows you to display textual updates from your feed. To display photos and videos in your feed you need to upgrade to the PRO version of the plugin. Try out a demo of the PRO version on the [Custom Facebook Feed website](http://smashballoon.com/custom-facebook-feed/demo "Custom Facebook Feed Demo"), and find out more about the PRO version [here](http://smashballoon.com/custom-facebook-feed/ "Custom Facebook Feed PRO").
65
66
- = Can I show the comments associated with each post? =
67
68
For this feature please upgrade to the [PRO version of the plugin](http://smashballoon.com/custom-facebook-feed/ "Custom Facebook Feed PRO").
69
70
= Is the content of my feed crawlable by search engines? =
71
72
- It sure is. Unlike other Facebook plugins which use iframes to embed your feed into your page once it's loaded, the Custom Facebook Feed uses PHP to embed your feed content directly into your page. This adds dynamic, search engine crawlable content to your site.
73
74
= How do I embed the feed directly into a WordPress page template? =
75
@@ -77,17 +77,20 @@ You can embed the feed directly into a template file by using the WordPress do_s
77
78
== Screenshots ==
79
80
- 1. By default the feed inherits your theme's default styles and is completely responsive
81
- 2. Completely customize the way your feed looks to perfectly match your site
82
- 3. Use custom CSS to customize every part of the feed
83
- 4. Display events
84
5. Configuring the plugin
85
- 6. Use the styling options to customize your feed
86
- 7. It's super easy to display your feed in any page or post
87
8. Add the shortcode to a widget
88
89
== Changelog ==
90
91
= 1.4.4 =
92
* New: Added more shortcode options
93
* Minor tweaks
2
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.6
6
+ Stable tag: 1.4.6
7
License: GPLv2 or later
8
License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
15
16
= Features =
17
18
+ * **Completely Customizable** - By default the Facebook feed will adopt the style of your website, but can be completely customized to look however you like - with tons of styling options and custom CSS!
19
+ * Facebook feed content is **crawlable by search engines** adding SEO value to your site - other Facebook plugins embed the feed using iframes which are not crawlable
20
* Completely **responsive** and mobile optimized - layout looks great on any screen size and in any container width
21
* Display **feeds from multiple Facebook pages** and use the shortcode to embed them into a page, post or widget anywhere on your site
22
+ * Show **events** from your Facebook feed with name, date/time, location and description
23
* Add your own **custom CSS**
24
* Show and hide certain parts of each post
25
+ * Control the width, height, padding and background color of your Facebook feed
26
* Customize the size, weight and color of text
27
* Select the number of posts to display
28
* Set a maximum character length for both the post title and body text
29
30
+ To display photos, videos, the number of likes, shares and comments for each Facebook post, multiple layout options and more then [upgrade to the PRO version](http://smashballoon.com/custom-facebook-feed/wordpress-plugin/ "Custom Facebook Feed PRO"). Try out the [PRO demo](http://smashballoon.com/custom-facebook-feed/demo "Custom Facebook Feed Demo").
31
32
== Installation ==
33
41
42
= How do I find the Page ID of my Facebook page? =
43
44
+ If you have a Facebook page with a URL like this: `https://www.facebook.com/Your_Page_Name` then the Page ID is just `Your_Page_Name`. If your Facebook page URL is structured like this: `https://www.facebook.com/pages/Your_Page_Name/123654123654123` then the Page ID is actually the number at the end, so in this case `123654123654123`.
45
46
+ = Are there any limitations on which Facebook page feeds I can display? =
47
48
+ The Facebook feed you're trying to display has to be from a publicly accessible Facebook page. This means that you can't display the feed from your own personal Facebook profile or Facebook group. This is to do with Facebook's privacy policies. You can't display a non-public Facebook feed publicly.
49
50
+ If your Facebook page has any restrictions on it (age, for example) then it means that people have to be signed into Facebook in order to view your page. This isn't desirable for most Facebook pages as it means that it isn't accessible by people who don't have a Facebook account and that your Facebook page can't be crawled and indexed by search engines.
51
52
+ An easy way to determine whether your Facebook page is set to public is to sign out of your Facebook account and try to visit your page. If Facebook forces you to sign in to view your page then it isn't public. You can change your Facebook page to public in your Facebook page settings simply by removing any restrictions you have on it, which will then allow the Custom Facebook Feed plugin to access and display your feed.
53
54
= What's an Access Token and why do I need one? =
55
57
58
= Can I display feeds from multiple Facebook pages? =
59
60
+ Yep. You set your default Facebook page ID in the plugin's settings but then you can define different Facebook page IDs in the shortcodes you use to show multiple feeds from different Facebook pages. Just use the id option in your shortcode like so: id=another_page_id.
61
62
+ = Can I show photos and videos in my Custom Facebook feed? =
63
64
+ This free plugin only allows you to display textual updates from your Facebook feed. To display photos and videos in your feed you need to upgrade to the PRO version of the plugin. Try out a demo of the PRO version on the [Custom Facebook Feed website](http://smashballoon.com/custom-facebook-feed/demo "Custom Facebook Feed Demo"), and find out more about the PRO version [here](http://smashballoon.com/custom-facebook-feed/ "Custom Facebook Feed PRO").
65
66
+ = Can I show the comments associated with each Facebook post? =
67
68
For this feature please upgrade to the [PRO version of the plugin](http://smashballoon.com/custom-facebook-feed/ "Custom Facebook Feed PRO").
69
70
= Is the content of my feed crawlable by search engines? =
71
72
+ It sure is. Unlike other Facebook plugins which use iframes to embed your feed into your page once it's loaded, the Custom Facebook Feed uses PHP to embed your Facebook feed content directly into your page. This adds dynamic, search engine crawlable content to your site.
73
74
= How do I embed the feed directly into a WordPress page template? =
75
77
78
== Screenshots ==
79
80
+ 1. By default the Facebook feed inherits your theme's default styles and is completely responsive
81
+ 2. Completely customize the way your Facebook feed looks to perfectly match your site
82
+ 3. Use custom CSS to customize every part of the Facebook feed
83
+ 4. Display Facebook events
84
5. Configuring the plugin
85
+ 6. Use the styling options to customize your Facebook feed
86
+ 7. It's super easy to display your Facebook feed in any page or post
87
8. Add the shortcode to a widget
88
89
== Changelog ==
90
91
+ = 1.4.6 =
92
+ * fix: Fixed 'num' option in shortcode
93
+
94
= 1.4.4 =
95
* New: Added more shortcode options
96
* Minor tweaks
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.4.5
7
Author: Smash Balloon
8
Author URI: http://smashballoon.com/
9
License: GPLv2 or later
@@ -44,7 +44,6 @@ function display_cff($atts) {
44
$atts = shortcode_atts(
45
array(
46
'id' => get_option('cff_page_id'),
47
- 'show' => get_option('cff_num_show'),
48
'num' => get_option('cff_num_show'),
49
'width' => $options[ 'cff_feed_width' ],
50
'height' => $options[ 'cff_feed_height' ],
@@ -202,13 +201,12 @@ function display_cff($atts) {
202
//Assign the Access Token and Page ID variables
203
$access_token = get_option('cff_access_token');
204
$page_id = $atts['id'];
205
- //Get show posts attribute. If not set then default to 10.
206
- $show_posts = $atts['show'];
207
- if ( empty($show_posts) ) {
208
- $show_posts = $atts['num'];
209
- if (empty($show_posts)) $show_posts = 25;
210
- }
211
- if ( $show_posts == 0 || $show_posts == undefined ) $show_posts = 10;
212
//Check whether the Access Token is present and valid
213
if ($access_token == '') {
214
echo 'Please enter a valid Access Token. You can do this in the Custom Facebook Feed plugin settings.<br /><br />';
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.4.6
7
Author: Smash Balloon
8
Author URI: http://smashballoon.com/
9
License: GPLv2 or later
44
$atts = shortcode_atts(
45
array(
46
'id' => get_option('cff_page_id'),
47
'num' => get_option('cff_num_show'),
48
'width' => $options[ 'cff_feed_width' ],
49
'height' => $options[ 'cff_feed_height' ],
201
//Assign the Access Token and Page ID variables
202
$access_token = get_option('cff_access_token');
203
$page_id = $atts['id'];
204
+
205
+ //Get show posts attribute. If not set then default to 25.
206
+ $show_posts = $atts['num'];
207
+ if (empty($show_posts)) $show_posts = 25;
208
+ if ( $show_posts == 0 || $show_posts == undefined ) $show_posts = 25;
209
+
210
//Check whether the Access Token is present and valid
211
if ($access_token == '') {
212
echo 'Please enter a valid Access Token. You can do this in the Custom Facebook Feed plugin settings.<br /><br />';