Topic-icon SCSocial and Facebook feed

Active Subscriptions:

None
9 years 9 months ago #45839 by rolhin
Hi,

I am using Joomlla 3.3 and EasySocial and have the latest version of JFBConnect for a website.

The website is for an association which also has a closed Facebook group. A lot of our members do not have facebook accounts so I need to have the FB group deed on the website.

I purchased JFBConnect because I was under the impression that using it I could achieve this. I still think that it can but all the documentation I can find relates to transferring data to FB while I need the opposite.

Any help or pointer to detailed instructions appreciated.

Thanks

Roland
The topic has been locked.
Support Specialist
9 years 9 months ago #45842 by alzander
Replied by alzander on topic SCSocial and Facebook feed
Roland,
Sorry for the confusion. We're still working on all the documentation for the new Social Streams feature. The best outline of what to do is:
1) Create a Social Channel using that guide. That is what sets JFBConnect up to be able to access the Facebook Group as a specific user.
2) Create an instance of the SCSocialWidget. There is a parameter for "Channel ID". Set that to '1', which is likely the only Channel you created. If you created more channels, you can see the IDs to use in the Channels area of JFBConnect.

I hope that helps explain, but if not, or you have any other questions, just let me know.

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
9 years 9 months ago #45854 by rolhin
Replied by rolhin on topic SCSocial and Facebook feed
Thanks Alex. Will try that later.

Roland
The topic has been locked.
Support Specialist
9 years 9 months ago #45863 by alzander
Replied by alzander on topic SCSocial and Facebook feed
No problem, and sorry for the lack of documentation. It's always a cat and mouse issue to add new features, keep up with changes in each of the social networks, and make sure documentation is up to snuff too.

If you do run into any issues, just let us know.

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
9 years 9 months ago - 9 years 9 months ago #45872 by rolhin
Replied by rolhin on topic SCSocial and Facebook feed
It might be just me tonight, or I anm doing this wrong, but within the SCSocialWidget I cannot find a parameter for channel.

Roland
Last edit: 9 years 9 months ago by rolhin.
The topic has been locked.
Support Specialist
9 years 9 months ago #45875 by alzander
Replied by alzander on topic SCSocial and Facebook feed
You want to use the SCSocialStream module. The SCSocialWidget is the easy configuration tool for all of the widgets we provide (Like, Tweet, Share, etc). The SCSocialStream module is what you use to show news feeds from the Channels you've configured.

I hope that helps,
Alex
The topic has been locked.
Active Subscriptions:

None
9 years 8 months ago #45886 by rolhin
Replied by rolhin on topic SCSocial and Facebook feed
Thanks Alex,

I am getting somewhere. have set up the channel and SCSocialStream. Have found a way to display this in EasySocial. Not very elegant yet but proves the link is there.

This is displaying the posts for the group although need to make the display more presentable.

Although the posts are retrieved is it possible to retrieve the comments that go with them?

Thanks for your help.

Roland
The topic has been locked.
Support Specialist
9 years 8 months ago #45897 by alzander
Replied by alzander on topic SCSocial and Facebook feed
Right now, we don't display the comments attached to each post. I do believe that's possible though, and we should be able to help investigate that for you as I'm sure it's something other users would like.

As for the looks, they are fully customizable. The layout files that are used are in the /media/sourcecoast/themes/scsocialstream directory. You can edit the facebook.php file to alter the looks of both Facebook Pages and Groups or create a file like facebook_page.php and alter just the looks of Facebook Page posts. The styles.css file in that folder is also loaded and gives complete flexibility over the styles applied.

I hope that helps, but again, if you need any help, just let me know.

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
9 years 8 months ago - 9 years 8 months ago #45904 by rolhin
Replied by rolhin on topic SCSocial and Facebook feed
Thanks again.

Will look at the layout files.

Any help with incorpoating the comments would be appreciated. As you say I shouls think others would be intersted in this.

From my point of view the discussion on the Facebook group is important, not just the original post. Just like the actualnews feed on Facebook. I am sure I have seen this somewhere but cannot find it at the moment.

Edit:- a lttle like what is shown on this website extensions.techhelpsource.com/demo/facebook-wall-feeds

Roland
Last edit: 9 years 8 months ago by rolhin.
The topic has been locked.
Support Specialist
9 years 8 months ago #46157 by alzander
Replied by alzander on topic SCSocial and Facebook feed
Roland,
Thanks for the link to the other extension. We built the SCSocialStream module with the ability to have different "Themes" created for it, and we plan to add more in the future. For now though, we only have the default one built-in.

For adding comments, we've done some testing and come up with some small code changes that will let you display comments from Facebook Pages and Groups. The styling probably isn't perfect yet, but hopefully you can make whatever modifications you need from here.

The changes are as follows:
In the /components/com_jfbconnect/libraries/provider/facebook/channel/page.php file, around line 51, you'll see:
$post->thumbDescription = (array_key_exists('description', $data)?$data['description']:"");
                    $stream->addPost($post);
Insert the a new line between those 2 that will store the comment from the post:
$post->thumbDescription = (array_key_exists('description', $data)?$data['description']:"");

                    $post->comments = (array_key_exists('comments', $data)?$data['comments']:"");
                    $stream->addPost($post);

Then, edit the /media/sourcecoast/themes/scsocialstream/default/facebook.php file. At the very bottom of that file, you'll see:
</div>
<?php
}
echo '</div>';
Update that with this huge block, which will display the comment information:
</div>
<?php
}
if (is_array($this->comments))
{
    echo '<div class="row-fluid">
      <div class="comments preview span12">
      <div class="text-center">Comments</div>';

    foreach ($this->comments['data'] as $comment)
    {
        $date = JFactory::getDate($comment['created_time']);
        $date = $date->format($dateTimeFormat);

        echo '<div class="row-fluid">
          <div class="span12 comment">
              <div class="message">' . $comment['message'] . '</div>
              <div>
                <span class="date text-left">' . $date . '</span>
                <span class="from text-right"><img src="https://graph.facebook.com/' . $comment['from']['id'] . '/picture" width="25" /> ' . $comment['from']['name'] . '</span>
              </div>
        </div>
        </div>';
    }
    echo '</div>
    </div>';
}
echo '</div>';

Please test and let us know how that goes. I think I captured most of the important data from the comment itself (poster, avatar, date and comment), but if you feel there's something missing, just let me know and we should be able to add it.

Thanks,
Alex
The topic has been locked.