Topic-icon linkedin share button is missing

Support Specialist
10 years 2 months ago #57575 by alzander
You're right :) There is a bug in a code. LinkedIn changed how their behavior and we shouldn't be including a blank API key if none is set. It's a minor code change to fix, if you're up for trying.

In the /components/com_jfbconnect/libraries/provider/linkedin.php file, around line 122, you'll see:
'<script type="text/javascript">' .
                $initJs .
                "</script>";
Simply remove that middle line so it looks like:
'<script type="text/javascript">' .
                "</script>";
Setting the Javascript API domain should have fixed things. That setting is necessary for some of the other social widgets from LinkedIn to function at all. The Share button can work without an API key though.. so, if you aren't using social login with LinkedIn and don't need to use the other LinkedIn widgets, I'd just remove the key and make that code change.

We'll make an update in our next release to properly detect if no API key is set.

I hope that helps, but if not, just let us know and we'll get you going.

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

None
10 years 2 months ago #57577 by frozange
btw with sh404 I dont even have to create an app, share button works right away...
The topic has been locked.
Support Specialist
10 years 2 months ago #57585 by alzander
Let us know how the above code change works for you. We're planning to include a similar change in our next release.

Regarding sh404SEF, you're correct that you don't have to create an App. You don't need to for JFBConnect either if all you want is to use the Share button. The App keys are for additional features that JFBConnect provides.

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

None
10 years 2 months ago #57591 by frozange
if I only wanted linekedin share you are right I would not have buy it. anyway it does not work and I really need to share our articles on linkedin. May I suggest to check my website ? I have secret keys, javascript domains, live, etc. There is nothing else I can do.
The topic has been locked.
Support Specialist
10 years 2 months ago #57598 by alzander
Can you send admin credentials for Joomla and FTP access to your site? There's something going on with the share button that I can't quite determine. It's not something we've seen before, but I would like to investigate it further.

To send credentials, please use the mail icon under my name to the left to send a private message.

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

None
10 years 2 months ago #57633 by frozange
when will you have time to look at that issue? I really, really need that linkedin share button... thanks.
The topic has been locked.
Support Specialist
10 years 2 months ago #57643 by alzander
I'm at a loss for what's happening with your page right now. I just modified some of our code so that it generates *the exact* output that the LinkedIn Share Button configuration tool generates. I placed that code in your site, and it still doesn't work. Feel free to test/check yourself. I was testing on loisir/culture/saint-sebastien-interview-avec-une-icone-sexy If you open the HTML and search for "IN/Share", you'll see the block of code, and it's identical to what LinkedIn suggests.

As for sh404SEF, I wasn't able to determine how to enable their social buttons. If you can tell me what I should do, and where I should look, I'd love to see what their LinkedIn share code looks like so I can see what the difference is.

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

None
10 years 2 months ago #57650 by frozange
it's listed in plugin, you just have to enable it. Please be aware I also use easysocial and the linkedin share button works as well, but it's not real plugin: first I clic on link then I have all social links in a popup, after that it works.
The topic has been locked.
Active Subscriptions:

None
10 years 2 months ago #57651 by frozange
I enabled sh404 and it works. funny thing, it's displayed top and bottom. that means it enables your own code in some way.
The topic has been locked.
Support Specialist
10 years 2 months ago #57652 by alzander
I tried enabling just the "sh404 Social Plugins" or something like that, and nothing happened. Are there other sh404 plugins that need to be enabled as well? Definitely interested to see the code they are including to get things to work.

Thanks,
Alex
The topic has been locked.