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

ajbatac/Facebook "Like" Button on Blogger ( JavaScript)

<script language="javascript">
fb_like = &amp;quot;http://www.facebook.com/plugins/like.php?href=<b:if cond='data:blog.url'><data:post.url/></b:if>&amp;quot;;
document.write(&amp;quot;<iframe scrolling='no' frameborder='0' allowTransparency='true' style='border:none; margin:10px 0 0 0; overflow:hidden; width:450px; height:auto;' allowtransparency='true' src='&amp;quot;+ fb_like +&amp;quot;'/>&amp;quot;);
</script>

silentpro/Facebook Likes ( Other)

Logged user likes
$my_likes = $facebook->api('/me/likes');
					debug($my_likes);

kwanhon/Facebook Force User to Like Overlay ( HTML)

<fb:visible-to-connection>
<fb:else>
<div id="msg" style="background:url( http://www.png );	position:absolute; top:0px; left:0px; width:520px; height:993px; z-index:100;">
<div id="msg-txt" style="background-image: url(http://www.png ); background-repeat: no-repeat; width:437px; height:47px; position:relative; margin:0 auto;	margin-top:272px; z-index:1001;"></div>
</div>
</fb:else>
</fb:visible-to-connection>

laurentzziu/Facebook Like Button in Wordpress ( PHP)

<iframe src="http://www.facebook.com/plugins/like.php?href=<?php echo urlencode(get_permalink($post->ID)); ?>&amp;amp;layout=standard&amp;amp;show_faces=false&amp;amp;width=450&amp;amp;action=like&amp;amp;colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:450px; height:25px"></iframe>

thesmu/Facebook Like Button ( Other)

<iframe id="flike" 

src="http://www.facebook.com/plugins/like.php?href={Permalink}&amp;amp;layout=button_count&amp;amp;show_fa

ces=true&amp;amp;width=86&amp;amp;action=like&amp;amp;font=arial&amp;amp;colorscheme=light&amp;amp;height=21" 

scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:86px; height:21px;" 

allowTransparency="true"></iframe>

from tumblr

BenJD/Subscribe to Facebook Like Events ( JavaScript)

FB.Event.subscribe('edge.create', function(response) {
                  //do something when a user clicks like button
                });

gafitescu/Logged user likes ( PHP)

Logged user likes
$my_likes = $facebook->api('/me/likes');
					debug($my_likes);

razvan/ading links and facebook like button to showit slideshows ( HTML)

<!-- FB Like button and Links start here--> 
  
  <style type="text/css"> 
  #menu {
	width:800px; /* this is the width of your slideshow ~ change accordingly */
	margin:20px auto 10px; /* 20px is the margin from top of the page to menu and 10 px from the menu to the slideshow ~ change it if you want to */
	position:relative;
	height:40px;
	}
  #menu ul {display:inline;width:500px;position:absolute;top:0px;right:110px;}
  #menu ul li {display:block;float:right;margin-left:20px;}
  #menu ul li a {text-decoration:none;color:#000;text-transform:uppercase;color:#131811;font-size:10.5px;font-family: Helvetica, Arial, sans-serif;font-weight: 400;letter-spacing:normal;}
  #menu ul li a:hover {text-decoration:underline;}
  .fb-like {position:absolute;right:0px;top:6px;width:90px;}
  .logo {
	padding:0;
	margin:0;
	height:40px; /* height of the logo */
	width:54px; /* width of the logo */
	}
  </style> 
    
	<!-- added menu links and fb like button --> 

  	<div id="menu"> 
    	<div class="logo"><img src="logo.jpg"></div> 
		<div class="fb-like"> 
			<script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script><fb:like href="http://www.facebook.com/RazvanPhotography" layout="button_count" width="90"></fb:like> 
		</div> 
		<ul> 
			<li><a href="http://razvanphotography.com/">Blog</a></li> 
			<li><a href="http://razvanphotography.com/portfolio">Portfolio</a></li> 
			<li><a href="http://razvanphotography.com/contact">Contact</a></li> 
		<ul> 
  </div> 
  
   <!-- this is the call for the FB plugin. It is better to have it at the end of the page, just before the body closing tag --> 
  
  <div id="fb-root"></div> 
<script> 
  window.fbAsyncInit = function() {
    FB.init({appId: 'your app id', status: true, cookie: true,
             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> 
 
  
  <!-- end of facebook plugin call --> 
  
  
  <!-- FB Like button and Links end here-->

jntu_gnec/Facebook Like Box CSS Layout Design ( CSS)

HTML:

<div class="wrapper">
<div class="inner">
<div class="ribbon-wrapper-green">
<div class="ribbon-green">
Facebook</div>
</div>
<center><iframe src="//www.facebook.com/plugins/likebox.php?href=http%3A%2F%2Fwww.facebook.com%2Fmobilesforum&amp;width=240&amp;height=335&amp;show_faces=true&amp;colorscheme=light&amp;stream=false&amp;border_color&amp;header=true&amp;appId=713020622172524" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:240px; height:335px;" allowTransparency="true"></iframe></center>
  </div>
</div>

CSS:
 .wrapper {padding:5px;
    margin: 50px auto;
  width: 276px;
  height: 360px;
  border-radius: 0px;
  position: relative;
  z-index: 90;
background:#eee;background-image:-moz-linear-gradient(top, #fff, #eee);background-image:-ms-linear-gradient(top, #fff, #eee);background-image:-o-linear-gradient( top, #fff, #eee);background-image:-webkit-gradient(linear, left top, left bottom, from(#fff), to(#eee));background-image:-webkit-linear-gradient(top, #fff, #eee);background-image:linear-gradient(top, #fff, #eee);border:1px
solid #ddd;-moz-border-radius:5px;-webkit-border-radius:5px;border-radius:5px;-moz-box-shadow:0 1px 0 #9a9a9a;-webkit-box-shadow:0 1px 0 #9a9a9a;box-shadow:0 1px 0 #9a9a9a;padding:10px;
}
.inner  {border:1px dashed #ccc;padding:0.5em;-moz-box-shadow:0 0 0 1px #fff;-webkit-box-shadow:0 0 0 1px #fff;box-shadow:0 0 0 1px #fff}
 
.ribbon-wrapper-green {
  width: 85px;
  height: 88px;
  overflow: hidden;
  position: absolute;
  top: -3px;
  right: -3px;
}
 
.ribbon-green {
  font: bold 15px Sans-Serif;
  color: #333;
  text-align: center;
  text-shadow: rgba(255,255,255,0.5) 0px 1px 0px;
  -webkit-transform: rotate(45deg);
  -moz-transform:    rotate(45deg);
  -ms-transform:     rotate(45deg);
  -o-transform:      rotate(45deg);
  position: relative;
  padding: 7px 0;
  left: -5px;
  top: 15px;
  width: 120px;
  background-color: #306EFF;
  background-image: -webkit-gradient(linear, left top, left bottom, from(#306EFF), to(#3BB9FF));
  background-image: -webkit-linear-gradient(top, #306EFF, #3BB9FF);
  background-image:    -moz-linear-gradient(top, #306EFF, #3BB9FF);
  background-image:     -ms-linear-gradient(top, #306EFF, #3BB9FF);
  background-image:      -o-linear-gradient(top, #306EFF, #3BB9FF);
 
  color: #fff;
  -webkit-box-shadow: 0px 0px 3px rgba(0,0,0,0.3);
  -moz-box-shadow:    0px 0px 3px rgba(0,0,0,0.3);
  box-shadow:         0px 0px 3px rgba(0,0,0,0.3);
}
 
.ribbon-green:before, .ribbon-green:after {
  content: "";
  border-top:   3px solid #6e8900;
  border-left:  3px solid transparent;
  border-right: 3px solid transparent;
  position:absolute;
  bottom: -3px;
}
 
.ribbon-green:before {
  left: 0;
}
.ribbon-green:after {
  right: 0;
}

Demo Image http://i.imgur.com/f7o3Flr.png

thiagotargino/Like/Dislike Fanpages Facebook ( PHP)

<?php
$signed_request = $_REQUEST["signed_request"];

list($encoded_sig, $payload) = explode('.', $signed_request, 2); 
$data = json_decode(base64_decode(strtr($payload, '-_', '+/')), true);
// var_dump($data);die();
$pageLiked = $data['page']['liked'];
if($pageLiked){
	header('Location: like-on.html');
}
else{
	header('Location: like-off.html');
}
?>

Redirecionamento Like/Dislike para Fanpages do Facebook.

MonioDesign/Facebook Like Box IFrame fix ( CSS)

CSS

#fbcontainer{
overflow:hidden; 
width:289px; 
height:425px
}

#fbiframe{
border:none; 
overflow:hidden; 
width:292px; 
height:427px; 
position:relative; 
margin-left:-2px; 
margin-top:-2px;
}



HTML

<div id=fbcontainer>

<iframe id=fbiframe src="http://www.facebook.com/plugins/likebox.php?href=http%3A%2F%2Fwww.facebook.com%2Fplatform&amp;amp;width=292&amp;amp;colorscheme=dark&amp;amp;show_faces=true&amp;amp;stream=true&amp;amp;header=true&amp;amp;height=427" scrolling="no" frameborder="0" 
allowTransparency="true"></iframe>

</div>

The IFramed Like Box widget that Facebook supplies automatically puts on a recessed border which seemingly cannot be removed by the usual 'border=0' or 'border:none'. This is not noticeable on the 'light' version but definitely on the 'dark' version. To solve this we first need to wrap the IFrame in a DIV 3px narrower and 2px shorter than the iframe (size of the border widths) making sure to set any overflow to hidden. Then set the position of the iframe to 'relative' and nudge it 2px to the left and up.

dtbaker/Get the number of Facebook Likes using PHP ( PHP)

<?php
// the url to check how many likes
$url = 'http://www.likewizard.com/like-67';
// build the facebook query
$fburl = "http://api.facebook.com/method/fql.query?query=select%20like_count%20from%20link_stat%20where%20url='$url'&amp;format=atom";
// grab the atom dump via facebook api url call above
$ch = curl_init($fburl); // url for page
curl_setopt($ch,CURLOPT_RETURNTRANSFER,true);
$atom_data = curl_exec($ch);
// it returns something like this:
/* <fql_query_response xmlns="http://api.facebook.com/1.0/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" list="true"> 
  <link_stat> 
    <like_count>9</like_count> 
  </link_stat> 
</fql_query_response>  */
// grab the like count out, i hate dom parsing, so just use regex:

preg_match('#like_count>(\d+)<#',$atom_data,$matches);
$like_count = $matches[1]; 
echo "The URL $url has $like_count likes on facebook";



// OPTION 2 >>> keeping it to a 1 liner:
$data = json_decode(file_get_contents("http://api.facebook.com/method/fql.query?query=select%20like_count%20from%20link_stat%20where%20url='$url'&amp;format=json"));
echo "The URL $url has " . $data[0]->like_count . " likes on facebook";

?>

Use the facebook api to grab how many \\'likes\\' a url has had.

erikportin/Check if user liked page | PHP | Facebook ( PHP)

<?php
$session = $facebook->getSession();

$user = $facebook->getUser();
$page = 'PAGEID';

// Session based API call.
if ($session) {
  try {
$likeID = $facebook->api(array( 'method' => 'fql.query', 'query' =>
'SELECT target_id FROM connection WHERE source_id =' . $user . 'AND target_id =' .$page ));

if ( empty($likeID) ) {
// user has NOT Liked the page
echo "Like my page!";

} else {
	
// user HAS Liked the page
echo "Thank you for liking my page";

}
  } catch (FacebookApiException $e) {
    error_log($e);
  }
}
?>

indianocean/Check if app is liked on Facebook without requesting permission ( Java)

public boolean isLikedOnFacebook( String signedRequest ) throws IOException, JsonException
   {
      String payload = signedRequest.split( "\\." )[ 1 ];
      String replaced1 = payload.replaceAll( "-", "+" );
      String replaced2 = replaced1.replaceAll( "_", "/" );
      BASE64Decoder decoder = new BASE64Decoder();
      byte[] decodedBytes = null;
      decodedBytes = decoder.decodeBuffer( replaced2 );
      String decodedString = new String( decodedBytes );
      JsonObject jsonObject = new JsonObject( decodedString );
      if( jsonObject.getJsonObject( "page" ).get( "liked" ).equals( "true" ) )
      {
         return true;
      }
      else
      {
         return false;
      }
   }

depiction/Facebook iFrame Auto Height ( JavaScript)

<script src="http://connect.facebook.net/en_US/all.js" type="text/javascript"></script>
    <script type="text/javascript">
      FB.init({
        appId  : 'APP ID GOES HERE',
        status : true, // check login status
        cookie : true, // enable cookies to allow the server to access the session
        xfbml  : false  // parse XFBML
      });
      FB.Canvas.setAutoResize( 100 );
    </script>



[CODING HERE]


<script type="text/javascript">
      FB.Canvas.setAutoResize( 100 );
    </script>

</body>