We use the facebook share button in a part of our website. We used to be able to change the text of the button but it seems to be no longer possible.
The code we have right now is:
<a name="fb_share" type="button" share_url="http://<?=$_SERVER["SERVER_NAME"]?><?=$_SERVER["REQUEST_URI"]?>"></a>
We need to modify the Button so say "Share this product" instead of just share.
THanks
The Share button is deprecated, instead you should use the Feed Dialog along with your own custom design of button. Here is an example:
Share this product
Which appears as:
Share this product
As you can see, it's really easy to create and is actually supported, so I highly recommend switching.
Related
I have a div with a link:
<div data-featherlight="test" >
Link
</div>
The lightbox works fine, but when I click the link, it makes a recursive lightbox. I just want the link to pop to a new window. Note, I don't want an ajax call, just a pop to a link on a 3rd party domain.
Thanks for any help,
kevin
Not too sure, you might get closer to what you want by using a iframe? FL will think your link should be done with ajax, so you'll have to specify you want an iframe instead...
I've following code:
<span><small>
<i class="fa fa-heart"></i>56 Likes
</small></span>
which gives like button as :
I've included facebook like button as instructed in:
https://developers.facebook.com/docs/plugins/like-button
But I need same functionality. So that when user clicks on the heart icon it get liked and increases count number.
You need to autorize the user and use og.likes:
https://developers.facebook.com/docs/reference/opengraph/action-type/og.likes
It is not possible to copy the functionality of the Like Button in any other way afaik. You are not allowed to change the appearance of the Like Button anyway:
Don’t obscure or cover elements of social plugins
Source: https://developers.facebook.com/policy/
For my selfhosted Wordpress blog, i wish to add Feedburner email subscription form.
Embed code from feedburner site:
<form action="http://feedburner.google.com/fb/a/mailverify" method="post" target="popupwindow" onsubmit="window.open('http://feedburner.google.com/fb/a/mailverify?uri=[BLOGNAME]', 'popupwindow', 'scrollbars=yes,width=550,height=520');return true">
My issue is, i dont want the popup window to show up. That thing is so 80's stuff.
Instead, is it possible to show the popup contents inline? Using JS or PHP or something?
Check out how div contents change over click here using JS: http://www.willmaster.com/library/web-development/replace-div-content.php
Would be great if something similar could be worked out.
I guess this is easy to do but i have limited knowledge on web designs and php/js/forms.
Thanks in advance.
PS: Please do not suggest plugins. I hate installing plugins unless absolutely necessary.
You can change target="popupwindow" to target="_self" or target="_blank", it can load in current page or go to a new page.
I noticed some facebook company pages like:
http://www.facebook.com/companyname
Can change the persons name to the company name and also add a like button. How does one achieve these two things?
Add a like button to a company page of a URL like this - http://www.facebook.com/companypage
Add a like button on that page?
You need a special account designed for business, you cant just do it to a personal account.
https://www.facebook.com/business/overview
Once you reach enough likes on Facebook you can get your own "short page-link". You only need a few likes (100-200 I think it is).
A like button is already on your page. However you can add an extra tab using HTML and Iframes to a remote document with a like button. The like button is found on Facebook's dev pages.
https://developers.facebook.com/docs/plugins/like-button/
Code in HTML for Like Button
Detailed steps mentioned on the page on how to embed
You can add various styles too and a code will be generated for you
I have a requirement that in a webpage I have multiple block of content which is wrapped inside individual DIV. Each block needs to have a share to facebook button.
Did many researches but couldn't find a solution. Please can anyone give me a suitable code or idea how I can share particular blocks/content wrapped inside a div into facebook.
For e.g.
I have three DIV in my page and each DIV has share button, when user clicks on any of the share button the respective DIV is shared.
Is there any solution to this requirement or whether is it possible to do. Any kind of suggestions are widely accepted.
Check out this HyperArts tutorial on adding a Share Button to an iFrame tab - you use the exact same code for your webpage. You will be using the Facebook JavaScript SDK.
At the end of the tutorial it explains how to modify it to allow for multiple Share buttons on one page. You just need to add a unique identifier for each one.