SimpleDude
asked on
Share on Social Network
Hello,
I need to place three icons (FB, Twitter and G+) on a page so the user can share a webpage.
I was able to do it at Twitter, which looks like the simplest one, but I need to do the same at google+ and FB.
The trick is I need to share a URL different than the current one, and add a text. This is because different agents will use this feature.
So for example, if the site is www.mywebsite.com I need to share a short URL as 584.tinyurl.com... but the share button will be placed at www.mywebsite.com
The text to be shared will be something like "Learn how to save up to 40% on your life insurance policy, click here: http://123.url.com"
We did this o twitter, but cant find a way to do it on FB or G+
Any ideas?
I need to place three icons (FB, Twitter and G+) on a page so the user can share a webpage.
I was able to do it at Twitter, which looks like the simplest one, but I need to do the same at google+ and FB.
The trick is I need to share a URL different than the current one, and add a text. This is because different agents will use this feature.
So for example, if the site is www.mywebsite.com I need to share a short URL as 584.tinyurl.com... but the share button will be placed at www.mywebsite.com
The text to be shared will be something like "Learn how to save up to 40% on your life insurance policy, click here: http://123.url.com"
We did this o twitter, but cant find a way to do it on FB or G+
Any ideas?
Try using sharethis https://www.sharethis.com/ it will do a lot of the work for you and even show you some analytics and they have the icons in different formats.
ASKER
I cant, that's ad driven. This is for a customer.
Thanks anyway... weird I didnt get more answer, when I was an EE member yers ago I used to get tons of answers. Is experts exchange dying?
Thanks anyway... weird I didnt get more answer, when I was an EE member yers ago I used to get tons of answers. Is experts exchange dying?
I think that depends on the subject.
I have not done what you are trying to do by using a different url. It does look like you can use <link rel="canonical" ... /> and g+ will take that as the link for the page instead of the canonical URL. https://developers.google.com/+/web/share/
I have not done what you are trying to do by using a different url. It does look like you can use <link rel="canonical" ... /> and g+ will take that as the link for the page instead of the canonical URL. https://developers.google.com/+/web/share/
Facebook... https://developers.facebook.com/docs/plugins/share-button/
Just fill in the url you want and it will generate the code.
Just fill in the url you want and it will generate the code.
<div id="fb-root"></div>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/en_US/all.js#xfbml=1&appId=123abc";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
<div class="fb-share-button" data-href="http://123.url.com" data-type="button"></div>
On an side note, there are some changes in the near future.
http://offers.experts-exchange.com/ExpertsExchange2014ProductRoadmapWebinar.html
http://offers.experts-exchange.com/ExpertsExchange2014ProductRoadmapWebinar.html
ASKER
Thanks for the reply.
I guess what I am looking to do is something similar of what EE has at the left of this screen (FB Share), where I can control the title and content of the sharing. Maybe on a new Popup as they do here?
I guess what I am looking to do is something similar of what EE has at the left of this screen (FB Share), where I can control the title and content of the sharing. Maybe on a new Popup as they do here?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks!