Search result for 'facebook auto like'
(0.0194699764252 seconds)
15 pages : « First ‹ Prev 1 2 3 4 5 6 7 8 9 10 11 Next › Last»

DiegoSeC/Likes from URL Facebook ( Other)

SELECT  like_count from link_stat  where url="https://example.pe/f/meme/vota/";

This is how you can see likes from a specific url

ryarwood/Facebook Like Box ( HTML)

<div id="fb-root"></div><script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script><fb:like-box href="http://www.facebook.com/BlissSisters" width="330" show_faces="true" border_color="" stream="true" header="true"></fb:like-box>

benhomie/Facebook "Like" Code ( HTML)

<iframe src="http://www.facebook.com/plugins/like.php?href=http://www.domain.com&amp;amp;layout=standard&amp;amp;show-faces=false&amp;amp;width=249&amp;amp;action=like&amp;amp;colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:249px; height:25px"></iframe>

onefastsnail/facebook_like ( PHP)

<?
/**
	BELOW DOCUMENTATION ALLOWS ADDITION OF THE FACEBOOK LIKE FEATURE TO PRODUCT PAGES
*/

// 1. PUT THE FOLLOWING FUNCTIONS IN THE FUNCTIONS.PHP FILE

function curPageURL() {
	$pageURL = 'http';
	if ($_SERVER["HTTPS"] == "on") {$pageURL .= "s";}
	$pageURL .= "://";
	
	if ($_SERVER["SERVER_PORT"] != "80") {
		$pageURL .= $_SERVER["SERVER_NAME"].":".$_SERVER["SERVER_PORT"].$_SERVER["REQUEST_URI"];
	} else {
		$pageURL .= $_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"];
	}
	return $pageURL;
}

function get_item_meta($id){
  if(is_numeric($id) && $id>0){
    $db = new sql();
    $db->query('SELECT * FROM items WHERE id = '.$id.' LIMIT 1');
    
    if($db->num_rows()>0){
      while($data = $db->fetch_array()){
        $meta['name'] = $data['name'];
        $meta['description'] = $data['description'];
      }
      
      $img = new sql();
      $img->query('SELECT * FROM items_images WHERE item_id='.$id.' AND `default`="1"');
      if($img->num_rows()>0){
        $data2 = $img->fetch_array();
        $meta['image'] = $data2['name'];
      }
      
      return $meta;
    }else{
      return false;
    }
  }
}

// 2. PUT THE FOLLOWING CODE IN THE HTML HEAD 

<? if($_REQUEST['id']){?>
	<?$item_data = get_item_meta($_REQUEST['id']);?>
	<meta property="og:title" content="<?=ucwords($item_data['name'])?> at <?=SITE_NAME?>"/>
	<meta property="og:type" content="product"/>
	<?if($item_data['image']!=''){?>
		<meta property="og:image" content="<?=SITE_URL?>/images/products/thumbs/<?=$item_data['image']?>"/>
	<?}else{?>
		<meta property="og:image" content="<?=SITE_URL?>/images/products/unavail_small.jpg"/>
	<?}?>
	<meta property="og:site_name" content="<?=SITE_NAME?>"/>          
	<meta property="og:description" content="<?=strip_tags($item_data['description']);?>"/>
	<meta property="fb:admins" content="100001886918552" />
<? } ?>


// 3. PUT THE FOLLOWING ON THE ITEM PAGE WHERE YOU REQUIRE A FACEBOOK LIKE BUTTON 
//    FACES ARE DISABLED AND COMMENTS ARE ENABLED, FOR OTHER FEATURES VISIT: http://developers.facebook.com/docs/reference/plugins/like/
//	  LAYOUT CAN BE standard button_count or box_count

<iframe src="http://www.facebook.com/plugins/like.php?href=<?= urlencode(curPageURL()); ?>&amp;layout=standard&amp;show_faces=false&amp;width=400&amp;action=like&amp;colorscheme=light&amp;" scrolling="no" frameborder="0" style="none; overflow:hidden; width:320px; height:45px;" allowTransparency="true"></iframe>

drifterz28/RTML and facebook like button ( Lisp)

DIV id mainid
  WHEN AND
         NONEMPTY header
         POSITION element :display-text-title
                  sequence headel
    TAG class WHEN AND
                     EQUALS value1 align
                            value2 :center
                     NOT CALL :yhst-16600815412482-has-price
                "contenttitle-center"
        id headerid
        tag "h1"
      TEXT header

serialk89/FUNCIONES FACEBOOK, PUBLICAR EN EL MURO, ACTUALIZAR STATUS, AUTO PUBLISH ( JavaScript)

// DE La MANO CON LA D ABAJO
function streamPublish(name, description, hrefTitle, hrefLink, userPrompt){
                FB.ui(
                {
                    method: 'stream.publish',
                    message: '',
                    attachment: {
                        name: name,
                        caption: '',
                        description: (description),
                        href: hrefLink
                    },
                    action_links: [
                    { text: hrefTitle, href: hrefLink }
                    ],
                    user_prompt_message: userPrompt
                },
                function(response) {

                });
            }

//PUBLICAR CON MENSAJE

            function publishStream(){
                streamPublish("Stream Publish", 'Thinkdiff.net is AWESOME. I just learned how to develop Iframe+Jquery+Ajax base facebook application development. ', 'Checkout the Tutorial', 'http://wp.me/pr3EW-sv', "Demo Facebook Application Tutorial");
            }

//PUBLICAR AUTOMATICAMENTE
            function auto_publishPost() {
                var publish = {
                    method: 'stream.publish',
                    message: 'is learning how to develop Facebook apps.',
                    picture : 'http://www.takwing.idv.hk/facebook/demoapp_jssdk/img/logo.gif',
                    link : 'http://www.takwing.idv.hk/facebook/demoapp_jssdk/',
                    name: 'This is my demo Facebook application (JS SDK)!',
                    caption: 'Caption of the Post',
                    description: 'It is fun to write Facebook App!',
                    actions : { name : 'Start Learning', link : 'http://www.takwing.idv.hk/tech/fb_dev/index.php'}
                };

                FB.api('/me/feed', 'POST', publish, function(response) {  
                    document.getElementById('confirmMsg').innerHTML = 
                    'A post had just been published into the stream on your wall.';
                });
            };  


// UPDATE ESTATUS 1
function updateStatus(){
                var status  =   document.getElementById('status').value;

                $.ajax({
                    type: "POST",
                    url: "<?php echo $fbconfig['baseUrl'];?>pb_ajax.php",
                    data: "status=" + status,
                    success: function(msg){
                        alert(msg);
                    },
                    error: function(msg){
                        alert(msg);
                    }
                });
            }

//UPDATE ESTATUS 2
            function updateStatusViaJavascriptAPICalling(){
                var status  =   document.getElementById('status').value;
                FB.api('/me/feed', 'post', { message: status }, function(response) {
                    if (!response || response.error) {
                        alert('Ha ocurrido un error');
                    } else {
                        alert('El estado se actualizo correctamente.');
                    }
                });
            }

drifterz28/some facebook like stuff rtml ( Lisp)

"<div id=\"fb-root\"></div><script language=\"javascript\">if(runInitFB) {window.fbAsyncInit = function() {FB.init({appId: \"25966453290\",xfbml: true});};(function() {var e = document.createElement('script'); e.async = true;e.src = document.location.protocol + '//connect.facebook.net/en_US/all.js';document.getElementById('fb-root').appendChild(e);}());}</script><div class=\"fbDiv\"><fb:like show_faces='false' layout='standard' width='300px' href='http://YOURDOMAIN.COM/"

drifterz28/RTML and facebook like button Fin ( Lisp)

DIV id mainid
  WHEN AND
         NONEMPTY header
         POSITION element :display-text-title
                  sequence headel
    TAG class WHEN AND
                     EQUALS value1 align
                            value2 :center
                     NOT CALL :yhst-16600815412482-has-price
                "contenttitle-center"
        id headerid
        tag "h1"
      TEXT header
    WHEN CALL :has-price.
      TEXT 

"<div id=\"fb-root\"></div><script language=\"javascript\">if(runInitFB) {window.fbAsyncInit = function() {FB.init({appId: \"25966453290\",xfbml: true});};(function() {var e = document.createElement('script'); e.async = true;e.src = document.location.protocol + '//connect.facebook.net/en_US/all.js';document.getElementById('fb-root').appendChild(e);}());}</script><div class=\"fbDiv\"><fb:like show_faces='false' layout='standard' width='300px' href='http://YOURDOMAIN.COM/"

      TEXT AS-STRING id
      TEXT 

".html'></fb:like></div>"

  WHEN OR
         NONEMPTY @code
         CALL :yhst-16600815412482-has-price
    CALL :yhst-16600815412482-display-item
      align
      headel
      imgclass
  WHEN OR
         NONEMPTY text
         image
    CALL :yhst-16600815412482-display-paras
      textid
      text
      image
      h
      w
      align
      area
      headel
      imgclass
    LINEBREAK clear :all

webtechdev/auto complete like google suggestion ( PHP)

<link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css" rel="stylesheet" type="text/css"/>
  <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.5/jquery.min.js"></script>
  <script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"></script>
 
  <script>
  $(document).ready(function() {
    $("input#s").autocomplete({
    source: ["Sydney", "Wollongong", "Whyalla", "Warrnambool", "Wagga Wagga", "Traralgon"
             , "Townsville", "Toowoomba", "Tewantin-Noosa", "Taree", "Tamworth", "Sunshine Coast",
             "Sunbury", "Shoalhaven", "Shoalhaven", "Shepparton-Mooroopna", "Roebourne", "Rockhampton",
             "Richmond-Windsor", "Queanbeyan", "Port Macquarie", "Perth" ,
             "Palmerston", "Newcastle", "Mount Isa", "Mount Gambier"]
    });
  });
  /** get enty http://wwp.greenwichmeantime.com/time-zone/australia/city/index.htm **/
  </script>

auto complete code snippet like google suggestions

ala7lam/Like Button on Wordpress: Additional Header code ( HTML)

<meta property="og:title" content="<?php the_title(); ?>"/>
<meta property="og:site_name" content="<?php bloginfo('name'); ?>"/>
<meta property="og:image" content="URL to Post Thumbnail if you are using custom field or remove the line"/>


If you are using a custom-field for posts thumbnails, you may use this (change the name of the custom field, in this case being thumbnail):

<meta property="og:image" content="<?php echo get_post_meta($post->ID, "thumbnail", true); ?>"/>

If you are using Simple Facebook Connect Wordpress plugin, it is better to add this code after changing the og:image value or deleting it. Using this code in your Wordpress Theme header will result in having more meaningful information shown in Facebook profile for anyone clicking the button. Not having this code will result in having every and any liked article show as the same in the visitors Facebook profile. For example, if a visitor likes 4 different articles they will show the same info on his Facebook profile, which is really useless and repititive.

SFLWebDev/Facebook IFrame Tab Resize Fix ( JavaScript)

(function() {
	FB.Canvas.setAutoResize();
	document.body.addEventListener('onresize', 'FB.Canvas.setAutoResize');
	})();

This script will handle any vertical resizing issues with a Facebook IFrame tab application, such as the resizing of the frame when elements expand, such as a Facebook Comments plugin. It uses the "FB.Canvas.setAutoResize" method from the Facebook JavaScript SDK, so that must be initialized with a Facebook Application ID; for more information, see http://developers.facebook.com/docs/reference/javascript/

the_construct/Facebook Fan/Like Gate using PHP ( PHP)

require 'incl/facebook.php';
	 
	$app_id = "316789128373788";
	$app_secret = "54b9e3bdea2cfbc76ff2bc3b0b857741";
	$facebook = new Facebook(array(
		'appId' => $app_id,
		'secret' => $app_secret,
		'cookie' => true
	));
	 
	$signed_request = $facebook->getSignedRequest();
	$like_status = $signed_request["page"]["liked"];
	
	if($like_status){
		header('Location: home.php');
		exit;
	}else{
		echo 'You Dont Like this';
	}

Show and hide content based on whether or not a user has clicked the 'Like' button of an app.

claudiowebdesign/Facebook like notifications with jQuery ( jQuery)

/*
 *  Facebook notifications with jQuery [v1.0]
 *  Distributed under the Do-wathever-the-hell-you-want-with-it License
 *
 *  Web site:   http://claudiobonifazi.com
 *  Blog:       http://claudiobonifazi.com/?p=4
 *  Email:      claudio.bonifazi@gmail.com
 *  Twitter:    @ClaudioBonifazi
 */
(function($){
        $.fn.setPopup = function( time ){
                var el = $(this)
                time = (time===undefined) ? 5000 : time;
                el  .data('hover',false)
                        .data('time',time)
                .find('div')
                        .live('mouseover',function(){
                                el.data('hover',true)
                                $(this).show()
                                clearTimeout( $(this).data('timeout') )
                        }).live('mouseout', function(){
                                el.data('hover',false)
                                var a = setTimeout(function(){
                                        $(this).animate({'opacity':'hide','height':'hide'},'fast',
                                                function(){
                                                        el.find('div:hidden').remove()
                                                })
                                },el.data('time'))
                                $(this).data('timeout',a)
                        })
                el.find('div').find('a:first').live('click',function(e){
                        $(e.target).parent('div').remove()
                        return false
                })
                return el
        }
        $.fn.callPopup = function callPopup(msg){
                var el = $(this)
                msg = (typeof msg != 'object') ? new Array(msg) : msg;
                $.each(msg,function(i,m){
                        el.prepend('<div><a href="#" title="close">X</a>'+m+'</div>')
                        .find('div:first').css({'position':'relative','display':'none'})
                        .animate({'opacity':'show','height':'show'},'slow')
                        var a = setTimeout(function(){
                                if(!el.data('hover'))
                                        el.find('div:first').animate({'opacity':'hide','height':'hide'},'fast',
                                                function(){
                                                        el.find('div:hidden').remove()
                                                })
                        },el.data('time'))
                        $(this).data('timeout',a)
                })
                return el
        }       
})(jQuery)
/*
*  EXAMPLE:
*  jQuery(document).ready(function($){
*               popup = $('#tips')
*               popup.setPopup()
*               $('a').click(function(){
*                       popup.callPopup('You\'ve got a new <a href="#" title="notifications  panel">notification</a>.')
*               return false
*       })
* })
*/

I tried to create a little jQuery method to notify events to the user just as in facebook.

EXAMPLE: http://claudiobonifazi.com/snippets/fblikenotifications/

1- Link this little plugin to your page (or paste it into your files as you wish)

2- add to your page an empty element (a div or similar) and on page load call $('thatdiv').setPopup()

3- Set that element to position:fixed and position it where you like (in this page it has left:50px and bottom:50px)

4- Whenever an event requires the appearing of one of those little popups, do $('thatdiv').callPopup('html content to place inside it')

5- For styling read the demo page's source as a guideline

shadow_d2/Facebook Like-Box Custom CSS ( JavaScript)

<script type="text/javascript" src="http://static.ak.connect.facebook.com/js/api_lib/v0.4/FeatureLoader.js.php/en_US"></script>
<script type="text/javascript">FB.init("");</script>
<fb:fan profile_id="[YOUR_ID]" stream="0" connections="10" width="300px" height="200px" header="0" logobar="0"   css="[CSS_URL]"></fb:fan>

Exibir a caixa de like customizada com css.

jkdreaming/Easy Facebook Like button from designer snacks ( JavaScript)

<script>function fb_like() {
url=location.href;
title=document.title;
window.open('http://www.facebook.com/sharer.php?u='+encodeURIComponent(url)+'&t='+encodeURIComponent(title),'sharer','toolbar=0,status=0,width=626,height=436');
return false;}</script>

<a href="http://www.facebook.com/share.php?u=URL-TO-SHARE" onclick="return fb_like()" target="_blank">Custom Image Here</a>

Just add an image... try it.