Social Media Support Center
Would you like to react to this message? Create an account in a few clicks or log in to continue.

My facebook fanbox pluging doesn't show profiles

3 posters

Go down

My facebook fanbox pluging doesn't show profiles Empty My facebook fanbox pluging doesn't show profiles

Post by emil9216 Fri Dec 17, 2010 9:58 am


I have installed a wordpess fanbox plugging on my wordpress site but the profiles of the people who "liked" my Facebook page doesn't show in the fanbox. It shows only the number of the people that liked my page but not they pictures.

This is the fan box plugging - [You must be registered and logged in to see this link.]

Does anyone have an idea what can be the reason for this?

emil9216
emil9216
Prospect



Back to top Go down

My facebook fanbox pluging doesn't show profiles Empty Re: My facebook fanbox pluging doesn't show profiles

Post by Admin Fri Dec 17, 2010 5:36 pm

Could you please post the code you're currently using for the box between [ CODE ] tags? Like this...

Code:
[code]Your code here[/code]

Thank you Happy
avatar
Admin
Ultimate SN Fan



Back to top Go down

My facebook fanbox pluging doesn't show profiles Empty Re: My facebook fanbox pluging doesn't show profiles

Post by emil9216 Sat Dec 18, 2010 8:11 am

I didn't use a code. I just uploaded the plugging to my site and installed it as a widget. I think it something related to privacy settings. Yesterday i changed some of them, and the profiles start appearing, but today they are gone again.
emil9216
emil9216
Prospect



Back to top Go down

My facebook fanbox pluging doesn't show profiles Empty Re: My facebook fanbox pluging doesn't show profiles

Post by Admin Sat Dec 18, 2010 9:41 am

Well, can you add HTML coding to a widget on Wordpress? In that case, there's a much easier way to do it!
avatar
Admin
Ultimate SN Fan



Back to top Go down

My facebook fanbox pluging doesn't show profiles Empty Re: My facebook fanbox pluging doesn't show profiles

Post by emil9216 Sat Dec 18, 2010 12:42 pm

This is the plugging script. But the problem is that the profiles are visible only when visitors are logged in they facebook accounts. I tried with my account and when i am login i can see the profiles but if i am logout, i can't see them.



Code:
  (?php
/*
Plugin Name: WordPress Facebook Fan Box Widget
Plugin URI: http://suhanto.net/wp-fb-fan-box-widget-wordpress/
Description: Display facebook fan box as widget in your WordPress blog.
Author: Agus Suhanto
Version: 1.1
Author URI: http://suhanto.net/

Copyright 2010 Agus Suhanto (email : [You must be registered and logged in to see this link.])

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
*/

// wordpress plugin action hook
add_action('plugins_loaded', 'wp_fb_fan_box_init');

// initialization function
global $wp_fb_fan_box;
function wp_fb_fan_box_init() {
  $wp_fb_fan_box = new wp_fb_fan_box();
}

/*
 * This is the namespace for the 'recent_comments_gravatar' plugin / widget.
 */
class wp_fb_fan_box {
 
  protected $_name = "Facebook Fan Box";
  protected $_folder;
  protected $_path;
  protected $_width = 300;
  protected $_height = 320;
  protected $_link = 'http://suhanto.net/wp-fb-fan-box-widget-wordpress/';
  protected $_facebook_fan_box_api = 'http://www.facebook.com/connect/connect.php';
 
  /*
    * Constructor
    */
  function __construct() {
      $path = __FILE__;
      if (!$path) { $path = $_SERVER['PHP_SELF']; }
        $current_dir = dirname($path);
      $current_dir = str_replace('\', '/', $current_dir);
      $current_dir = explode('/', $current_dir);
      $current_dir = end($current_dir);
      if (empty($current_dir) || !$current_dir)
        $current_dir = 'recent-comments-gravatar';
      $this-)_folder = $current_dir;
      $this-)_path = '/wp-content/plugins/' . $this-)_folder . '/';

      $this-)init();
  }
 
  /*
    * Initialization function, called by plugin_loaded action.
    */
  function init() {
      add_filter("plugin_action_links_$plugin", array(&$this, 'link'));
      load_plugin_textdomain($this-)_folder, false, $this-)_folder);     
     
      if (!function_exists('register_sidebar_widget') || !function_exists('register_widget_control'))
        return;
      register_sidebar_widget($this-)_name, array(&$this, "widget"));
      register_widget_control($this-)_name, array(&$this, "control"), $this-)_width, $this-)_height);
  }

  /*
    * Options validation.
    */
  function validate_options(&$options) {
      if (!is_array($options)) {
        $options = array(
            'width' =) '280',
            'height' =) '250',
            'profile_id' =) '',     
            'connections' =) '10',
            'stream' =) '',
            'header' =) '',
            'locale' =) '',
            'link_to_us' =) '');
      }
     
      // validations and defaults
      if (intval($options['width']) == 0) $options['width'] = '280';
      if (intval($options['height']) == 0) $options['height'] = '250';
      if (intval($options['connections']) == 0) $options['connections'] = '10';
  }
 
  /*
    * Called by register_sidebar_widget() function.
    * Rendering of the widget happens here.
    */
  function widget($args) {
      extract($args);
           
      $options = get_option($this-)_folder);
      $this-)validate_options($options);
     
      // There is no before title, after title, before widget, and after widget
      // This is plain facebook fanbox, no embellishment
      echo '(iframe scrolling="no" frameborder="0" width="' . $options['width']. '" height="' . $options['height'] . '" src="' . $this-)_facebook_fan_box_api . '?id=' . $options['profile_id'] . '&connections=' . $options['connections'] . '&stream=' . ($options['stream'] == 'checked' ? 'true' : 'false') . '&header=' . ($options['header'] == 'checked' ? 'true' : 'false') . '&locale=' . $options['locale'] . '")(/iframe)';
      if ($options['link_to_us'] == 'checked') {
        echo '(div class="wffb-link")(a href="' . $this-)_link . '" target="_blank")'. __('Get this widget for your own blog free!', $this-)_folder) . '(/a)(/div)';
      }
  }
 
  /*
    * Plugin control funtion, used by admin screen.
    */
  function control() {
      $options = get_option($this-)_folder);
      $this-)validate_options($options);
      if ($_POST[$this-)_folder . '-submit']) {
        $options['width'] = htmlspecialchars(stripslashes($_POST[$this-)_folder . '-width']));
        $options['height'] = htmlspecialchars($_POST[$this-)_folder . '-height']);
        $options['profile_id'] = htmlspecialchars(stripslashes($_POST[$this-)_folder . '-profile_id']));
        $options['connections'] = htmlspecialchars(stripslashes($_POST[$this-)_folder . '-connections']));
        $options['stream'] = htmlspecialchars(stripslashes($_POST[$this-)_folder . '-stream']));
        $options['header'] = htmlspecialchars($_POST[$this-)_folder . '-header']);
        $options['locale'] = htmlspecialchars(stripslashes($_POST[$this-)_folder . '-locale']));
        $options['link_to_us'] = htmlspecialchars($_POST[$this-)_folder . '-link_to_us']);
        update_option($this-)_folder, $options);
      }
?)
      (p)
        (label for="(?php echo($this-)_folder) ?)-width")(?php _e('Width: ', $this-)_folder); ?)(/label)
        (input type="text" id="(?php echo($this-)_folder) ?)-width" name="(?php echo($this-)_folder) ?)-width" value="(?php echo $options['width']; ?)" size="2")(/input) ((a href="(?php echo $this-)_link?)#width" target="_blank")?(/a))
      (/p)
      (p)
        (label for="(?php echo($this-)_folder) ?)-title")(?php _e('Height: ', $this-)_folder); ?)(/label)
        (input type="text" id="(?php echo($this-)_folder) ?)-height" name="(?php echo($this-)_folder) ?)-height" value="(?php echo $options['height']; ?)" size="2")(/input) ((a href="(?php echo $this-)_link?)#height" target="_blank")?(/a))
      (/p)
      (p)
        (label for="(?php echo($this-)_folder) ?)-title")(?php _e('Profile Id: ', $this-)_folder); ?)(/label)
        (input type="text" id="(?php echo($this-)_folder) ?)-profile_id" name="(?php echo($this-)_folder) ?)-profile_id" value="(?php echo $options['profile_id']; ?)" size="20")(/input) ((a href="(?php echo $this-)_link?)#profile-id" target="_blank")?(/a))
      (/p)
      (p)
        (label for="(?php echo($this-)_folder) ?)-connections")(?php _e('Connections: ', $this-)_folder); ?)(/label)
        (input type="text" id="(?php echo($this-)_folder) ?)-connections" name="(?php echo($this-)_folder) ?)-connections" value="(?php echo $options['connections']; ?)" size="2")(/input) ((a href="(?php echo $this-)_link?)#connections" target="_blank")?(/a))
      (/p)
      (p)
          (input type="checkbox" id="(?php echo($this-)_folder) ?)-stream" name="(?php echo($this-)_folder) ?)-stream" value="checked" (?php echo $options['stream'];?) /) (?php _e('Stream', $this-)_folder) ?) ((a href="(?php echo $this-)_link?)#stream" target="_blank")?(/a))     
      (/p)
      (p)
          (input type="checkbox" id="(?php echo($this-)_folder) ?)-stream" name="(?php echo($this-)_folder) ?)-header" value="checked" (?php echo $options['header'];?) /) (?php _e('Header', $this-)_folder) ?) ((a href="(?php echo $this-)_link?)#wg-header" target="_blank")?(/a))     
      (/p)
      (p)
          (input type="checkbox" id="(?php echo($this-)_folder) ?)-link_to_us" name="(?php echo($this-)_folder) ?)-link_to_us" value="checked" (?php echo $options['link_to_us'];?) /) (?php _e('Link to us (optional)', $this-)_folder) ?) ((a href="(?php echo $this-)_link?)#link-to-us" target="_blank")?(/a))
      (/p)
      (p)(?php printf(__('More details about these options, visit (a href="%s" target="_blank")Plugin Home(/a)', $this-)_folder), $this-)_link) ?)(/p)     
      (input type="hidden" id="(?php echo($this-)_folder) ?)-submit" name="(?php echo($this-)_folder) ?)-submit" value="1" /)
(?php
  }
 
  /*
    * Add extra link to widget list.
    */
  function link($links) {
      $options_link = '(a href="' . $this-)_link . '")' . __('Donate', $this-)_folder) . '(/a)';
      array_unshift($links, $options_link);
      return $links;
  }
 
}
emil9216
emil9216
Prospect



Back to top Go down

My facebook fanbox pluging doesn't show profiles Empty Re: My facebook fanbox pluging doesn't show profiles

Post by Admin Sat Dec 18, 2010 6:14 pm

What do you see when you're logged out?

See if you get the same issue with the Fan Box below. Try it as logged in and then as logged out and let me know if it's the same Wink

avatar
Admin
Ultimate SN Fan



Back to top Go down

My facebook fanbox pluging doesn't show profiles Empty Re: My facebook fanbox pluging doesn't show profiles

Post by Ruby Tue Dec 28, 2010 9:45 am

Moved from Other to AR

I note that there have been no replies on this thread for several days ….

Do you still require help with this ?

If you do not reply to this thread within the next 3 days we will assume your problem was solved , and this thread will be Moved to the Solved section without further notice .


If you are not the thread starter please do not post for any help or support on this thread
Thanks for your co-operation and understanding !

avatar
Ruby
Ultimate SN Fan



Back to top Go down

My facebook fanbox pluging doesn't show profiles Empty Re: My facebook fanbox pluging doesn't show profiles

Post by Sponsored content


Sponsored content


Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum