I have page which has the url like the following.
http://example.com/?f=chatter
It has three links.
When I click on a link it details page is display. Which has the url like
http://example.com/?f=chatter&aid=6
But this url does not appear in the browser address bar. It displays in a textbox on its details page. The url in address bar remains the same http://example.com/?f=chatter
My page is of .tpl
Now I want to add the facebook like button to the details page which will share the link of that details page which is displaying in the textbox.
But when I click on the facebook like button, it share the link which is in the address bar of the browser.
{$url} this contains the details page url which is displaying in the textbox.
I have used the following code of the facebook like button.
<iframe src="//www.facebook.com/plugins/like.php?href={$url};send=false&layout=standard&width=450&show_faces=false&action=like&colorscheme=light&font&height=35" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:35px;" allowTransparency="true"></iframe>
Where in href I have place the {$url}.
I don't know if this will be useful to you but I'm using a jquery plugin that is unfortunatly not free ($5) called jQuery Social Share Buttons plugin
Although I'm having problems getting the facebook like button to include a popup which allows posting the url to my feed (keep getting 'Unknown RPC service: widget-interactive' error when trying to implement), I was able to get the twitter button to post the url.
Related
I just want to know if its possible to create those signup forms that popups when visitor visits the site?
And could visitors be redirected to another site once they click back or "x" button?
If you can see an html page you can include the javascript code to do that.
The javascript asociated with button click event shoul call window.location.href = "http://yourothersite.com";
I have implemented a Like Button on a page, attempting to allow users to "Recommend" a PDF. The button appears on the page and seems to function correctly. Clicking the button opens the comment box; and a user can enter a comment. However no activity is actually posted on the test user's page. The counter even increments correctly and the "recommend" action is disabled after the test user has clicked it. This status is remembered on reload, and the counter is never reset.
<div class="fb-like" data-href="www.bgsd.com/hockey/stats/2012/
East_Side_Hockey_Fall2012.pdf" data-send="false" data-layout="button_count"
data-width="70" data-show-faces="false" data-action="recommend"></div>
Can this button not be applied to this type of resource (PDF)?
Well the PDF can't possible have the meta tags used by Facebook to display a story about that URL - when you put the URL into Facebook's Debug Tool you'll see.
You probably should/could have pointed the Like plugin at a URL which has a download link (or redirect) to the PDF, not to the PDF URL itself
This is my app page: https://www.facebook.com/pages/When-Biebs-Attack/402350233140999
As you can see, it's an actual "App Page", created from my app control panel. So you would assume it would be linked with the app.
Now here is the (only) site that uses the App ID for a like button: http://cosmati.net/biebsattack/
Not only is the discrepancy weird, but as soon as I added the like button to the page it had 22 likes. I have double checked my App ID in my code. It does line up with my app control panel. I tried both the HTML5 and the XFBML methods.
okay, I don't know why it's doing what it's doing, but I figured out you can link them directly by adding an href tag to the like button and pointing it to the url of your facebook page. For instance, my like button now looks like this:
<fb:like href="https://www.facebook.com/pages/When-Biebs-Attack/402350233140999" send="false" width="450" show_faces="true" font="arial"></fb:like>
And now when I visit my site (http://cosmati.net/biebsattack/), not only do I only see 1 like (mine), but I see links to administer my page and view insights. Kind of neat. Not sure why it doesn't do this by default when I use the App ID, but whatever.
My Facebook Like button does not work for those not logged into Facebook. They press the "Like" button and the login window appears for Facebook. When they enter their information and submit, an HTTP 500 error pops up. I followed the Facebook developer code to put the "Like" button on the page. Any ideas?
http://www.thebleepkidssay.com
This maight be facebook app restriction issue. Try to set peoples age who can see your app, from 18 to 13 8for example
There are a few things you could try - first of all your code is kind of mess. There are two <html> (and there should only be one) tags opened and only one gets closed for example. Also, your using
<fb:like href="http://www.thebleepkidssay.com" send="true" layout="button_count" width="300" show_faces="false"></fb:like>
to call your button. You might try
<div class="fb-like" data-href="http://www.thebleepkidssay.com" data-send="true" data-width="300" data-show-faces="false"></div>
instead (this is the format that is generated if you use http://developers.facebook.com/docs/reference/plugins/like/ to get your button).
I want to have a likebox plugin for my own URL (not a Facebook Page URL)
E.g.
http://www.example.com/product1.html
http://www.example.com/product2.html
I already have opengraph meta data, and user are able to like it, but I want to have likebox kind of plugin showing user faces...is it possible?
Facebook says the Facebook Like Box is only for Facebook pages. You could generate a like button with a show faces option for your website though.