How To Add Facebook Invite Friends Button To Blogger?
Social bookmarking buttons are very commonly seen on blogs, and there are any number of widgets that will give you a ton of all the common buttons, such as Facebook Like, Twitter Tweet, Google +1, and so on. The Facebook 'Invite Friends' button is different in the sense that it isn't a bookmarking button. It is something much 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.
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, take a look at the following code. It is the code for our button, but not quite ready yet. All you have to do is, replace the ID given in this code with your own (given in bold text). You can change the other text in bold as well with your own customized message. And of course, you can customize the CSS styling.
<style>
.MBT-FB a
font-family: tahoma, verdana, arial, sans-serif !important;
font-weight:bold !important;
font-size:12px !important;
width:150px !important;
border:solid #29447e 1px !important;
border-bottom:solid #29447e 1px !important;
cursor:pointer !important;
padding:6px 6px 6px 6px !important;
background-color:#5c75a9 !important;
border-top:solid #8a9cc2 1px !important;
text-align:center !important;
color:#fff !important;
text-decoration:none ! important;
.MBT-FB a:active
background-color:#4f6aa3 !important;
</style>
<script src='http://connect.facebook.net/en_US/all.js'></script>
<script>
FB.init (
appId:'412074162260996',
cookie:true,
status:true,
xfbml:true
);
function FacebookInviteFriends ()
FB.ui (
method: 'apprequests',
message: 'Invite your friends'
);
</script>
<div id='fb-root'></div>
<span class='MBT-FB'>
<a href='#' onclick='FacebookInviteFriends();'>Invite your friends</a>
</span>
<script type='text/javascript'>
if (top.location != self.location)
top.location = self.location
</script>
- 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.
You're now all done! You can add the code given above anywhere on your blog! Check out this demo button below!
FB.init (
appId:'412074162260996',
cookie:true,
status:true,
xfbml:true
);
function FacebookInviteFriends ()
FB.ui (
method: 'apprequests',
message: 'Invite your friends'
);
Invite your friends
if (top.location != self.location)
top.location = self.location
Facing problems? Please feel free to ask in the comments section below. Hope this post helped. Cheers :)
25
comments
PLEASE NOTE:
We have Zero Tolerance to Spam.
Chessy Comments and Comments with
'Links'
will be deleted immediately upon our review.
BLOG_CMT_createIframe('https://www.blogger.com/rpc_relay.html');
(function() {
var items = ['id': '8544239822674796133', 'body': 'Realy nice working on mah blog x3cbr /x3ehttp://www.tricksteaching.com', 'timestamp': '1391309936327', 'permalink': 'https://www.mybloggertricks.com/2014/02/add-facebook-invite-friends-button-to-blogger.html?showCommentx3d1391309936327#c8544239822674796133', 'author': 'name': 'Anonymous', 'avatarUrl': '//img1.blogblog.com/img/blank.gif', 'profileUrl': '', 'displayTime': 'Feb 2, 2014, 7:58:00 AM', 'deleteclass': 'item-control blog-admin pid-1886596132', 'id': '3400523851548566336', 'body': 'Thanks for this awesome tricks.x3cbr /x3eWatch on my blog : http://www.trickytricks4u.com', 'timestamp': '1391313649895', 'permalink': 'https://www.mybloggertricks.com/2014/02/add-facebook-invite-friends-button-to-blogger.html?showCommentx3d1391313649895#c3400523851548566336', 'author': 'name': 'krunal shah', 'avatarUrl': '//lh3.googleusercontent.com/-JXjVJJlD61Y/AAAAAAAAAAI/AAAAAAAABBE/Do9oRcxqPpI/s35-c/photo.jpg', 'profileUrl': 'https://www.blogger.com/profile/14889282239760580370', 'displayTime': 'Feb 2, 2014, 9:00:00 AM', 'deleteclass': 'item-control blog-admin pid-445172331', 'id': '7165657646097154640', 'body': '@Qasim Zaib Just another awesome tutorial from You .x3cbr /x3eReally Love MBTx3cbr /x3ex3cbr /x3eregards,x3cbr /x3ewww.codingmagazine.netx3cbr /x3ex3cbr /x3e', 'timestamp': '1391326273812', 'permalink': 'https://www.mybloggertricks.com/2014/02/add-facebook-invite-friends-button-to-blogger.html?showCommentx3d1391326273812#c7165657646097154640', 'author': 'name': 'Sarada prasad', 'avatarUrl': '//lh3.googleusercontent.com/-som1aXwnlX0/AAAAAAAAAAI/AAAAAAAACU4/YZhGY1Z7Cag/s35-c/photo.jpg', 'profileUrl': 'https://www.blogger.com/profile/18077089626802343862', 'displayTime': 'Feb 2, 2014, 12:31:00 PM', 'deleteclass': 'item-control blog-admin pid-758974046', 'id': '8863545207112518587', 'parentId': '7165657646097154640', 'body': 'Thank you :)', 'timestamp': '1391334181018', 'permalink': 'https://www.mybloggertricks.com/2014/02/add-facebook-invite-friends-button-to-blogger.html?showCommentx3d1391334181018#c8863545207112518587', 'author': 'name': 'Qasim Zaib', 'avatarUrl': '//lh5.googleusercontent.com/-LLmVPWl1q94/AAAAAAAAAAI/AAAAAAAADOk/T-PgU6Z58ko/s35-c/photo.jpg', 'profileUrl': 'https://www.blogger.com/profile/08938578237404814539', 'displayTime': 'Feb 2, 2014, 2:43:00 PM', 'deleteclass': 'item-control blog-admin pid-2130658467', 'id': '3615485695980220082', 'body': 'Sir in your site i read a topic Add Adsenses After More Tag .x3cbr /x3eMy question is can i add Bidvertiser or some others website ads right after more tag.x3cbr /x3ePlease tell me as soon as possible.', 'timestamp': '1391350928070', 'permalink': 'https://www.mybloggertricks.com/2014/02/add-facebook-invite-friends-button-to-blogger.html?showCommentx3d1391350928070#c3615485695980220082', 'author': 'name': 'H.Wajid Ali', 'avatarUrl': '//lh4.googleusercontent.com/-qjltmJvXAnU/AAAAAAAAAAI/AAAAAAAAAIs/HjWd7hac3do/s35-c/photo.jpg', 'profileUrl': 'https://www.blogger.com/profile/15762976559614582051', 'displayTime': 'Feb 2, 2014, 7:22:00 PM', 'deleteclass': 'item-control blog-admin pid-1482954822', 'id': '2666955411947784968', 'body': 'x3cspan classx3dx27deleted-commentx27x3eThis comment has been removed by a blog administrator.x3c/spanx3e', 'timestamp': '1391352151994', 'permalink': 'https://www.mybloggertricks.com/2014/02/add-facebook-invite-friends-button-to-blogger.html?showCommentx3d1391352151994#c2666955411947784968', 'author': 'name': 'Anonymous', 'avatarUrl': '//img1.blogblog.com/img/blank.gif', 'profileUrl': '', 'displayTime': 'Feb 2, 2014, 7:42:00 PM', 'deleteclass': 'item-control blog-admin ', 'id': '6548707294288098636', 'body': 'actually notify is restricted upto 50 friends !x3cbr /x3ethat code which breaks the iframe sometimes doesnt works! check out that!x3cbr /x3ex3cbr /x3ewww.i-visionblog.com', 'timestamp': '1391357803185', 'permalink': 'https://www.mybloggertricks.com/2014/02/add-facebook-invite-friends-button-to-blogger.html?showCommentx3d1391357803185#c6548707294288098636', 'author': 'name': 'SHIVA SURYA', 'avatarUrl': '//lh5.googleusercontent.com/-kTNnF876PYk/AAAAAAAAAAI/AAAAAAAABLc/vFjET4k05_8/s35-c/photo.jpg', 'profileUrl': 'https://www.blogger.com/profile/01835202972903317441', 'displayTime': 'Feb 2, 2014, 9:16:00 PM', 'deleteclass': 'item-control blog-admin pid-1771624762', 'id': '5264418137250570454', 'body': 'When I click the link x26quot;invite your friendsx26quot; on your post got an error. WHy? It says app not properly set up...', 'timestamp': '1391392462224', 'permalink': 'https://www.mybloggertricks.com/2014/02/add-facebook-invite-friends-button-to-blogger.html?showCommentx3d1391392462224#c5264418137250570454', 'author': 'name': 'RRT', 'avatarUrl': 'https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhrnOgnABd9lI6HO_RblhubTOc-CnuVsJA8jNun6IwfnB3s-TpJ3SMn2oVUpuIABsz92NSorErHLACrtMii_V1iBLVVfkw2S6yAYk6bWWeQ1hCDe2DKK6gqUwMuuJ3YiveF2-YURFDjyLEg/s35/romeltarroza.jpg', 'profileUrl': 'https://www.blogger.com/profile/08419249355350388568', 'displayTime': 'Feb 3, 2014, 6:54:00 AM', 'deleteclass': 'item-control blog-admin pid-322699092', 'id': '4048779197146516348', 'body': 'I also have same error.', 'timestamp': '1391421185403', 'permalink': 'https://www.mybloggertricks.com/2014/02/add-facebook-invite-friends-button-to-blogger.html?showCommentx3d1391421185403#c4048779197146516348', 'author': 'name': 'Ankur Choudhary', 'avatarUrl': '//lh4.googleusercontent.com/-X4O5qcDLHhM/AAAAAAAAAAI/AAAAAAAACII/mYigGSU04qE/s35-c/photo.jpg', 'profileUrl': 'https://www.blogger.com/profile/13017110634151977121', 'displayTime': 'Feb 3, 2014, 2:53:00 PM', 'deleteclass': 'item-control blog-admin pid-1848158457', 'id': '7808853853872321379', 'body': 'Nice tutorial to implement Facebook invite button into a blogger blog. Quite helpful, Ix26#39;m sure it will help us to increase our fan page likes.x3cbr /x3ex3cbr /x3ePriyangshu, x3ca hrefx3dx22http://www.techaudible.netx22 relx3dx22nofollowx22x3eTech Audible - Gadgets Newsx3c/ax3e', 'timestamp': '1391446418179', 'permalink': 'https://www.mybloggertricks.com/2014/02/add-facebook-invite-friends-button-to-blogger.html?showCommentx3d1391446418179#c7808853853872321379', 'author': 'name': 'Priyangshu', 'avatarUrl': 'https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhkeHqQpO_M3fdMxopX_Y2pDWsdKU0sy2-8uJ_TqaMmtojqoqBpu8Uk9G_RlUWu8GBxnlspHq5ymB4hy9_hY956fsco-JEC6as5La3pp2m6C3ZKjTAM02iJsDvJAv6YCZvRWRwnZAHOu0s/s35/*', 'profileUrl': 'https://www.blogger.com/profile/16742885601709138616', 'displayTime': 'Feb 3, 2014, 9:53:00 PM', 'deleteclass': 'item-control blog-admin pid-235903977', 'id': '7846071004405849758', 'body': 'x3cbr /x3eThank you for what you think in my blogx3cbr /x3ex3ca hrefx3dx22http://bilokr.blogspot.com/x22 relx3dx22nofollowx22x3ehttp://bilokr.blogspot.com/x3c/ax3e', 'timestamp': '1391475062860', 'permalink': 'https://www.mybloggertricks.com/2014/02/add-facebook-invite-friends-button-to-blogger.html?showCommentx3d1391475062860#c7846071004405849758', 'author': 'name': 'Nancy mahmed', 'avatarUrl': '//lh4.googleusercontent.com/-3OPFBZAV5sc/AAAAAAAAAAI/AAAAAAAABbg/PTFVdYUyZPs/s35-c/photo.jpg', 'profileUrl': 'https://www.blogger.com/profile/16684848695448253507', 'displayTime': 'Feb 4, 2014, 5:51:00 AM', 'deleteclass': 'item-control blog-admin pid-1630277393', 'id': '9042948047178029129', 'body': 'error: The developers of this app have not set up this app properly for Facebook Loginx3cbr /x3eapp not displayed.. :(', 'timestamp': '1391479425059', 'permalink': 'https://www.mybloggertricks.com/2014/02/add-facebook-invite-friends-button-to-blogger.html?showCommentx3d1391479425059#c9042948047178029129', 'author': 'name': 'ana sriwahyuni', 'avatarUrl': '//lh4.googleusercontent.com/--ZR4TRLpksw/AAAAAAAAAAI/AAAAAAAACGo/H6Ad3Um9u9U/s35-c/photo.jpg', 'profileUrl': 'https://www.blogger.com/profile/03989604436443041642', 'displayTime': 'Feb 4, 2014, 7:03:00 AM', 'deleteclass': 'item-control blog-admin pid-594131464', 'id': '1153148608781570214', 'body': 'Thanks for the awesome tricks bro.x3cbr /x3ehttp://www.careerjobpk.com/', 'timestamp': '1391496747399', 'permalink': 'https://www.mybloggertricks.com/2014/02/add-facebook-invite-friends-button-to-blogger.html?showCommentx3d1391496747399#c1153148608781570214', 'author': 'name': 'Adil Muhammad Yousuf', 'avatarUrl': '//lh5.googleusercontent.com/-upqdRXNAgp4/AAAAAAAAAAI/AAAAAAAAFsA/s4Mqxh-aUro/s35-c/photo.jpg', 'profileUrl': 'https://www.blogger.com/profile/11859119924724048421', 'displayTime': 'Feb 4, 2014, 11:52:00 AM', 'deleteclass': 'item-control blog-admin pid-301840063', 'id': '2658499867555092596', 'body': 'its not working friend :/x3cbr /x3enot going invite notifications to my fb friends :(', 'timestamp': '1391504166480', 'permalink': 'https://www.mybloggertricks.com/2014/02/add-facebook-invite-friends-button-to-blogger.html?showCommentx3d1391504166480#c2658499867555092596', 'author': 'name': 'ආදරය හීනයක්', 'avatarUrl': '//lh4.googleusercontent.com/-OQnU7qAPATI/AAAAAAAAAAI/AAAAAAAAAKc/asvd09LRsYo/s35-c/photo.jpg', 'profileUrl': 'https://www.blogger.com/profile/10886714330841231687', 'displayTime': 'Feb 4, 2014, 1:56:00 PM', 'deleteclass': 'item-control blog-admin pid-1393882945', 'id': '3382204690270776400', 'body': 'I have successfully added it on my blog :x3cbr /x3ex3ca hrefx3dx22http://www.mybloggerbuzz.comx22 relx3dx22nofollowx22x3eMyBloggerBuzzx3c/ax3ex3cbr /x3ePlease tell me where to enter the specific fanpage url, whom invite will be sent out!x3cbr /x3e', 'timestamp': '1391507440509', 'permalink': 'https://www.mybloggertricks.com/2014/02/add-facebook-invite-friends-button-to-blogger.html?showCommentx3d1391507440509#c3382204690270776400', 'author': 'name': 'Hammad Saqlain Ansari', 'avatarUrl': '//lh5.googleusercontent.com/-Kdt7843p7mA/AAAAAAAAAAI/AAAAAAAACNQ/lJ_wNubCmp4/s35-c/photo.jpg', 'profileUrl': 'https://www.blogger.com/profile/04999487683875831517', 'displayTime': 'Feb 4, 2014, 2:50:00 PM', 'deleteclass': 'item-control blog-admin pid-382088957', 'id': '6124816659118768178', 'body': 'not working at my blogx3cbr /x3ex3ca hrefx3dx22http://www.mytechblogging.comx22 relx3dx22nofollowx22x3eMyTechBloggingx3c/ax3e', 'timestamp': '1391527727323', 'permalink': 'https://www.mybloggertricks.com/2014/02/add-facebook-invite-friends-button-to-blogger.html?showCommentx3d1391527727323#c6124816659118768178', 'author': 'name': 'Abdul Basit', 'avatarUrl': '//lh4.googleusercontent.com/-0myfK9iuApY/AAAAAAAAAAI/AAAAAAAAADE/2s-jst-JtKM/s35-c/photo.jpg', 'profileUrl': 'https://www.blogger.com/profile/06611664555801312824', 'displayTime': 'Feb 4, 2014, 8:28:00 PM', 'deleteclass': 'item-control blog-admin pid-183417040', 'id': '6875353040440729955', 'body': 'It doesnx26#39;t work(friends donx26#39;t receive notifications) and i think it works only with https and please answer the visitors', 'timestamp': '1392293711338', 'permalink': 'https://www.mybloggertricks.com/2014/02/add-facebook-invite-friends-button-to-blogger.html?showCommentx3d1392293711338#c6875353040440729955', 'author': 'name': 'yo', 'avatarUrl': '//lh3.googleusercontent.com/zFdxGE77vvD2w5xHy6jkVuElKv-U9_9qLkRYK8OnbDeJPtjSZ82UPq5w6hJ-SAx3ds35', 'profileUrl': 'https://www.blogger.com/profile/17511988969149863637', 'displayTime': 'Feb 13, 2014, 5:15:00 PM', 'deleteclass': 'item-control blog-admin pid-1372465747', 'id': '6450727485225157006', 'body': 'Hey zaib ,x3cbr /x3enice work..But this code has some problem which create a problem on blogger Edit html place..when i open the Edit Html position then it Redirected to 66666666(blogid).blogspot.com...Fix the problem bro..', 'timestamp': '1392823331367', 'permalink': 'https://www.mybloggertricks.com/2014/02/add-facebook-invite-friends-button-to-blogger.html?showCommentx3d1392823331367#c6450727485225157006', 'author': 'name': 'salim ali', 'avatarUrl': '//lh6.googleusercontent.com/-sUkdE2_Gu4k/AAAAAAAAAAI/AAAAAAAABOo/N4T5HRvRnVk/s35-c/photo.jpg', 'profileUrl': 'https://www.blogger.com/profile/09127084568850466970', 'displayTime': 'Feb 19, 2014, 8:22:00 PM', 'deleteclass': 'item-control blog-admin pid-1581136403', 'id': '8199310432841348865', 'body': 'Nice Article. I really Like it. Welcome to my new Blog. x3cbr /x3ex3ca hrefx3dx22http://techcarepoint.blogspot.com/x22 relx3dx22nofollowx22x3eTechCarePointx3c/ax3e', 'timestamp': '1394545413658', 'permalink': 'https://www.mybloggertricks.com/2014/02/add-facebook-invite-friends-button-to-blogger.html?showCommentx3d1394545413658#c8199310432841348865', 'author': 'name': 'Tanvir Rahman', 'avatarUrl': '//lh3.googleusercontent.com/zFdxGE77vvD2w5xHy6jkVuElKv-U9_9qLkRYK8OnbDeJPtjSZ82UPq5w6hJ-SAx3ds35', 'profileUrl': 'https://www.blogger.com/profile/15685928924329840626', 'displayTime': 'Mar 11, 2014, 6:43:00 PM', 'deleteclass': 'item-control blog-admin pid-300898959', 'id': '5829104313550753150', 'body': 'thank you it works perfectly, that is great !!!!!', 'timestamp': '1400084649933', 'permalink': 'https://www.mybloggertricks.com/2014/02/add-facebook-invite-friends-button-to-blogger.html?showCommentx3d1400084649933#c5829104313550753150', 'author': 'name': 'Rezhiar kamal', 'avatarUrl': '//lh4.googleusercontent.com/-x83C-1BXXA0/AAAAAAAAAAI/AAAAAAAAAA8/BhYdHUPZams/s35-c/photo.jpg', 'profileUrl': 'https://www.blogger.com/profile/01284931032359924277', 'displayTime': 'May 14, 2014, 9:24:00 PM', 'deleteclass': 'item-control blog-admin pid-1852943955', 'id': '5267150890282164969', 'body': 'this x3ca hrefx3dx22http://detutor8.blogspot.comx22 relx3dx22nofollowx22x3e gadget for bloggerx3c/ax3e worked for me', 'timestamp': '1409308243595', 'permalink': 'https://www.mybloggertricks.com/2014/02/add-facebook-invite-friends-button-to-blogger.html?showCommentx3d1409308243595#c5267150890282164969', 'author': 'name': 'Grace Joseph', 'avatarUrl': '//lh5.googleusercontent.com/-4D_pRuDU8HQ/AAAAAAAAAAI/AAAAAAAAAEA/CA61N6Y0Ynk/s35-c/photo.jpg', 'profileUrl': 'https://www.blogger.com/profile/00720567520662291380', 'displayTime': 'Aug 29, 2014, 3:30:00 PM', 'deleteclass': 'item-control blog-admin pid-81823721', 'id': '4906209615533734409', 'body': 'I have successfully added it on my blog.x3cbr /x3ex3ca hrefx3dx22http://www.apkgalaxy.name/x22 relx3dx22nofollowx22x3eApk Galaxyx3c/ax3ex3cbr /x3e', 'timestamp': '1414580930121', 'permalink': 'https://www.mybloggertricks.com/2014/02/add-facebook-invite-friends-button-to-blogger.html?showCommentx3d1414580930121#c4906209615533734409', 'author': 'name': 'Sana Malik', 'avatarUrl': '//lh3.googleusercontent.com/-THW1bjtCy2k/AAAAAAAAAAI/AAAAAAAAABM/m2bwSUr7IIs/s35-c/photo.jpg', 'profileUrl': 'https://www.blogger.com/profile/11217823188330007257', 'displayTime': 'Oct 29, 2014, 4:08:00 PM', 'deleteclass': 'item-control blog-admin pid-1653203241', 'id': '4305254220526593866', 'body': 'x3cspan classx3dx27deleted-commentx27x3eThis comment has been removed by the author.x3c/spanx3e', 'timestamp': '1425386038131', 'permalink': 'https://www.mybloggertricks.com/2014/02/add-facebook-invite-friends-button-to-blogger.html?showCommentx3d1425386038131#c4305254220526593866', 'author': 'name': 'Gabriel Iboro', 'avatarUrl': '//lh3.googleusercontent.com/zFdxGE77vvD2w5xHy6jkVuElKv-U9_9qLkRYK8OnbDeJPtjSZ82UPq5w6hJ-SAx3ds35', 'profileUrl': 'https://www.blogger.com/profile/01781627160569518442', 'displayTime': 'Mar 3, 2015, 5:33:00 PM', 'deleteclass': 'item-control blog-admin ', 'id': '3195414510910934120', 'body': 'Nice tips, thanks for sharing- My sitex3cbr /x3ex3cbr /x3e x3ca hrefx3dx22http://www.gadgetreviewsng.com/x22 relx3dx22nofollowx22x3eGadget Reviewsngx3c/ax3e ', 'timestamp': '1425386854982', 'permalink': 'https://www.mybloggertricks.com/2014/02/add-facebook-invite-friends-button-to-blogger.html?showCommentx3d1425386854982#c3195414510910934120', 'author': 'name': 'Gabriel Iboro', 'avatarUrl': '//lh3.googleusercontent.com/zFdxGE77vvD2w5xHy6jkVuElKv-U9_9qLkRYK8OnbDeJPtjSZ82UPq5w6hJ-SAx3ds35', 'profileUrl': 'https://www.blogger.com/profile/01781627160569518442', 'displayTime': 'Mar 3, 2015, 5:47:00 PM', 'deleteclass': 'item-control blog-admin pid-623221365', 'id': '7368126592495563022', 'body': 'No notification sent for my invites', 'timestamp': '1461734274628', 'permalink': 'https://www.mybloggertricks.com/2014/02/add-facebook-invite-friends-button-to-blogger.html?showCommentx3d1461734274628#c7368126592495563022', 'author': 'name': 'Md. Wasim', 'avatarUrl': '//lh4.googleusercontent.com/-rDqeOknugoc/AAAAAAAAAAI/AAAAAAAAAAA/hTaHzG5hfJo/s35-c/photo.jpg', 'profileUrl': 'https://www.blogger.com/profile/06398453944677735940', 'displayTime': 'Apr 27, 2016, 10:17:00 AM', 'deleteclass': 'item-control blog-admin pid-879990413'];
var msgs = 'loadMore': 'Load more...', 'loading': 'Loading...', 'loaded': 'No more!', 'addComment': 'Add comment', 'reply': 'Reply', 'delete': 'Delete';
var config = 'blogId': '8193278726666811965', 'postId': '4397174147752584627', 'feed': 'https://www.mybloggertricks.com/feeds/4397174147752584627/comments/default', 'authorName': 'Qasim Zaib', 'authorUrl': 'https://www.blogger.com/profile/08938578237404814539', 'baseUri': 'https://www.blogger.com', 'maxThreadDepth': 2;
// 0)
cursor = parseInt(items[items.length - 1].timestamp) + 1;
var bodyFromEntry = function(entry)
if (entry.gd$extendedProperty)
for (var k in entry.gd$extendedProperty)
if (entry.gd$extendedProperty[k].name == 'blogger.contentRemoved')
return '' + entry.content.$t + '';
return entry.content.$t;
var parse = function(data)
cursor = null;
var comments = ;
if (data && data.feed && data.feed.entry)
for (var i = 0, entry; entry = data.feed.entry[i]; i++)
var comment = ;
// comment ID, parsed out of the original id format
var id = /blog-(d+).post-(d+)/.exec(entry.id.$t);
comment.id = id ? id[2] : null;
comment.body = bodyFromEntry(entry);
comment.timestamp = Date.parse(entry.published.$t) + '';
if (entry.author && entry.author.constructor === Array)
var auth = entry.author[0];
if (auth)
comment.author =
name: (auth.name ? auth.name.$t : undefined),
profileUrl: (auth.uri ? auth.uri.$t : undefined),
avatarUrl: (auth.gd$image ? auth.gd$image.src : undefined)
;
if (entry.link)
if (entry.link[2])
comment.link = comment.permalink = entry.link[2].href;
if (entry.link[3])
var pid = /.*comments/default/(d+)?.*/.exec(entry.link[3].href);
if (pid && pid[1])
comment.parentId = pid[1];
comment.deleteclass = 'item-control blog-admin';
if (entry.gd$extendedProperty)
for (var k in entry.gd$extendedProperty)
if (entry.gd$extendedProperty[k].name == 'blogger.itemClass')
comment.deleteclass += ' ' + entry.gd$extendedProperty[k].value;
else if (entry.gd$extendedProperty[k].name == 'blogger.displayTime')
comment.displayTime = entry.gd$extendedProperty[k].value;
comments.push(comment);
return comments;
;
var paginator = function(callback) {
if (hasMore()) {
var url = config.feed + '?alt=json&v=2&orderby=published&reverse=false&max-results=50';
if (cursor)
url += '&published-min=' + new Date(cursor).toISOString();
window.bloggercomments = function(data) {
var parsed = parse(data);
cursor = parsed.length
AnonymousFeb 2, 2014, 7:58:00 AM
Realy nice working on mah blog
http://www.tricksteaching.com
ReplyDelete
krunal shahFeb 2, 2014, 9:00:00 AM
Thanks for this awesome tricks.
Watch on my blog : http://www.trickytricks4u.com
ReplyDelete
Sarada prasadFeb 2, 2014, 12:31:00 PM
@Qasim Zaib Just another awesome tutorial from You .
Really Love MBT
regards,
www.codingmagazine.net
ReplyDelete
Replies
Qasim ZaibFeb 2, 2014, 2:43:00 PM
Thank you :)
Delete
H.Wajid AliFeb 2, 2014, 7:22:00 PM
Sir in your site i read a topic Add Adsenses After More Tag .
My question is can i add Bidvertiser or some others website ads right after more tag.
Please tell me as soon as possible.
ReplyDelete
AnonymousFeb 2, 2014, 7:42:00 PM
This comment has been removed by a blog administrator.
ReplyDelete
SHIVA SURYAFeb 2, 2014, 9:16:00 PM
actually notify is restricted upto 50 friends !
that code which breaks the iframe sometimes doesnt works! check out that!
www.i-visionblog.com
ReplyDelete
RRTFeb 3, 2014, 6:54:00 AM
When I click the link "invite your friends" on your post got an error. WHy? It says app not properly set up...
ReplyDelete
Ankur ChoudharyFeb 3, 2014, 2:53:00 PM
I also have same error.
ReplyDelete
PriyangshuFeb 3, 2014, 9:53:00 PM
Nice tutorial to implement Facebook invite button into a blogger blog. Quite helpful, I'm sure it will help us to increase our fan page likes.
Priyangshu, Tech Audible - Gadgets News
ReplyDelete
Nancy mahmedFeb 4, 2014, 5:51:00 AM
Thank you for what you think in my blog
http://bilokr.blogspot.com/
ReplyDelete
ana sriwahyuniFeb 4, 2014, 7:03:00 AM
error: The developers of this app have not set up this app properly for Facebook Login
app not displayed.. :(
ReplyDelete
Adil Muhammad YousufFeb 4, 2014, 11:52:00 AM
Thanks for the awesome tricks bro.
http://www.careerjobpk.com/
ReplyDelete
ආදරය හීනයක්Feb 4, 2014, 1:56:00 PM
its not working friend :/
not going invite notifications to my fb friends :(
ReplyDelete
Hammad Saqlain AnsariFeb 4, 2014, 2:50:00 PM
I have successfully added it on my blog :
MyBloggerBuzz
Please tell me where to enter the specific fanpage url, whom invite will be sent out!
ReplyDelete
Abdul BasitFeb 4, 2014, 8:28:00 PM
not working at my blog
MyTechBlogging
ReplyDelete
yoFeb 13, 2014, 5:15:00 PM
It doesn't work(friends don't receive notifications) and i think it works only with https and please answer the visitors
ReplyDelete
salim aliFeb 19, 2014, 8:22:00 PM
Hey zaib ,
nice work..But this code has some problem which create a problem on blogger Edit html place..when i open the Edit Html position then it Redirected to 66666666(blogid).blogspot.com...Fix the problem bro..
ReplyDelete
Tanvir RahmanMar 11, 2014, 6:43:00 PM
Nice Article. I really Like it. Welcome to my new Blog.
TechCarePoint
ReplyDelete
Rezhiar kamalMay 14, 2014, 9:24:00 PM
thank you it works perfectly, that is great !!!!!
ReplyDelete
Grace JosephAug 29, 2014, 3:30:00 PM
this gadget for blogger worked for me
ReplyDelete
Sana MalikOct 29, 2014, 4:08:00 PM
I have successfully added it on my blog.
Apk Galaxy
ReplyDelete
Gabriel IboroMar 3, 2015, 5:33:00 PM
This comment has been removed by the author.
ReplyDelete
Gabriel IboroMar 3, 2015, 5:47:00 PM
Nice tips, thanks for sharing- My site
Gadget Reviewsng
ReplyDelete
Md. WasimApr 27, 2016, 10:17:00 AM
No notification sent for my invites
ReplyDelete