Showing posts with label Facebook. Show all posts
Showing posts with label Facebook. Show all posts

Tuesday, February 24, 2015

The Facebook 'Invite Friends' button is more useful. It enables users easily refer certain content to their friends, and also helps bloggers with increasing their audience. Today's how-to is all about creating an 'Invite Friends' button, and adding it to your (Blogger) blog.

What is the Invite Friends button?

You typically see this sort of button on Facebook Pages only. Page administrators can invite their friends to like their page. Other people who visit the page, and have liked it can also invite their friends. This helps with generating a new audience for your Facebook page, and hence your website or blog. You can put this button on your blog as well so that people can invite their friends from right there, instead of going to a Facebook page. When a person clicks on the invite friend button, a new pop-up window opens. This allows them to search and select multiple friends of theirs at once. As per Facebook's limit, 50 people can be selected at a time. Clicking on the Send Requests button will send out requests to people on behalf of the sender to like the particular Facebook page.

Demo

Green Button
Blue Button


Adding Invite Friends button to Blogger

This process involves generating a small Facebook app of your own. Go to the Facebook Developer Page, and create a new app. In order to be able to access this page, you need to be registered as a developer.
If you're not already registered as a developer, simply click on the Register button as shown. After confirmation, you will be taken to the Facebook Developers Page.
  • Click on Apps > Create New
  • Enter a name and identifier for your app, and then choose a category
  • Copy your App ID. This will be used later
Now, Copy the Below Code. It is the code for invite button.

<style>
.fbbutton.green{
border-color: #3b6e22 #3b6e22 #2c5115;
color: #fff;
background-color: #69a74e;
background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#75ae5c), to(#67a54b));
background-image: -moz-linear-gradient(#75ae5c, #67a54b);
background-image: -o-linear-gradient(#75ae5c, #67a54b);
background-image: linear-gradient(#75ae5c, #67a54b);
filter: progid:DXImageTransform.Microsoft.gradient(startColorStr='#75ae5c', EndColorStr='#67a54b');
-webkit-box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1), inset 0 1px 0 #98c286;
-moz-box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1), inset 0 1px 0 #98c286;
box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1), inset 0 1px 0 #98c286;
}
.fbbutton.blue {
border-color: #29447e #29447e #1a356e;
color: #fff;
background-color: #5B74A8;
background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#637bad), to(#5872a7));
background-image: -moz-linear-gradient(#637bad, #5872a7);
background-image: -o-linear-gradient(#637bad, #5872a7);
background-image: linear-gradient(#637bad, #5872a7);
filter: progid:DXImageTransform.Microsoft.gradient(startColorStr='#637bad', EndColorStr='#5872a7');
-webkit-box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1), inset 0 1px 0 #8a9cc2;
-moz-box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1), inset 0 1px 0 #8a9cc2;
box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1), inset 0 1px 0 #8a9cc2;
}
.fbbutton{
font-size: 13px;
position: relative;
z-index: 1;
overflow: visible;
display: inline-block;
padding: 0.3em 0.6em 0.375em;
border: 1px solid #999;
border-bottom-color: #888;
margin: 0;
text-decoration: none;
text-align: center;
font: bold 13px/normal 'lucida grande', tahoma, verdana, arial, sans-serif;
white-space: nowrap;
cursor: pointer;
/* outline: none; */
color: #333;
background-color: #eee;
background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#f5f6f6), to(#e4e4e3));
background-image: -moz-linear-gradient(#f5f6f6, #e4e4e3);
background-image: -o-linear-gradient(#f5f6f6, #e4e4e3);
background-image: linear-gradient(#f5f6f6, #e4e4e3);
filter: progid:DXImageTransform.Microsoft.gradient(startColorStr='#f5f6f6', EndColorStr='#e4e4e3');
-webkit-box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1), inset 0 1px 0 #fff;
-moz-box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1), inset 0 1px 0 #fff;
box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1), inset 0 1px 0 #fff;
zoom: 1;
}
</style>
<script src="http://connect.facebook.net/en_US/all.js"></script>
<script>
FB.init({
appId:'Your App ID',
cookie:true,
status:true,
xfbml:true
});

function FacebookInviteFriends()
{
FB.ui({
method: 'apprequests',
message: 'Your Message diaolog'
});
}
</script>
<script type='text/javascript'>
if (top.location!= self.location)
{
top.location = self.location
}
</script>
<div id="fb-root"></div>
<!-- Green Button -->
<button class="fbbutton green" href='#' onclick="FacebookInviteFriends();"> 
Facebook Invite Friends Link
</button>
<!-- Blue Button -->
<button class="fbbutton blue" href='#' onclick="FacebookInviteFriends();"> 
Facebook Invite Friends Link
</button>
  • Now, go to your app page, and then go to settings.
Click on Add a new platform and then click on Website. Enter the URL of your site, and then save your changes. This step ensures access to your app from your site URL.

Wednesday, December 17, 2014

facebook-jquery-likebox

 

[button link="http://demo-mybloggerworld.blogspot.com/2015/01/facebook-static-jquery-likebox-with.html" align="center"]Live Demo[/button]


Hello Friends toady we will show you that how you can add facebook static jquery hover likebox on your blogger or website.

Facebook Static Jquery Likebox with Hover





First of all go to Blogger Dashboard > Layout > Click on add widget. Then select HTML/Javascript. Now paste the following below code on it.
<script src="http://code.jquery.com/jquery-1.11.0.min.js"></script><style type="text/css">.mdfbplikebox span{bottom: 12px;font: 8px "lucida grande",tahoma,verdana,arial,sans-serif;position: absolute;right: 6px;text-align: right;z-index: 99999;}.mdfbplikebox span a{color: #808080;text-decoration:none;}.mdfbplikebox span a:hover{text-decoration:underline;}
/*<![CDATA[*/
#fbplikebox{display: block;padding: 0;z-index: 99999;position: fixed;}
.fbplbadge {background-color:#3B5998;display: block;height: 150px;top: 50%;margin-top: -75px;position: absolute;right: -47px;width: 47px;background-image: url("http://mybloggerworld.net/wp-content/uploads/2014/12/md_vertical-left.png");background-repeat: no-repeat;overflow: hidden;-webkit-border-top-right-radius: 8px;-webkit-border-bottom-right-radius: 8px;-moz-border-radius-topright: 8px;-moz-border-radius-bottomright: 8px;border-top-right-radius: 8px;border-bottom-right-radius: 8px;}
/*]]>*/
</style>
<script type="text/javascript">
/*<![CDATA[*/
(function(md){
md(document).ready(function(){
var $dur = "medium"; // Duration of Animation
md("#fbplikebox").css({left: -250, "top" : 100 })
md("#fbplikebox").hover(function () {
md(this).stop().animate({
left: 0
}, $dur);
}, function () {
md(this).stop().animate({
left: -250
}, $dur);
});
md("#fbplikebox").show();
});
})(jQuery);
/*]]>*/
</script>
<div class="mdfbplikebox">
<div id="fbplikebox" style="display:none;">
<div class="fbplbadge"></div>
<iframe src="http://www.facebook.com/plugins/likebox.php?href=https://www.facebook.com/mybloggerworlds&amp;width=250&amp;height=250&amp;colorscheme=light&amp;show_faces=true&amp;border_color=%23C4C4C4&amp;stream=false&amp;header=false" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:250px; height:250px;background:#F5EBF5;" allowTransparency="true"></iframe><span>
By <a href="http://mybloggerworld.net">My Blogger World</a> / <a href="http://mybloggerworld.net/blogger/facebook-static-jquery-likebox-hover/">+Get This!</a>
</span>
</div>
</div>

 


 Now replace  https://www.facebook.com/mybloggerworlds with your facebook fan page url. After Changing these thing you are done.

Note: If you want to change the color of likebox replace this color code F5EBF5 with the color you want

Friday, December 5, 2014

FB Jquery Popup


How to add Facebook Jquery Pop Like-Box Timer Widget to Blogger



  • Go to Blogger > Layout

  • Click "Add a Widget"

  • Select . HTML/JavaScript

  • Add the following below code on Widget.


<style type='text/css'>
#mbwpopup{
position: fixed;
top:100px;
z-index:9999;
display:none;
padding:0px;
right:600px;
border:10px solid rgba(82, 82, 82, 0.7);
-webkit-background-clip: padding-box; /* for Safari */
background-clip: padding-box; /* for IE9+, Firefox 4+, Opera, Chrome */
-webkit-border-radius:8px 8px 8px 8px;
-moz-border-radius:8px 8px 8px 8px;
border-radius:4px 4px 4px 4px;
width:400px;
height:400px;
overflow:hidden;
}
#mbwpopup span{
font-size:20px !important;
font-weight:bold !important;
}
#mbwpopup h1{
background:#6d84b4 url() 98% no-repeat;
border:1px solid #3b5998 !important;
color:#FFFFFF !important;
font-size:20px !important;
font-weight:700 !important;
padding:5px !important;
margin:0 !important;
font-family:"lucida grande",tahoma,verdana,arial,sans-serif !important;
overflow:hidden !important;
}
.htmlarea{
font-size:12px !important;
font-weight:normal !important;
height:265px !important;
padding:1px !important;
background:#fff !important;
border-bottom:2px solid #ddd;
overflow:hidden !important;
}
#bwfooter{
text-align:left;
background:#F2F2F2 !important;
height:56px !important;
padding:10px 10px 10px 10px !important;
overflow:hidden !important;
}
#bwclose{
float:right;
background-color:#eee !important;
border:1px solid #ccc !important;
color:#111 !important;
font-weight:bold !important;
padding:5px 8px 5px 8px !important;
text-decoration:none !important;
display:inline-block !important;
font-family:"lucida grande",tahoma,verdana,arial,sans-serif !important;
outline:none !important;
position:relative !important;
font-size:18px !important;
margin:1px !important;
}
#bwclose:active{
top:1px;
left:1px;
}
.grabthis{
bottom:80px;
font:8px "lucida grande",tahoma,verdana,arial,sans-serif;
position:absolute;
right:6px;
text-align:right;
z-index: 99999;
}
.grabthis a{
color: #000;
text-decoration:none;
}
.grabthis a:hover{
text-decoration:underline;
}
</style>
<script type='text/javascript'>
jQuery(document).ready(function() {
function mbw_ppopup() {var sec = 10
var timer = setInterval(function() {
$("#bwfooter span").text(sec--);
if (sec == 0) {
$("#mbwpopup").fadeOut("slow");
clearInterval(timer);
}
},1000);
var bwwh = jQuery(window).height();
var bwpph = jQuery("#mbwpopup").height();
var bwfromTop = jQuery(window).scrollTop()+50;
jQuery("#mbwpopup").css({"top":bwfromTop});}
jQuery(window).fadeIn(mbw_ppopup)
.resize(mbw_ppopup)
//alert(jQuery.cookie('sreqshown'));
//var bwww = jQuery(window).width();
//var bwppw = jQuery("#mbwpopup").width();
//var bwleftm = (bwww-bwppw)/2;
var bwleftm = 500;
//var bwwh = jQuery(window).height();
//var bwpph = jQuery("#mbwpopup").height();
//var bwfromTop = (jQuery(window).scrollTop()+bwwh-bwpph) / 2;
jQuery("#mbwpopup").animate({opacity: "1", left: "0" , left: bwleftm}, 0).show();
jQuery("#bwclose").click(function() {
jQuery("#mbwpopup").animate({opacity: "0", left: "-5000000"}, 1000).show();});});
</script>
<div id="mbwpopup">
<h1>Join us on Facebook</h1>
<div class="htmlarea">
<iframe src="//www.facebook.com/plugins/likebox.php?href=https://www.facebook.com/mybloggerworlds&width=400&colorscheme=light&show_faces=true&border_color=%23fff&stream=false&header=false&height=250" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:400px; height:250px;" allowtransparency="true"></iframe>
<div class="grabthis">
By <a href="http://mybloggerworld.net/" target="_blank">My Blogger World</a> / <a href="http://mybloggerworld.net/blogger/facebook-jquery-pop-like-box-timer/" target="_blank">+Get This!</a>
</div>
</div>
<div id="bwfooter">Please wait..<span>10</span> Seconds<a href="#" id="bwclose" onClick="return false;">Close</a>
</div>
</div>
<!-- End popup -->


  •  Replace Facebook url https://www.facebook.com/mybloggerworlds with your Fan Page url.

  • We have add default 10 Sec to Display. If u want to change Display Seconds then Replace 10 with Seconds you want.

Thursday, December 4, 2014

As you know that Facebook has been Update, So today i will show you the new way to create an Facebook App. Facebook give their user to create an app for their website or blog. To create an Facebook app follow the following steps

  • Navigate to Facebook Developers section and login to your Facebook account, if you are not logged in already. This should not be your business account.


login-to-facebook1 (1)

 

  • If you are here (at Facebook Developer section) first time, you will require to “Register as a Developer” (If you have already done this, skip this step and move to step 3). Click “Register as a Developer” link.


register-as-a-developer

Accept the privacy policy

accept-privacy-policy

You may be asked other details as in following picture

 

register-as-developer-2

 

Next, you will be shown a message

register-as-developer-complete

 

After clicking Done, you will be redirected to the Apps page.

  • Click Apps and then click “Add a new app” link.


create-new-app1

  • Select Website


facebook-app-select-website

 

  • Specify the name of your app (You can enter whatever name you like, but it’s recommended to enter your website or company name in this field) and click “Create New Facebook App ID” button


facebook-app-name

 

  • Choose Utilities in Category and click Confirm button


confirm-facebook-app1

 

  • Open your website homepage (at which you have installed the plugin) in browser, click the address bar so that website url gets highlighted, copy this url and paste it in Site URLoption (scroll down the page to see this option). Please make sure that this url includes http:// or https:// (for example: http://mywebsite.com or http://www.mywebsite.com) and click Next button. Leave “Mobile Site URL” option empty.


facebook-app-site-url

 

  • Click Finished in the top menu and then click “Skip to Developer Dashboard” link


facebook-app-developer-dashboard

 

  • Navigate to Settings page from the left pan


settings

 

  • Specify your contact email in “Contact Email” option and Save Changes


facebook-app-contact-email

facebook-app-save-changes

 

  • Navigate to Dashboard page from the left pan


dashboard

 

  • Click the [?] after “This app is in development mode”


developer

  • Click No in front of “Do you want to make this app and all its live features available to the general public?” and slide it to Yes


make-app-live

 

  • Click Confirm in the Take App live popup


confirm

 

  • Navigate to Dashboard (see step 11 above), copy App ID and paste it in the Facebook App ID option of your plugin. Do not forget to Save Changes after configuring all the options on plugin settings page.