Hi,
I have my blog on wordpress.com
I’ve downloaded the zip file of fb plugin v 1.2.3
how do I upload wp-content/plugin/directory ?
Thanks
https://www.ads-software.com/plugins/facebook-social-plugins/
]]>If you are receiving an Error (in red letters) in place of your Like button you should change the following:
urlencode(get_permalink());
to
get_permalink();
in these two files:
1. facebook-social-plugins/socialplugins.php
2. facebook-social-plugins/widgets/like-button.php
https://www.ads-software.com/extend/plugins/facebook-social-plugins/
]]>After I changed my permalink settings and then changed back as I realized all back links will not work, I lost all my “likes” on all my blog posts?
Below is an example, had about 20 likes on this post:
https://www.realsimplephotography.co.za/nico-and-mandi-cabrieres/
https://www.ads-software.com/extend/plugins/facebook-social-plugins/
]]>Is there going to be any updates or even modifications to this plugin?
I would like to only have a like button appear on pages, not posts and pages. What would I need to edit and where??
https://www.ads-software.com/extend/plugins/facebook-social-plugins/
]]>We’re migrating a site from one host to another, and want to make sure that our ‘likes’ travel with us.
Am I correct to think that the like counts are fetched from Facebook based on the URL of the post that’s being viewed?
I ask because I’m mid-way through a migration. We’re migrating a site from a ‘.tv’ domain to a ‘.com’ domain. Once that’s ready we’re going to park the ‘.tv’ domain onto the new location and set WordPress to use ‘.tv’ from then on. This might sound a strange way to go about things but that’s another story for another day.
Right now, the old ‘.tv’ site still shows counts of likes. But the new ‘.com’ site shows zero likes. We thought for a while that ‘like’ counts would be in the database but we can’t find them there and anyway that would be open to abuse, so now we’re working on the assumption that when the new site’s URLs are back to using ‘.tv’ everything might fall back into place.
Is that right, or is there anything else we should do to get our like counts migrated?
Thanks in advance
Ian
https://www.ads-software.com/extend/plugins/facebook-social-plugins/
]]>Whe I click on my blog post like buttom. The text that it is upload to facebook is that:
El Sonido de la Concha
Puedes usar las siguientes etiquetas y atributos HTML: <?a href=”” title=””> <?abbr title=””> <?acronym title=””> <?b> <?blockquote cite=””> <?cite> <?code> <?del datetime=””> <?em> <?i> <?q cite=””> <?strike> <?strong>
The title is correct but the text not.
If you want to see for your self, enter to this website and click on the first post facebook like button.
https://www.cabodemarcas.com/atandocabos/?p=180&lang=es
https://www.ads-software.com/extend/plugins/facebook-social-plugins/
]]>I’ve already changed that in the code, but I’d suggest to put that into the plugin:
socialplugins.php
Change the whole function AddMetas()
function AddMetas() {
if (is_single() || is_page()) {
global $post;
echo "<meta property=\"og:site_name\" content=\"".wp_specialchars(get_option('blogname'))."\" />\r\n";
echo "<meta property=\"og:title\" content=\"".wp_specialchars($post->post_title)."\" />\r\n";
echo "<meta property=\"og:type\" content=\"article\" />\r\n";
echo "<meta property=\"og:url\" content=\"".get_permalink()."\" />\r\n";
if ( has_post_thumbnail() ) { // check if the post has a Post Thumbnail assigned to it.
$thumbnail = wp_get_attachment_image_src( get_post_thumbnail_id(), 'thumbnail');
echo "<meta property=\"og:image\" content=\"".$thumbnail[0]."\" />\r\n";
} else {
$imgs = $this->getImages();
if (count($imgs) > 0) {
echo "<meta property=\"og:image\" content=\"".wp_get_attachment_thumb_url($imgs[0]->ID)."\" />\r\n";
}
}
}
}
Now it checks if there is any post thumbnail, it not, it takes the first attachment (as before).
https://www.ads-software.com/extend/plugins/facebook-social-plugins/
]]>1,91c1,94
< <?php
< class OlussierFSP_LikeBox extends WP_Widget {
<
< function OlussierFSP_LikeBox() {
< parent::WP_Widget(false, “FB Like Box”, array(‘description’ => “Enables Facebook Page owners to attract and gain Likes from their own website.”));
< }
<
< function widget($args, $instance) {
< extract($args);
< $title = apply_filters(‘widget_title’, $instance[‘title’]);
< echo $before_widget;
< if ($title) { echo $before_title.$title.$after_title; }
<
< $pageId = $instance[‘pageid’];
< $width = (intval($instance[‘width’]) > 0 ? intval($instance[‘width’]) : 300);
< $height = (intval($instance[‘height’]) > 0 ? intval($instance[‘height’]) : 0);
< $connections = intval($instance[‘connections’]);
< $showHeader = ($instance[‘showheader’] == “true” ? “true” : “false”);
< $showStream = ($instance[‘showstream’] == “true” ? “true” : “false”);
<
< $options = get_option(‘olussier-facebook-social-plugins’);
< if (!empty($options[‘application_id’])) {
< echo “<fb:like-box profile_id=\””;
< echo $pageId;
< echo “\” width=\””;
< echo $width;
< if ($height) {
< echo “\” height=\””;
< echo $height;
< }
< echo “\” connections=\””;
< echo $connections;
< echo “\” stream=\””;
< echo $showStream;
< echo “\” header=\””;
< echo $showHeader;
< echo “\”></fb:like-box>\r\n”;
< } else {
< echo “<iframe src=\”https://www.facebook.com/plugins/likebox.php?profile_id=”;
< echo $pageId;
< echo “&width=”;
< echo $width;
< if ($height) {
< echo “&height=”;
< echo $height;
< }
< echo “&connections=”;
< echo $connections;
< echo “&stream=”;
< echo $showStream;
< echo “&header=”;
< echo $showHeader;
< echo “&locale=”;
< echo OlussierFacebookSocialPlugins::GetLanguage();
< echo “\” scrolling=\”no\” frameborder=\”0\” allowTransparency=\”true\” style=\”border:none; overflow:hidden; width:”;
< echo $width;
< if ($height) {
< echo “px; height:”;
< echo $height;
< }
< echo “px\”></iframe>\r\n”;
< }
<
< echo $after_widget;
< }
<
< function update($new_instance, $old_instance) {
< return $new_instance;
< }
<
< function form($instance) {
< if (array_key_exists(‘title’,$instance)) {
< $title = esc_attr($instance[‘title’]);
< } else {
< $title = “Find us on Facebook”;
< }
<
< if (!array_key_exists(‘connections’,$instance)) {
< $instance[‘connections’] = 10;
< }
<
< echo “<p><label for=\””.$this->get_field_id(‘title’).”\”>”._e(‘Title:’).” <input class=\”widefat\” id=\””.$this->get_field_id(‘title’).”\” name=\””.$this->get_field_name(‘title’).”\” type=\”text\” value=\””.wp_specialchars($title).”\” /></label></p>\r\n”;
< echo “<p><label for=\””.$this->get_field_id(‘pageid’).”\”>”._e(‘Facebook Page ID:’).” <input class=\”widefat\” id=\””.$this->get_field_id(‘pageid’).”\” name=\””.$this->get_field_name(‘pageid’).”\” type=\”text\” value=\””.wp_specialchars($instance[‘pageid’]).”\” /></label></p>\r\n”;
< echo “<p><label for=\””.$this->get_field_id(‘width’).”\”>”._e(‘Width:’).” <input class=\”widefat\” id=\””.$this->get_field_id(‘width’).”\” name=\””.$this->get_field_name(‘width’).”\” type=\”text\” value=\””.wp_specialchars($instance[‘width’]).”\” /></label></p>\r\n”;
< echo “<p><label for=\””.$this->get_field_id(‘height’).”\”>”._e(‘Height:’).” <input class=\”widefat\” id=\””.$this->get_field_id(‘height’).”\” name=\””.$this->get_field_name(‘height’).”\” type=\”text\” value=\””.wp_specialchars($instance[‘height’]).”\” /></label></p>\r\n”;
< echo “<p><label for=\””.$this->get_field_id(‘connections’).”\”>”._e(‘Connections:’).” <input class=\”widefat\” id=\””.$this->get_field_id(‘connections’).”\” name=\””.$this->get_field_name(‘connections’).”\” type=\”text\” value=\””.wp_specialchars($instance[‘connections’]).”\” /></label></p>\r\n”;
< echo “<p><input type=\”checkbox\” id=\””.$this->get_field_id(‘showheader’).”\” name=\””.$this->get_field_name(‘showheader’).”\” value=\”true\””.($instance[‘showheader’] == “true” ? ” checked” : “”).” /> <label for=\””.$this->get_field_id(‘showheader’).”\”>Show header</label></p>\r\n”;
< echo “<p><input type=\”checkbox\” id=\””.$this->get_field_id(‘showstream’).”\” name=\””.$this->get_field_name(‘showstream’).”\” value=\”true\””.($instance[‘showstream’] == “true” ? ” checked” : “”).” /> <label for=\””.$this->get_field_id(‘showstream’).”\”>Show stream</label></p>\r\n”;
< }
< }
< ?>
—
> <?php
> class OlussierFSP_LikeBox extends WP_Widget {
>
> function OlussierFSP_LikeBox() {
> parent::WP_Widget(false, “FB Like Box”, array(‘description’ => “Enables Facebook Page owners to attract and gain Likes from their own website.”));
> }
>
> function widget($args, $instance) {
> extract($args);
> $title = apply_filters(‘widget_title’, $instance[‘title’]);
> echo $before_widget;
> if ($title) { echo $before_title.$title.$after_title; }
>
> $pageId = $instance[‘pageid’];
> $width = (intval($instance[‘width’]) > 0 ? intval($instance[‘width’]) : 300);
> $height = (intval($instance[‘height’]) > 0 ? intval($instance[‘height’]) : 0);
> $connections = intval($instance[‘connections’]);
> $showHeader = ($instance[‘showheader’] == “true” ? “true” : “false”);
> $showStream = ($instance[‘showstream’] == “true” ? “true” : “false”);
> $colorScheme = $instance[‘colorscheme’];
> $options = get_option(‘olussier-facebook-social-plugins’);
> if (!empty($options[‘application_id’])) {
> echo “<fb:like-box profile_id=\””;
> echo $pageId;
> echo “\” width=\””;
> echo $width;
> if ($height) {
> echo “\” height=\””;
> echo $height;
> }
> echo “\” connections=\””;
> echo $connections;
> echo “\” stream=\””;
> echo $showStream;
> echo “\” header=\””;
> echo $showHeader;
> echo “\”></fb:like-box>\r\n”;
> } else {
> echo “<iframe src=\”https://www.facebook.com/plugins/likebox.php?profile_id=”;
> echo $pageId;
> echo “&width=”;
> echo $width;
> if ($height) {
> echo “&height=”;
> echo $height;
> }
> echo “&colorscheme=”;
> echo $colorScheme;
> echo “&connections=”;
> echo $connections;
> echo “&stream=”;
> echo $showStream;
> echo “&header=”;
> echo $showHeader;
> echo “&locale=”;
> echo OlussierFacebookSocialPlugins::GetLanguage();
> echo “\” scrolling=\”no\” frameborder=\”0\” allowTransparency=\”true\” style=\”border:none; overflow:hidden; width:”;
> echo $width;
> if ($height) {
> echo “px; height:”;
> echo $height;
> }
> echo “px\”></iframe>\r\n”;
> }
>
> echo $after_widget;
> }
>
> function update($new_instance, $old_instance) {
> return $new_instance;
> }
>
> function form($instance) {
> if (array_key_exists(‘title’,$instance)) {
> $title = esc_attr($instance[‘title’]);
> } else {
> $title = “Find us on Facebook”;
> }
>
> if (!array_key_exists(‘connections’,$instance)) {
> $instance[‘connections’] = 10;
> }
>
> echo “<p><label for=\””.$this->get_field_id(‘title’).”\”>”._e(‘Title:’).” <input class=\”widefat\” id=\””.$this->get_field_id(‘title’).”\” name=\””.$this->get_field_name(‘title’).”\” type=\”text\” value=\””.wp_specialchars($title).”\” /></label></p>\r\n”;
> echo “<p><label for=\””.$this->get_field_id(‘pageid’).”\”>”._e(‘Facebook Page ID:’).” <input class=\”widefat\” id=\””.$this->get_field_id(‘pageid’).”\” name=\””.$this->get_field_name(‘pageid’).”\” type=\”text\” value=\””.wp_specialchars($instance[‘pageid’]).”\” /></label></p>\r\n”;
> echo “<p><label for=\””.$this->get_field_id(‘width’).”\”>”._e(‘Width:’).” <input class=\”widefat\” id=\””.$this->get_field_id(‘width’).”\” name=\””.$this->get_field_name(‘width’).”\” type=\”text\” value=\””.wp_specialchars($instance[‘width’]).”\” /></label></p>\r\n”;
> echo “<p><label for=\””.$this->get_field_id(‘height’).”\”>”._e(‘Height:’).” <input class=\”widefat\” id=\””.$this->get_field_id(‘height’).”\” name=\””.$this->get_field_name(‘height’).”\” type=\”text\” value=\””.wp_specialchars($instance[‘height’]).”\” /></label></p>\r\n”;
> echo “<p><label for=\””.$this->get_field_id(‘connections’).”\”>”._e(‘Connections:’).” <input class=\”widefat\” id=\””.$this->get_field_id(‘connections’).”\” name=\””.$this->get_field_name(‘connections’).”\” type=\”text\” value=\””.wp_specialchars($instance[‘connections’]).”\” /></label></p>\r\n”;
> echo “<p><input type=\”checkbox\” id=\””.$this->get_field_id(‘showheader’).”\” name=\””.$this->get_field_name(‘showheader’).”\” value=\”true\””.($instance[‘showheader’] == “true” ? ” checked” : “”).” /> <label for=\””.$this->get_field_id(‘showheader’).”\”>Show header</label></p>\r\n”;
> echo “<p><input type=\”checkbox\” id=\””.$this->get_field_id(‘showstream’).”\” name=\””.$this->get_field_name(‘showstream’).”\” value=\”true\””.($instance[‘showstream’] == “true” ? ” checked” : “”).” /> <label for=\””.$this->get_field_id(‘showstream’).”\”>Show stream</label></p>\r\n”;
> echo “<p><label for=\””.$this->get_field_id(‘colorscheme’).”\”>”._e(‘Color scheme:’).” <select class=\”widefat\” id=\””.$this->get_field_id(‘colorscheme’).”\” name=\””.$this->get_field_name(‘colorscheme’).”\”><option value=\”light\””.($instance[‘colorscheme’] == “light” ? ” selected” : “”).”>Light</option><option value=\”dark\””.($instance[‘colorscheme’] == “dark” ? ” selected” : “”).”>Dark</option></select></label></p>\r\n”;
> }
> }
> ?>
https://www.ads-software.com/extend/plugins/facebook-social-plugins/
]]>Plugin, during installation process, returns a broken header error message.
]]>