× Joomla Facebook Connect support forum

Topic-icon Integration with ZOO

Active Subscriptions:

None
13 years 5 months ago #5813 by garrethj
Hi,

Have your component running and its excellent - you saved me the dilemma of trying to compete with facebook on a community level!

However I have three questions...

1) I'm using Zoo 2.2 from yootheme to makeup most of the content of my site (its a review website )- zoo has a facebook connect already but only for commenting and not for full authentication - I have disabled this and use your component - What i want to know is can your component be used to push updates automatically to their facebook profile when say they complete a new review through frontend submission - WITHOUT asking them to share etc? Eg. Garreth just reviewed XXX on MyWebsite.com appears straight after the review is submitted - and also maybe post to their FB profile when comments made on my site also?

2) As i said above, I WAS using the zoo facebook connect but no longer. However the zoo FB connect showed the users FB avatar in the comments, but now it is blank. I have your component set to create a full joomla user so i understand this is why the avatar is blank - but can i get it to pull the users FB avatar through your component?

3) Can you give me or advise me on some code to put in underneath the zoo comments when not logged in so users can connect and comment straight away? I was thinking of using your login module but want the button directly underneath comments and also to disappear when logged in and display just text such as: Logged in as Garreth (Facebook)?

If you could help me with these I'd really appreciate it

Thanks,

Garreth
The topic has been locked.
Support Specialist
13 years 5 months ago #5817 by alzander
Replied by alzander on topic Integration with ZOO
1) Facebook Wall Posts from Zoo
You can do this, but it's not an integrated feature. You'd have to do this manually by adding PHP to the correct functions within Zoo. We're working on improved methods and documentation for integration with 3rd party components, but there's obviously a lot of possible combinations out there. For the PHP code and example usage of how to 'silently' post to a user's wall that's already approved status updates for your app, see:
www.sourcecoast.com/extensions/jfbconnec...questions#wall-posts

2) Zoo Avatars
Is this using the profile system built into Zoo, or is the comment box using the Facebook Comments widget? If it's not pulling an avatar into a data field that Zoo holds, you'll have to wait until JFBConnect 3.1 (or shortly thereafter). We're breaking out profile import into a plugin based system in that release, so it should be much easier to import profile fields/avatars into many more components than just CB, JomSocial, and Kunena.

3) For now, again, you'll have to add some code. We're working on a {} tag for login button that will be available in the 3.1 release. For now, you can add the code from below to your page.
www.sourcecoast.com/extensions/jfbconnec...estions#login-button

You will need to wrap the code to check if the user is logged in, like so:
$user = JFactory::getUser();
if ($user->guest)
echo $jfbcLibrary->getLoginButton();

If the code stuff is too confusing, let us know. We are always looking for ways to improve integration, but I hope you can understand, we simply can add it to everything immediately.. We're working on improving that, as we're pretty confident with our login features, the next thing to tackle is more integration points.

Thanks!
The topic has been locked.
Active Subscriptions:

None
13 years 5 months ago #5825 by garrethj
Replied by garrethj on topic Integration with ZOO
Hi

Thanks very much for replying to those questions - much appreciated - my comments below...

1) Facebook Wall Posts from Zoo
You can do this, but it's not an integrated feature. You'd have to do this manually by adding PHP to the correct functions within Zoo. We're working on improved methods and documentation for integration with 3rd party components, but there's obviously a lot of possible combinations out there. For the PHP code and example usage of how to 'silently' post to a user's wall that's already approved status updates for your app, see:
www.sourcecoast.com/extensions/j … wall-posts


I'm going to give that a shot - I'm just not sure WHERE exaclty to post that bit of code within zoo - but I'll get onto their forum.

2) Zoo Avatars
Is this using the profile system built into Zoo, or is the comment box using the Facebook Comments widget? If it's not pulling an avatar into a data field that Zoo holds, you'll have to wait until JFBConnect 3.1 (or shortly thereafter). We're breaking out profile import into a plugin based system in that release, so it should be much easier to import profile fields/avatars into many more components than just CB, JomSocial, and Kunena.


The avatar is coming from the zoo component - even the blank/default one so hopefully this means i can replace it (the code) with FBConnect avatar - would this be replacing the default zoo avatar php with FBconnect php? From what you know about zoo, would this be compatible or would i need possibly modify lots of files?

3) For now, again, you'll have to add some code. We're working on a {} tag for login button that will be available in the 3.1 release. For now, you can add the code from below to your page.
www.sourcecoast.com/extensions/j … gin-button

You will need to wrap the code to check if the user is logged in, like so:
$user = JFactory::getUser();
if ($user->guest)
echo $jfbcLibrary->getLoginButton();


This is fine - the zoo version of facebook connect button is in the same place as i want the JFB one so i will just try find the code and replace it!

Thanks for answering all my questions but i have 1 more!!!

I have your FB login module on a footer div that stays on the bottom of every page - somewhat similar to facebook chat footer. I've modified the Login mod css & php to make it horizontal and looks great EXCEPT when a user logs in normally through joomla... and for example DOESNT want to connect their account with Facebook. this pushes the module height up and expands my footer bar a lot taking up real estate. (

saving me make the module wider again and changing css/php to keep it vertically short, Is there a way of adding an "Ignore", cancel or "No Thanks" button beside the CONNECT button if a user chooses to ignore the option to connect with FB? - if this is manually adding code, that's fine and please let me know

But if not it may be a feature you might consider for next release. Yes, the whole point of the com/mod is to connect through facebook but it also keeps the non-facebookers happy too!

Cheers for all your help

G.
The topic has been locked.
Support Specialist
13 years 5 months ago #5839 by alzander
Replied by alzander on topic Integration with ZOO
* Wall posts
Let us know if you can't find it or if the Zoo people can't help. I'll be totally honest that I'm not super familiar with Zoo yet. It's one of our big exploration areas over the next month for better integration. We'll do what we can to help now, and later, as necessary.

* Avatars
After 3.1, we'll release a Zoo profile import plugin which will pull in the user's avatar from Facebook into Zoo. Unfortunately, we'd need to do more investigation to let you know how to do this right now, and it wouldn't be a simple code-swap.

* Login Module / Reconnections
There isn't a way to let the user get rid of the "Reconnect" button right now. However, as an admin, you can do it in the module parameters by setting the Allow Reconnections to "Prevent". The user would still be able to actually connect their accounts if they're not logged into Joomla and use the Facebook button (either JFBConnect can detect their emails are the same and connect them, if that setting is enabled, or on the Login/Register page they could enter their Joomla credentials).

Adding a link to ignore could be tricky cause a) it would take up more space until someone hit it and b) we'd have to keep track of that setting forever. Very doable, but we'd prefer not too.

Hope the above solution works for you, but if not, we can definitely help you come up with some workaround code to hide that Reconnect button on a per-user or per-session basis.

Thanks!
The topic has been locked.