Title: Multiple FB Groups?
Last modified: August 21, 2016

---

# Multiple FB Groups?

 *  Resolved [erh](https://wordpress.org/support/users/erh/)
 * (@erh)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/multiple-fb-groups/)
 * Is there a way for this plugin to be used to display multiple facebook feeds 
   from multiple, independent groups?
 * I tried simply using a second shortcode option specifying the new page ID (AKA:`[
   ik_fb_feed id=736022203086513]`), but that doesn’t seem to display anything.
 * The default FB Page ID I’m using in the actual settings of the Plugin is working
   fine, so I don’t think its an issue of an invalid Secret Key or AppID. Although,
   having thought about it just now, how does the AppID identify the particular 
   group I’m interested in creating a feed for? I could have been a member of multiple
   groups…
 * [https://wordpress.org/plugins/ik-facebook/](https://wordpress.org/plugins/ik-facebook/)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Thread Starter [erh](https://wordpress.org/support/users/erh/)
 * (@erh)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/multiple-fb-groups/#post-4803701)
 * Ahh never mind, it appears it was a cacheing issue. After a few hours the second
   group was working just fine. Good stuff.
 * On that note, I did have another question. Is there a way to make the “posted
   by” and the “date” appear on the same line? Right now it looks like so:
 * <Post Contents here><Post Contents here><Post Contents here>
    Posted By Someone
   Special 3 hours ago
 * I would save some vertical screen real-estate if we could have these appear on
   the same line. Like so:
 * <Post Contents here><Post Contents here><Post Contents here>
    Posted By Someone
   Special – 3 hours ago
 * I found the code portion in the php file which controlled this, but I didn’t 
   see any easy way to put them on the same line.
 *     ```
       //output Posted By... text, if option is set
       				if(get_option('ik_fb_show_posted_by')){
       					//only add the author if there is line item content to display
       					if(isset($item->from)){ //output the author of the item
       						if(isset($item->from->name)){
       							$from_text = $item->from->name;
       						}
   
       						if(strlen($from_text) > 1){
       							$posted_by_text = '<p class="ikfb_item_author">' . __('Posted By ', $this->textdomain) . $from_text . '</p>';
   
       							//add custom posted by styling from pro options
       							if(!get_option('ik_fb_use_custom_html')){
       								$posted_by_text = $this->ikfb_posted_by_styling($posted_by_text);
       							}
       							//TBD: make Custom HTML option for Posted By
       							$line_item .= $posted_by_text;
       						}
       					}
       				}
   
       				//output date, if option to display it is enabled
       				//TBD: Allow user control over date formatting
       				if(get_option('ik_fb_show_date')){
       					setlocale(LC_TIME, WPLANG);
       					$ik_fb_use_human_timing = get_option('ik_fb_use_human_timing');
       					if(strtotime($date) >= strtotime('-1 day') && !$ik_fb_use_human_timing){
       						$date = $this->humanTiming(strtotime($date)). __(' ago', $this->textdomain);
       					}else{
       						$ik_fb_date_format = get_option('ik_fb_date_format');
       						$ik_fb_date_format = strlen($ik_fb_date_format) > 2 ? $ik_fb_date_format : "%B %d";
       						$date = strftime($ik_fb_date_format, strtotime($date));
       					}
   
       					if(strlen($date)>2){
       						$date = '<p class="date">' . $date . '</p>';
   
       						//add custom date styling from  options
       						if(!get_option('ik_fb_use_custom_html')){
       							$date = $this->ikfb_date_styling($date);
       						}
       					}
   
       					$line_item .= $date;
       				}
       ```
   
 *  Plugin Author [richardgabriel](https://wordpress.org/support/users/richardgabriel/)
 * (@richardgabriel)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/multiple-fb-groups/#post-4803844)
 * Hey!
 * I strongly recommend against modifying the code. This presents a few problems,
   including the code being lost every time you update the plugin.
 * That being said, I expect you could adjust this via CSS (and you can set any 
   Custom CSS in the Settings Panel.)
 * The easiest way to do this, in my opinion, is to look at the feed with Firebug,
   make changes until it looks correct, and then copy and paste the modified CSS
   into the Custom CSS box.
 * I hope that helps!
 * Best,
    Richard
 *  Thread Starter [erh](https://wordpress.org/support/users/erh/)
 * (@erh)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/multiple-fb-groups/#post-4803848)
 * Hi Richard,
 * Yea, I’m sure modifying the code is going to bite me in the rear. I’m pretty 
   bad at CSS (and not all that great at HTML, to be honest). But I’ll work out 
   using that as a more permanent (or at least future proof) solution.
 * Thanks for the response, and for the great plugin!
 * -Eddie

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Multiple FB Groups?’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/ik-facebook_4a5568.svg)
 * [Facebook Plugin: WP Social](https://wordpress.org/plugins/ik-facebook/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ik-facebook/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ik-facebook/)
 * [Active Topics](https://wordpress.org/support/plugin/ik-facebook/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ik-facebook/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ik-facebook/reviews/)

## Tags

 * [multiple groups](https://wordpress.org/support/topic-tag/multiple-groups/)

 * 3 replies
 * 2 participants
 * Last reply from: [erh](https://wordpress.org/support/users/erh/)
 * Last activity: [12 years, 1 month ago](https://wordpress.org/support/topic/multiple-fb-groups/#post-4803848)
 * Status: resolved