Topic-icon Open Graph Plugin for Easy Discuss

Active Subscriptions:

None
9 years 1 week ago #52701 by Sunnyside
Hi Alex,

Thank you for taking time out on a Saturday. I have elevated the credentials to superuser.

Regarding jquery not loading, Both jquery.min.js & boostrap.js are loading, if you see page source of home page around line 111 its there
<script src="/stage/templates/MYTEMPLATE/javascript/jquery.min.js"></script>
<script src="maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js">

Also want to inform you that now facebook login has started functioning after i enabled load jquery/bootrap in jfbc admin panel, but the script is 150kb and i would rather rely on bootstrap & jquery loaded by my template.

But now facebook likes from jreview pages has dissapeared and duplicate meta tags are still there.

Regarding Twitter login, i'm a little confused regarding its functionality. Would it not allow a user to login with single click?
Does this mean, that if the user uses twitter to register on site and then after a few days revisits the site and he will not be able to login using twitter button?

regards
The topic has been locked.
Support Specialist
9 years 1 week ago #52704 by alzander
Ahh.. I missed those inclusions. The problem with them is that they are at the very bottom of the head section. Many other scripts, including JFBConnect, require those libraries to be loaded before our script files are loaded. Can you move those two lines much higher in the head section? That should fix that problem.

Regarding Twitter login, i'm a little confused regarding its functionality. Would it not allow a user to login with single click?

Correct. There's 2 networks (Twitter and another less commonly used one that I can't think of right now) that don't return an email address. In that case, the user will have to supply it. You can configure JFBConnect to only ask for the email address, so it's a very quick form page instead of username, name, password, etc. There's no way we can get around that step though if no email is coming back.

Does this mean, that if the user uses twitter to register on site and then after a few days revisits the site and he will not be able to login using twitter button?

Of course not. If a user registers with Twitter, he can always come back and login with Twitter. During registration, Twitter sends a unique ID for the user that we store in the database. We associate that ID with the Joomla user on your site and can always log the proper user in. The Twitter user on your site can associate with different social networks still and should behave the exact same as every other account.

I hope that helps, but if you need anything else, just let me know.

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

None
9 years 1 week ago #52720 by Sunnyside
Hi Alex,

Sorry to ask a stupid question, but my knowledge is very limited on this.

Ahh.. I missed those inclusions. The problem with them is that they are at the very bottom of the head section. Many other scripts, including JFBConnect, require those libraries to be loaded before our script files are loaded. Can you move those two lines much higher in the head section? That should fix that problem.


The head section of my templates index.php is as below:
<head>
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=3.0, user-scalable=yes"/>
    <meta name="HandheldFriendly" content="true" />
    <meta name="apple-mobile-web-app-capable" content="YES" />
    <meta http-equiv="X-UA-Compatible" content="IE=8" />
   
    <jdoc:include type="head" />
 <script src="<?php echo $this->baseurl; ?>/templates/<?php echo $this->template; ?>/javascript/jquery.min.js"></script>   
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script>
	<script type="text/javascript">
		jQuery(window).scroll(function() {
			var scrollp = jQuery(window).scrollTop();
			if (scrollp >= 230) {
				jQuery(".navbar-default").addClass("smallheader");	}
			if(scrollp <= 230){
				jQuery(".navbar-default").removeClass("smallheader");}});
</script>
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
  <script type='text/javascript' src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
  <script type='text/javascript' src="//cdnjs.cloudflare.com/ajax/libs/respond.js/1.4.2/respond.js"></script>
<![endif]-->
 
    <!--[if lt IE 11]>
        <script src="//oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
        <script src="//oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>

        <link href="//netdna.bootstrapcdn.com/respond-proxy.html" id="respond-proxy" rel="respond-proxy">
		<link href="<?php echo $this->baseurl; ?>/templates/<?php echo $this->template; ?>/javascript/respond.proxy.gif" id="respond-redirect" rel="respond-redirect">
        <script src="<?php echo $this->baseurl; ?>/templates/<?php echo $this->template; ?>/javascript/respond.proxy.js"></script>
    <![endif]-->
    <!--[if IE 8]>
          <link href="<?php echo $this->baseurl; ?>/templates/<?php echo $this->template; ?>/css/ie8.css" rel="stylesheet" type="text/css">
        <![endif]-->
    </head>
The topic has been locked.
Support Specialist
9 years 6 days ago #52729 by alzander
Your template has:
<jdoc:include type="head" /> 
<script src="<?php echo $this->baseurl; ?>/templates/<?php echo $this->template; ?>/javascript/jquery.min.js"></script>    
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script>
Change the ordering of those elements like:
<script src="<?php echo $this->baseurl; ?>/templates/<?php echo $this->template; ?>/javascript/jquery.min.js"></script>    
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script> 
<jdoc:include type="head" />
The last line is where all Javascript from extensions will be loaded. You want those to be loaded after the jQuery and Bootstrap inclusions.

I hope that helps, but if you need anything else, just let us know.

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

None
8 years 11 months ago #53224 by Sunnyside
Hi Alex,

I've mostly completed by social login features with the help of JFBC.

Now i want to move on to integrate my site content with social networks. Starting with easy discuss comments integration with Facebook, Google + & Twitter.

Is there any way the replies to ES discussions can be posted onto a users facebook/Google & twitter page
and also on my sites facebook page/group, my twitter handle & my sites G+ page?

regards
The topic has been locked.
Support Specialist
8 years 11 months ago #53231 by alzander

Is there any way the replies to ES discussions can be posted onto a users facebook/Google & twitter page
and also on my sites facebook page/group, my twitter handle & my sites G+ page?

We don't have any built-in support to do what you're looking for. We have it on our to-do list to add integration for EasyDiscuss in the future for Open Graph Actions. With that, an activity entry will be put into the user's Facebook Timeline, which could show up in various places within Facebook.

With that said, we don't have plans to automatically post back to a user's feed when the reply to a topic. That becomes very difficult to do automatically because a) some users don't want that to show up in their feed(s) and b) the reply may not make any sense on it's own. Something like "Thanks!" is a great reply, but in a users feed, wouldn't make any sense without context.

Finally, all social network sharing works on a URL basis. Because of that, there's no way to show just the reply in a user's feed. You'd only be able to show the topic.. which is why Open Graph Actions work well. An entry like "John just replied to the topic ABC on mysite.com". Sort of like listening to music is a good Action, "John just listened to ABC on Spotify".

I hope that helps clarify what can be done vs what we shouldn't do.

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

None
8 years 11 months ago #53243 by Sunnyside

alzander wrote: We don't have an Open Graph plugin for EasyDiscuss. It's something we have on our to-do list, but I don't have a timeframe on when that would be done.

In the meantime, you can create a custom button that would display on your EasyDiscuss pages which the user can click to post something like "I read this" or "I like this" or "I posted this". It wouldn't be automatic whenever a user posts, but it's something you can start with. If interested, let us know, and I can point you in the right direction on how to do that. Using an explicit button that the user has to click also increases the credibility of the post that is created in their Timeline as Facebook will give it more weight since the user specifically went out of their way to create it.

Thanks,
Alex


Hi Alex,

To explain further, my site is a Stock market related sites, and easy discuss is on mysite is a fixed forum i.e. only preconfigured topics can be commented on, it behaves more like an article with comments (Every listed stock is a topic)

So now when a user submits a comment (discussion), i want his facebook page to show "User commented on IBM on MYSITE.COM" and also on twitter page.
Secondly i want these comments also to reflect on my own facebook page/group & twitter handle.

I get your point on "Automatic posting" and i can agree to it, but as per your above quote, we can have a preselected radio button saying "Broadcast your Comment" on the ES comment form. (Just like in face book comments functionality) attaching a screenshot for reference.

regards
File Attachment:
The topic has been locked.
Support Specialist
8 years 11 months ago #53250 by alzander
We don't support any of what you're asking for right now. For posting back to a user's wall with a message, it's likely something we'd never support. It'd be difficult to properly add the button(s) for a user to configure which social networks they want to post to in a seamless way that works with all templates.

We do plan to add Open Graph Action support for EasyDiscuss which could automatically post the message to their activity log, which can then show in their Timeline or the friend ticker or various other places. I don't have an ETA on when that would be available.

For each social network, its a little more complex because each one has a "Can Post on My Behalf" type permission which would need to be set by the user already. We automatically request that permission in a few cases depending on how you have JFBConnect configured for Channels and/or profile import abilities. It's not something we request from all users though (which would be required if you want to post the comment to their feed), and would likely decrease your registration rate if we tried to.

I hope that helps explain a bit more, but please let us know any feedback you have. Any of the above can be implemented if you have a developer, and we'd be happy to point them in the right direction. It would take a bit of work though and not just a line of code here or there.

Thanks,
Alex
The topic has been locked.