× Joomla Facebook Connect support forum

Topic-icon Share Feed Module

Active Subscriptions:

None
14 years 8 months ago #1882 by albertyuen2000
Hi:

I have bought your facebook connect, invite and login components and modules. They are working great and I have implemented it on my site already.

I am looking for a module or code sniplet that allows me to embed a function similar to 'facebook share' on my site. Right now, I have the facebook share button implemented on my site, but I want my customers to be able to share their activities on my site on Facebook. For example, when they make a purchase, I would like to enable them to share this on their facebook wall.

I can do it with facebook share, but it is an extra step. I want to embed the entire 'facebook share' page within my webpage instead of a popup. I know that you can do it with the new facebook API.

FB.Connect.showFeedDialog(bundle_id, post_data, null, null, FB.FeedStorySize.full, FB.RequireConnect.promptConnect, function (w) {alert('shared');});

Can you help me in creating a module for this? My facebook programming skills are not equipped to do this.

Thanks.

Albert
The topic has been locked.
Active Subscriptions:

None
14 years 8 months ago #1883 by albertyuen2000
Replied by albertyuen2000 on topic Share Feed Module
BTW, will Facebook comment plugin do the job? If so, I will buy it immediately!

Albert
The topic has been locked.
Active Subscriptions:

None
14 years 8 months ago #1884 by albertyuen2000
Replied by albertyuen2000 on topic Share Feed Module
Hi:

Bought it already. But it is not really what I am looking for. It could be useful though.

I saw a feature that is available in a Drupal 'Facebook Connect' module that is very useful and is exactly what I am looking for. I hope that you guys can implement it either as a feature extension to what I have already bought or even a new package.

Basically, the Drupal extension claims that it can submit a newsfeed to Facebook when a user registers in our website. Once I have that code, I can replicate it into other areas of my website where I want my visitors to be able to publish a newsfeed to their wall (ie. making a purchase in my website.) This is different to the comments feature that you guys are offering.

Can this be done quickly?

Thanks.

Albert
The topic has been locked.
Support Specialist
14 years 8 months ago #1895 by alzander
Replied by alzander on topic Share Feed Module
You may want to look at this post, we intended to investigate further for the simple notification mentioned there, but you may be able to extend this to what you're looking for as well. It doesn't seem like his implementation is fully there either though. However, this would be a neat feature both for submitting that you joined a site for publicity and for posting things to a users notifications. In short, it is something we have on our list to investigate further.
<!-- m --><a class="postlink" href="www.cmsmarket.com/forum/index.php?f=38&t...rb_v=viewtopic#p1395">www.cmsmarket.com/forum/index.ph ... opic#p1395
The topic has been locked.
Active Subscriptions:

None
14 years 8 months ago #1898 by albertyuen2000
Replied by albertyuen2000 on topic Share Feed Module
Hi:

Thanks for your quick response. Basically, I figured out how to do it with javascript. It's not that hard once you know which function to use. Had to dig around the forum and documentation for quite a while before I got it working.

Thanks.

Albert
The topic has been locked.
Support Specialist
14 years 8 months ago #1899 by alzander
Replied by alzander on topic Share Feed Module
Feel free to share, we love to hear what people are doing :)
The topic has been locked.
Active Subscriptions:

None
14 years 8 months ago #1901 by albertyuen2000
Replied by albertyuen2000 on topic Share Feed Module
Here is what I have done:

Add the following code at the page where you want the feed to showup. In my case, I added it in the JFBInvite module under the default.php file at the end. You need to add the file xd_receiver.html and put it somewhere in your website, then reference to it in the FB.Facebook.init() call. Note that the function addLoadEvent is critical for smooth operation in IE. Otherwise, you will get an operation abort error.

Thanks.

Albert


<script src="static.ak.connect.facebook.com/js/api_li...FeatureLoader.js.php" type="text/javascript">

<script type="text/javascript">

function addLoadEvent () {

FB.Bootstrap.requireFeatures(["Connect","XFBML"],

function() {

FB.Facebook.init("<your facebook app id>", "/var/www/vhosts/puxzycat.com/httpdocs/includes/facebook/xd_receiver.html");

var attachment = { 'media':
[{'type': 'image',
'src': '<url to an image>',
'href': '<url to redirect to when users click on this>'}]};

FB.Connect.streamPublish('default news feed text', attachment);
});
}

window.onload = addLoadEvent ;

</script>
The topic has been locked.