Open Graph for Facebook, Google+ and Twitter Card Tags - Version 0.1.5

Version Description

  • Fixed the way Categories and Tags pages links were being retrieved that would cause an error on WP 3.0
  • Added the option to use a Custom text as homepage og:description instead of the Website Tagline
  • Fixed a bug that wouldn't allow to uncheck the og:image tag
Download this release

Release Info

Developer wonderm00n
Plugin Icon Open Graph for Facebook, Google+ and Twitter Card Tags
Version 0.1.5
Comparing to
See all releases

Code changes from version 0.1.4 to 0.1.5

Files changed (3) hide show
  1. includes/settings-page.php +160 -113
  2. readme.txt +7 -1
  3. wonderm00n-open-graph.php +19 -7
includes/settings-page.php CHANGED
@@ -24,13 +24,15 @@
24
  $fb_type_show = get_option('wonderm00n_open_graph_fb_type_show');
25
  $fb_desc_show = get_option('wonderm00n_open_graph_fb_desc_show');
26
  $fb_desc_chars = get_option('wonderm00n_open_graph_fb_desc_chars');
 
 
27
  $fb_image_show = get_option('wonderm00n_open_graph_fb_image_show');
28
  $fb_image = get_option('wonderm00n_open_graph_fb_image');
29
 
30
  ?>
31
  <div class="wrap">
32
 
33
- <?php screen_icon(); ?>
34
  <h2>Wonderm00n's Simple Facebook Open Graph Tags</h2>
35
  <br class="clear"/>
36
  <p>Please set some default values and which tags should, or should not, be included. It may be necessary to exclude some tags if other plugins are already including them.</p>
@@ -47,114 +49,125 @@
47
 
48
  <form name="form1" method="post">
49
  <table width="100%" class="form-table">
50
- <tr>
51
- <th scope="row" nowrap="nowrap">Include Facebook Platform App ID (og:app_id) tag?</th>
52
- <td>
53
- <input type="checkbox" name="fb_app_id_show" id="fb_app_id_show" value="1" <?php echo (intval($fb_app_id_show)==1 ? ' checked="checked"' : ''); ?>/>
54
- </td>
55
- </tr>
56
- <tr>
57
- <th scope="row" nowrap="nowrap">Facebook Platform App ID:</th>
58
- <td>
59
- <input type="text" name="fb_app_id" id="fb_app_id" size="30" value="<?php echo $fb_app_id; ?>"/>
60
- </td>
61
- </tr>
62
- <tr>
63
- <td>&nbsp;</td>
64
- <td></td>
65
- </tr>
66
- <tr>
67
- <th scope="row" nowrap="nowrap">Include Facebook Admin(s) ID (og:admins) tag?</th>
68
- <td>
69
- <input type="checkbox" name="fb_admin_id_show" id="fb_admin_id_show" value="1" <?php echo (intval($fb_admin_id_show)==1 ? ' checked="checked"' : ''); ?>/>
70
- </td>
71
- </tr>
72
- <tr>
73
- <th scope="row" nowrap="nowrap">Facebook Admin(s) ID:</th>
74
- <td>
75
- <input type="text" name="fb_admin_id" id="fb_admin_id" size="30" value="<?php echo $fb_admin_id; ?>"/>
76
- <br/>
77
- Comma separated if more than one
78
- </td>
79
- </tr>
80
- <tr>
81
- <td>&nbsp;</td>
82
- <td></td>
83
- </tr>
84
- <tr>
85
- <th scope="row" nowrap="nowrap">Include Site Name (og:site_name) tag?</th>
86
- <td>
87
- <input type="checkbox" name="fb_sitename_show" id="fb_sitename_show" value="1" <?php echo (intval($fb_sitename_show)==1 ? ' checked="checked"' : ''); ?>/>
88
- </td>
89
- </tr>
90
- <tr>
91
- <td>&nbsp;</td>
92
- <td></td>
93
- </tr>
94
- <tr>
95
- <th scope="row" nowrap="nowrap">Include Post/Page title (og:title) tag?</th>
96
- <td>
97
- <input type="checkbox" name="fb_title_show" id="fb_title_show" value="1" <?php echo (intval($fb_title_show)==1 ? ' checked="checked"' : ''); ?>/>
98
- </td>
99
- </tr>
100
- <tr>
101
- <td>&nbsp;</td>
102
- <td></td>
103
- </tr>
104
- <tr>
105
- <th scope="row" nowrap="nowrap">Include URL (og:url) tag?</th>
106
- <td>
107
- <input type="checkbox" name="fb_url_show" id="fb_url_show" value="1" <?php echo (intval($fb_url_show)==1 ? ' checked="checked"' : ''); ?>/>
108
- </td>
109
- </tr>
110
- <tr>
111
- <td>&nbsp;</td>
112
- <td></td>
113
- </tr>
114
- <tr>
115
- <th scope="row" nowrap="nowrap">Include Type (og:type) tag?</th>
116
- <td>
117
- <input type="checkbox" name="fb_type_show" id="fb_type_show" value="1" <?php echo (intval($fb_type_show)==1 ? ' checked="checked"' : ''); ?>/>
118
- (will be &quot;article&quot; for posts and pages and &quot;website&quot; for the homepage)
119
- </td>
120
- </tr>
121
- <tr>
122
- <td>&nbsp;</td>
123
- <td></td>
124
- </tr>
125
- <tr>
126
- <th scope="row" nowrap="nowrap">Include Description (og:description) tag?</th>
127
- <td>
128
- <input type="checkbox" name="fb_desc_show" id="fb_desc_show" value="1" <?php echo (intval($fb_desc_show)==1 ? ' checked="checked"' : ''); ?>/>
129
- </td>
130
- </tr>
131
- <tr>
132
- <th scope="row" nowrap="nowrap">Description maximum length:</th>
133
- <td>
134
- <input type="text" name="fb_desc_chars" id="fb_desc_chars" size="3" maxlength="3" value="<?php echo (intval($fb_desc_chars)>0 ? intval($fb_desc_chars) : ''); ?>"/> characters
135
- <br/>
136
- 0 or blank for no maximum length
137
- </td>
138
- </tr>
139
- <tr>
140
- <td>&nbsp;</td>
141
- <td></td>
142
- </tr>
143
- <tr>
144
- <th scope="row" nowrap="nowrap">Include Image (og:image) tag?</th>
145
- <td>
146
- <input type="checkbox" name="fb_image_show" id="fb_image_show" value="1" <?php echo (intval($fb_image_show)==1 ? ' checked="checked"' : ''); ?>/>
147
- </td>
148
- </tr>
149
- <tr>
150
- <th scope="row" nowrap="nowrap">Default image:</th>
151
- <td>
152
- <input type="text" name="fb_image" id="fb_image" size="50" value="<?php echo $fb_image; ?>"/>
153
- <input id="fb_image_button" class="button" type="button" value="Upload/Choose image" />
154
- <br/>
155
- Full URL with http://
156
- </td>
157
- </tr>
 
 
 
 
 
 
 
 
 
 
 
158
  </table>
159
  <p class="submit">
160
  <input type="hidden" name="action" value="save"/>
@@ -232,11 +245,45 @@
232
  tb_show('',"media-upload.php?type=image&TB_iframe=true");
233
  });
234
  window.send_to_editor = function(html) {
235
- imgurl = jQuery('img',html).attr('src');
236
- jQuery("input"+"#fb_image").val(imgurl);
237
- tb_remove();
238
- }
 
 
 
 
 
 
239
  });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
240
  </script>
241
  <style type="text/css">
242
  TABLE.form-table TR TH {
24
  $fb_type_show = get_option('wonderm00n_open_graph_fb_type_show');
25
  $fb_desc_show = get_option('wonderm00n_open_graph_fb_desc_show');
26
  $fb_desc_chars = get_option('wonderm00n_open_graph_fb_desc_chars');
27
+ $fb_desc_homepage = get_option('wonderm00n_open_graph_fb_desc_homepage');
28
+ $fb_desc_homepage_customtext = get_option('wonderm00n_open_graph_fb_desc_homepage_customtext');
29
  $fb_image_show = get_option('wonderm00n_open_graph_fb_image_show');
30
  $fb_image = get_option('wonderm00n_open_graph_fb_image');
31
 
32
  ?>
33
  <div class="wrap">
34
 
35
+ <?php screen_icon(); ?>
36
  <h2>Wonderm00n's Simple Facebook Open Graph Tags</h2>
37
  <br class="clear"/>
38
  <p>Please set some default values and which tags should, or should not, be included. It may be necessary to exclude some tags if other plugins are already including them.</p>
49
 
50
  <form name="form1" method="post">
51
  <table width="100%" class="form-table">
52
+ <tr>
53
+ <th scope="row" nowrap="nowrap">Include Facebook Platform App ID (og:app_id) tag?</th>
54
+ <td>
55
+ <input type="checkbox" name="fb_app_id_show" id="fb_app_id_show" value="1" <?php echo (intval($fb_app_id_show)==1 ? ' checked="checked"' : ''); ?>/>
56
+ </td>
57
+ </tr>
58
+ <tr>
59
+ <th scope="row" nowrap="nowrap">Facebook Platform App ID:</th>
60
+ <td>
61
+ <input type="text" name="fb_app_id" id="fb_app_id" size="30" value="<?php echo $fb_app_id; ?>"/>
62
+ </td>
63
+ </tr>
64
+ <tr>
65
+ <td>&nbsp;</td>
66
+ <td></td>
67
+ </tr>
68
+ <tr>
69
+ <th scope="row" nowrap="nowrap">Include Facebook Admin(s) ID (og:admins) tag?</th>
70
+ <td>
71
+ <input type="checkbox" name="fb_admin_id_show" id="fb_admin_id_show" value="1" <?php echo (intval($fb_admin_id_show)==1 ? ' checked="checked"' : ''); ?> onclick="showAdminOptions();"/>
72
+ </td>
73
+ </tr>
74
+ <tr class="fb_admin_id_options">
75
+ <th scope="row" nowrap="nowrap">Facebook Admin(s) ID:</th>
76
+ <td>
77
+ <input type="text" name="fb_admin_id" id="fb_admin_id" size="30" value="<?php echo $fb_admin_id; ?>"/>
78
+ <br/>
79
+ Comma separated if more than one
80
+ </td>
81
+ </tr>
82
+ <tr>
83
+ <td>&nbsp;</td>
84
+ <td></td>
85
+ </tr>
86
+ <tr>
87
+ <th scope="row" nowrap="nowrap">Include Site Name (og:site_name) tag?</th>
88
+ <td>
89
+ <input type="checkbox" name="fb_sitename_show" id="fb_sitename_show" value="1" <?php echo (intval($fb_sitename_show)==1 ? ' checked="checked"' : ''); ?>/>
90
+ </td>
91
+ </tr>
92
+ <tr>
93
+ <td>&nbsp;</td>
94
+ <td></td>
95
+ </tr>
96
+ <tr>
97
+ <th scope="row" nowrap="nowrap">Include Post/Page title (og:title) tag?</th>
98
+ <td>
99
+ <input type="checkbox" name="fb_title_show" id="fb_title_show" value="1" <?php echo (intval($fb_title_show)==1 ? ' checked="checked"' : ''); ?>/>
100
+ </td>
101
+ </tr>
102
+ <tr>
103
+ <td>&nbsp;</td>
104
+ <td></td>
105
+ </tr>
106
+ <tr>
107
+ <th scope="row" nowrap="nowrap">Include URL (og:url) tag?</th>
108
+ <td>
109
+ <input type="checkbox" name="fb_url_show" id="fb_url_show" value="1" <?php echo (intval($fb_url_show)==1 ? ' checked="checked"' : ''); ?>/>
110
+ </td>
111
+ </tr>
112
+ <tr>
113
+ <td>&nbsp;</td>
114
+ <td></td>
115
+ </tr>
116
+ <tr>
117
+ <th scope="row" nowrap="nowrap">Include Type (og:type) tag?</th>
118
+ <td>
119
+ <input type="checkbox" name="fb_type_show" id="fb_type_show" value="1" <?php echo (intval($fb_type_show)==1 ? ' checked="checked"' : ''); ?>/>
120
+ (will be &quot;article&quot; for posts and pages and &quot;website&quot; for the homepage)
121
+ </td>
122
+ </tr>
123
+ <tr>
124
+ <td>&nbsp;</td>
125
+ <td></td>
126
+ </tr>
127
+ <tr>
128
+ <th scope="row" nowrap="nowrap">Include Description (og:description) tag?</th>
129
+ <td>
130
+ <input type="checkbox" name="fb_desc_show" id="fb_desc_show" value="1" <?php echo (intval($fb_desc_show)==1 ? ' checked="checked"' : ''); ?> onclick="showDescriptionOptions();"/>
131
+ </td>
132
+ </tr>
133
+ <tr class="fb_description_options">
134
+ <th scope="row" nowrap="nowrap">Description maximum length:</th>
135
+ <td>
136
+ <input type="text" name="fb_desc_chars" id="fb_desc_chars" size="3" maxlength="3" value="<?php echo (intval($fb_desc_chars)>0 ? intval($fb_desc_chars) : ''); ?>"/> characters, 0 or blank for no maximum length
137
+ </td>
138
+ </tr>
139
+ <tr class="fb_description_options">
140
+ <th scope="row" nowrap="nowrap">Homepage description:</th>
141
+ <td>
142
+ Use
143
+ <select name="fb_desc_homepage" id="fb_desc_homepage" onchange="showDescriptionCustomText();">
144
+ <option value=""<?php if (trim($fb_desc_homepage)=='') echo ' selected="selected"'; ?>>Website tagline</option>
145
+ <option value="custom"<?php if (trim($fb_desc_homepage)=='custom') echo ' selected="selected"'; ?>>Custom text</option>
146
+ </select>
147
+ <div id="fb_desc_homepage_customtext_div">
148
+ <textarea name="fb_desc_homepage_customtext" id="fb_desc_homepage_customtext" rows="3" cols="50"><?php echo $fb_desc_homepage_customtext; ?></textarea>
149
+ </div>
150
+ </td>
151
+ </tr>
152
+ <tr>
153
+ <td>&nbsp;</td>
154
+ <td></td>
155
+ </tr>
156
+ <tr>
157
+ <th scope="row" nowrap="nowrap">Include Image (og:image) tag?</th>
158
+ <td>
159
+ <input type="checkbox" name="fb_image_show" id="fb_image_show" value="1" <?php echo (intval($fb_image_show)==1 ? ' checked="checked"' : ''); ?> onclick="showImageOptions();"/>
160
+ </td>
161
+ </tr>
162
+ <tr class="fb_image_options">
163
+ <th scope="row" nowrap="nowrap">Default image:</th>
164
+ <td>
165
+ <input type="text" name="fb_image" id="fb_image" size="50" value="<?php echo $fb_image; ?>"/>
166
+ <input id="fb_image_button" class="button" type="button" value="Upload/Choose image" />
167
+ <br/>
168
+ Full URL with http://
169
+ </td>
170
+ </tr>
171
  </table>
172
  <p class="submit">
173
  <input type="hidden" name="action" value="save"/>
245
  tb_show('',"media-upload.php?type=image&TB_iframe=true");
246
  });
247
  window.send_to_editor = function(html) {
248
+ imgurl = jQuery('img',html).attr('src');
249
+ jQuery("input"+"#fb_image").val(imgurl);
250
+ tb_remove();
251
+ }
252
+ showAdminOptions();
253
+ jQuery('.fb_description_options').hide();
254
+ showDescriptionOptions();
255
+ jQuery('#fb_desc_homepage_customtext').hide();
256
+ showDescriptionCustomText();
257
+ showImageOptions();
258
  });
259
+ function showAdminOptions() {
260
+ if (jQuery('#fb_admin_id_show').is(':checked')) {
261
+ jQuery('.fb_admin_id_options').show();
262
+ } else {
263
+ jQuery('.fb_admin_id_options').hide();
264
+ }
265
+ }
266
+ function showDescriptionOptions() {
267
+ if (jQuery('#fb_desc_show').is(':checked')) {
268
+ jQuery('.fb_description_options').show();
269
+ } else {
270
+ jQuery('.fb_description_options').hide();
271
+ }
272
+ }
273
+ function showDescriptionCustomText() {
274
+ if (jQuery('#fb_desc_homepage').val()=='custom') {
275
+ jQuery('#fb_desc_homepage_customtext').show().focus();
276
+ } else {
277
+ jQuery('#fb_desc_homepage_customtext').hide();
278
+ }
279
+ }
280
+ function showImageOptions() {
281
+ if (jQuery('#fb_image_show').is(':checked')) {
282
+ jQuery('.fb_image_options').show();
283
+ } else {
284
+ jQuery('.fb_image_options').hide();
285
+ }
286
+ }
287
  </script>
288
  <style type="text/css">
289
  TABLE.form-table TR TH {
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://blog.wonderm00n.com/2011/10/14/wordpress-plugin-simple-faceb
4
  Tags: facebook, open graph, seo, share, social, meta
5
  Requires at least: 3
6
  Tested up to: 3.2.1
7
- Stable tag: 0.1.4
8
 
9
  This plugin inserts Facebook Open Graph Tags into your WordPress Blog/Website for more effective Facebook sharing results.
10
 
@@ -33,6 +33,12 @@ The tags that this plugin inserts are:
33
 
34
  == Changelog ==
35
 
 
 
 
 
 
 
36
  = 0.1.4 =
37
 
38
  * Shortcodes are now stripped from og:description
4
  Tags: facebook, open graph, seo, share, social, meta
5
  Requires at least: 3
6
  Tested up to: 3.2.1
7
+ Stable tag: 0.1.5
8
 
9
  This plugin inserts Facebook Open Graph Tags into your WordPress Blog/Website for more effective Facebook sharing results.
10
 
33
 
34
  == Changelog ==
35
 
36
+ = 0.1.5 =
37
+
38
+ * Fixed the way Categories and Tags pages links were being retrieved that would cause an error on WP 3.0
39
+ * Added the option to use a Custom text as homepage og:description instead of the Website Tagline
40
+ * Fixed a bug that wouldn't allow to uncheck the og:image tag
41
+
42
  = 0.1.4 =
43
 
44
  * Shortcodes are now stripped from og:description
wonderm00n-open-graph.php CHANGED
@@ -1,14 +1,14 @@
1
  <?php
2
  /**
3
  * @package Wonderm00n's Simple Facebook Open Graph Meta Tags
4
- * @version 0.1.4
5
  */
6
  /*
7
  Plugin Name: Wonderm00n's Simple Facebook Open Graph Meta Tags
8
  Plugin URI: http://blog.wonderm00n.com/2011/10/14/wordpress-plugin-simple-facebook-open-graph-tags/
9
  Description: This plugin inserts Facebook Open Graph Tags into your Wordpress Blog/Website for better Facebook sharing
10
  Author: Marco Almeida (Wonderm00n)
11
- Version: 0.1.4
12
  Author URI: http://wonderm00n.com
13
  */
14
 
@@ -25,6 +25,8 @@ function wonderm00n_open_graph() {
25
  $fb_type_show=get_option('wonderm00n_open_graph_fb_type_show');
26
  $fb_desc_show=get_option('wonderm00n_open_graph_fb_desc_show');
27
  $fb_desc_chars=intval(get_option('wonderm00n_open_graph_fb_desc_chars'));
 
 
28
  $fb_image_show=get_option('wonderm00n_open_graph_fb_image_show');
29
  $fb_image=get_option('wonderm00n_open_graph_fb_image');
30
 
@@ -78,25 +80,33 @@ function wonderm00n_open_graph() {
78
  }
79
  }
80
  } else {
 
81
  //Other pages - Defaults
82
  $fb_title=esc_attr(strip_tags(stripslashes(get_bloginfo('name'))));
83
  $fb_url=get_option('siteurl');
84
  $fb_type='website';
85
- $fb_desc=esc_attr(strip_tags(stripslashes(get_bloginfo('description'))));
 
 
 
 
 
 
 
86
 
87
  if (is_category()) {
88
  $fb_title=esc_attr(strip_tags(stripslashes(single_cat_title('', false))));
89
- $term=get_queried_object();
90
  $fb_url=get_term_link($term, $term->taxonomy);
91
  } else {
92
  if (is_tag()) {
93
  $fb_title=esc_attr(strip_tags(stripslashes(single_tag_title('', false))));
94
- $term=get_queried_object();
95
  $fb_url=get_term_link($term, $term->taxonomy);
96
  } else {
97
  if (is_tax()) {
98
  $fb_title=esc_attr(strip_tags(stripslashes(single_term_title('', false))));
99
- $term=get_queried_object();
100
  $fb_url=get_term_link($term, $term->taxonomy);
101
  } else {
102
  if (is_search()) {
@@ -230,8 +240,10 @@ if ( isset($_POST['action']) ) {
230
  update_option('wonderm00n_open_graph_fb_type_show', intval($_POST['fb_type_show']));
231
  update_option('wonderm00n_open_graph_fb_desc_show', intval($_POST['fb_desc_show']));
232
  update_option('wonderm00n_open_graph_fb_desc_chars', intval($_POST['fb_desc_chars']));
 
 
 
233
  update_option('wonderm00n_open_graph_fb_image', trim($_POST['fb_image']));
234
  }
235
  }
236
-
237
  ?>
1
  <?php
2
  /**
3
  * @package Wonderm00n's Simple Facebook Open Graph Meta Tags
4
+ * @version 0.1.5
5
  */
6
  /*
7
  Plugin Name: Wonderm00n's Simple Facebook Open Graph Meta Tags
8
  Plugin URI: http://blog.wonderm00n.com/2011/10/14/wordpress-plugin-simple-facebook-open-graph-tags/
9
  Description: This plugin inserts Facebook Open Graph Tags into your Wordpress Blog/Website for better Facebook sharing
10
  Author: Marco Almeida (Wonderm00n)
11
+ Version: 0.1.5
12
  Author URI: http://wonderm00n.com
13
  */
14
 
25
  $fb_type_show=get_option('wonderm00n_open_graph_fb_type_show');
26
  $fb_desc_show=get_option('wonderm00n_open_graph_fb_desc_show');
27
  $fb_desc_chars=intval(get_option('wonderm00n_open_graph_fb_desc_chars'));
28
+ $fb_desc_homepage = get_option('wonderm00n_open_graph_fb_desc_homepage');
29
+ $fb_desc_homepage_customtext = get_option('wonderm00n_open_graph_fb_desc_homepage_customtext');
30
  $fb_image_show=get_option('wonderm00n_open_graph_fb_image_show');
31
  $fb_image=get_option('wonderm00n_open_graph_fb_image');
32
 
80
  }
81
  }
82
  } else {
83
+ global $wp_query;
84
  //Other pages - Defaults
85
  $fb_title=esc_attr(strip_tags(stripslashes(get_bloginfo('name'))));
86
  $fb_url=get_option('siteurl');
87
  $fb_type='website';
88
+ switch(trim($fb_desc_homepage)) {
89
+ case 'custom':
90
+ $fb_desc=esc_attr(strip_tags(stripslashes($fb_desc_homepage_customtext)));
91
+ break;
92
+ default:
93
+ $fb_desc=esc_attr(strip_tags(stripslashes(get_bloginfo('description'))));
94
+ break;
95
+ }
96
 
97
  if (is_category()) {
98
  $fb_title=esc_attr(strip_tags(stripslashes(single_cat_title('', false))));
99
+ $term=$wp_query->get_queried_object();
100
  $fb_url=get_term_link($term, $term->taxonomy);
101
  } else {
102
  if (is_tag()) {
103
  $fb_title=esc_attr(strip_tags(stripslashes(single_tag_title('', false))));
104
+ $term=$wp_query->get_queried_object();
105
  $fb_url=get_term_link($term, $term->taxonomy);
106
  } else {
107
  if (is_tax()) {
108
  $fb_title=esc_attr(strip_tags(stripslashes(single_term_title('', false))));
109
+ $term=$wp_query->get_queried_object();
110
  $fb_url=get_term_link($term, $term->taxonomy);
111
  } else {
112
  if (is_search()) {
240
  update_option('wonderm00n_open_graph_fb_type_show', intval($_POST['fb_type_show']));
241
  update_option('wonderm00n_open_graph_fb_desc_show', intval($_POST['fb_desc_show']));
242
  update_option('wonderm00n_open_graph_fb_desc_chars', intval($_POST['fb_desc_chars']));
243
+ update_option('wonderm00n_open_graph_fb_desc_homepage', trim($_POST['fb_desc_homepage']));
244
+ update_option('wonderm00n_open_graph_fb_desc_homepage_customtext', trim($_POST['fb_desc_homepage_customtext']));
245
+ update_option('wonderm00n_open_graph_fb_image_show', intval($_POST['fb_image_show']));
246
  update_option('wonderm00n_open_graph_fb_image', trim($_POST['fb_image']));
247
  }
248
  }
 
249
  ?>