In this post we will look at the two things:
Using Facebook 'Like' button for single page
Just add single-line dependency in your gradle project:dependencies { compile 'com.shamanland:facebook-like-button:0.1.8' }
This library contains several widgets:
FacebookLikeButton - button which opens FacebookLikeActivity by clicking on it.
FacebookLikeBox - button with a specific background and with ability to check 'likes' count of your url.
FacebookLikePlugin - container which combines both FacebookLikeButton and FacebookLikeBox in different variations.
So, first you need is to include FacebookLikeButton with specified style in your layout:
<com.shamanland.facebook.likebutton.FacebookLikeButton style="@style/Widget.FacebookLikeButton" />
Before configuring your button you need to add app xml namespace into the root node:
xmlns:app="http://schemas.android.com/apk/res-auto"
Add following attributes to your button: pageUrl - original url of page which should to be liked, pageTitle - title of this page, pageText - short description of page, pagePictureUrl - url of page picture.
<com.shamanland.facebook.likebutton.FacebookLikeButton style="@style/Widget.FacebookLikeButton" app:pageUrl="http://your.site.com/page.html" app:pageTitle="Title of your page" app:pageText="Short description of your page" app:pagePictureUrl="http://your.site.com/picture.png" />
For example:
Do not forget to declare FacebookLikeActivity in your AndroidManifest.xml:
<activity android:name="com.shamanland.facebook.likebutton.FacebookLikeActivity" android:label="@string/com_shamanland_facebook" android:theme="@style/Theme.Facebook.Like" />
Make sure that you have internet permission:
<uses-permission android:name="android.permission.INTERNET"/>
That's all! Now you can compile and launch your app. When user clicks 'Like' button, then he will see WebView with official web-plugin 'Like' from Facebook:
Now, if you want to include box with count of 'likes' - you should use FacebookLikePlugin:
<com.shamanland.facebook.likebutton.FacebookLikePlugin android:layout_width="wrap_content" android:layout_height="wrap_content" > <com.shamanland.facebook.likebutton.FacebookLikeButton style="@style/Widget.FacebookLikeButton" app:pageUrl="http://your.site.com/page.html" app:pageTitle="Title of your page" app:pageText="Short description of your page" app:pagePictureUrl="http://your.site.com/picture.png" /> <com.shamanland.facebook.likebutton.FacebookLikeBox style="@style/Widget.FacebookLikeBox" app:calloutMarker="left" /> </com.shamanland.facebook.likebutton.FacebookLikePlugin>
Modified example:
Note about attribute calloutMarker: if you re-arrange 'like' and 'box' buttons, then you need to select corresponding value for calloutMarker: left, top, right, bottom.
Using Facebook 'Like' button in the ListView
There is no fundamental difference between single button and buttons inside ListView. You need just to set up button inside your Adapter.getView() method.
Use corresponding getters of class FacebookLikeButton: setPageUrl(), setPageTitle(), setPageText(), setPagePictureUrl().
NOTE: @style/Widget.FacebookLikeButton already has item android:id with the value R.id.com_shamanland_facebook_like. Use this value with method findViewById(). You can also override android:id in xml to use your own value.
Check this code example from library sources:
Project page: http://blog.shamanland.com/p/facebook-like-button.html
Sources: https://github.com/shamanland/facebook-like-button
This is an interesting blog that you have posted, you shares a lot of useful things about Technology.
ReplyDeleteManual Testing Training in Chennai
Manual Testing course in Chennai
Manual Testing Training in Velachery
Mobile Testing Training in Chennai
mobile testing course in chennai
Drupal Training in Chennai
Photoshop Classes in Chennai
Manual Testing Training in Chennai
Great Blog!!! Was an interesting blog with a clear concept. And will surely help many to update them.
ReplyDeleteTally Course in Chennai
Tally Classes in Chennai
PHP Training in Chennai
Web Designing Course in Chennai
Ethical Hacking Training in Chennai
Tally Training in Chennai
Whenever progressed admirably, endeavor versatile apps help business activities run all the more proficiently all through the associations and drive ROI. https://iphoneappdevelopmentcompany.com/ Be that as it may, associations center around the wrong approach to big business apps.
ReplyDeleteSitus terbaik yang harus anda pilih adalah yang memang memiliki jaminan keamanan. Jaminan keamanan ini menjadi bagian yang sangat penting sekali dan sudah sebaiknya dan sewajarnya untuk anda bisa mendapatkannya
ReplyDeleteasikqq
http://dewaqqq.club/
http://sumoqq.today/
interqq
pionpoker
bandar ceme
freebet tanpa deposit
paito warna terlengkap
syair sgp
This comment has been removed by the author.
ReplyDeleteFree Android App Maker is extraordinary compared to other free utility to make an android application. Here one can submit Android application at application store in only couple of minutes.
ReplyDeletehttps://appcloner.app
https://appcloner.net
This is my first time i visit here and I found so many interesting stuff in your blog especially it's discussion, thank you. appcloner's website
ReplyDeleteMobile developers are finding the platform extremely user-friendly. In the second quarter of the year 2012, approximately 105 million Android smartphones have been sold which represents an overall share of 68% of smartphone sales figures until that quarter.Cheat Engine APK
ReplyDeleteThe article is so informative. This is more helpful for our
ReplyDeleteselenium training in chennai
selenium online courses best selenium online training
selenium testing training
selenium classes
Thanks for sharing.
This is the first & best article to make me satisfied by presenting good content. I feel so happy and delighted.By Learn Digital Marketing Course Training in Chennai it will help to get Digital Marketing Course Training with Placement Institute in Chennai. If you Learn Social Media Marketing Training with Placement Institute in Chennai, you will get job soon.
ReplyDeleteLearn Best Digital Marketing Course Training in Chennai in professional institute to get reputed job.
I like the helpful info you provide in your articles. I’ll bookmark your weblog and check again here regularly. I am quite sure I will learn much new stuff right here! Good luck for the next!
ReplyDeleteWeb Designing Course in Chennai | Web Designing Training in Chennai
web designing institute in chennai | Web Designing Training Institute in Chennai
Web Designing Training Institute in Chennai | web design training class in chennai | web designing course in chennai with placement
Contact them and tell them your requirement and ask them whether they can develop a mobile application as per your requirement at an affordable cost or not?Best Mobile app development Companies in India
ReplyDeleteThank you for another great article. Where else could anyone get that kind of information in such a perfect way of writing? I have a presentation next week, and I am on the look for such information. hack facebook
ReplyDeleteTo make Android advertise increasingly well known Android Application are free for everybody, he/she can download from various site. A large number of free apps been downloaded every day by Android client. Bulk SMS Service Provider in Sharjah UAE
ReplyDeletepaito warna terlengkap
ReplyDeletepaito warna china
paito warna singapore
live hongkongpools
live draw hk
ReplyDeleteThis content of information has
helped me a lot. It is very well explained and easy to understand.
seo training classes
seo training course
seo training institute in chennai
seo training institutes
seo courses in chennai
seo institutes in chennai
seo classes in chennai
seo training center in chennai
ReplyDeleteYou write this post very carefully I think, which is easily understandable to me. Not only this, but another post is also good. As a newbie, this info is really helpful for me. Thanks to you.
Tally ERP 9 Training
tally classes
Tally Training institute in Chennai
Tally course in Chennai
Pergi untuk taruhan luar, bukan yang di dalam. Menang dalam roulette mungkin bukan dalam memilih nomor yang menang tetapi dalam memilih apakah nomor yang menang berada di bawah
ReplyDelete98toto
As an enterprise mobile app developer, your app should endeavor to come with proper authentication plans, server-side validation, and encryption of essential data to overcome these security issues.Best Mobile App development Companies in UK
ReplyDeletepaito warna terlengkap
ReplyDeletepaito warna china
paito warna cambodia
paito warna singapore
live draw hk
As a matter of fact, the users want their favorite brands and companies to develop their own mobile applications for a customized user experience.Smart AudioBook Player Pro
ReplyDeleteDeveloping apps for the Android gives a set of choice to developers, and right to use to an ever-growing customer pedestal to the app proprietor. However, android developers face challenges in the development process.navigate here
ReplyDeleteeven a novice with absolutely no technical knowledge can go ahead and perform the conversion with ease using the Free FLV to MP4 Converter. file converter
ReplyDeleteBeing an open source stage, it tends to be introduced by any telephone producer, that makes the assembling cost of these telephones a lot lesser than the telephones having their own OS or any that is paid. itools crack
ReplyDeleteA backlink is a link created when one website links to another. Backlinks are important to SEO & impact for higher ranking. In my 7+ years seo Career i see, without backlinks a website doesn't rank higher on google SERP.
ReplyDeleteGet Your 300+ High Quality DoFollow Backlinks Here!
Order Now with Full Confidence & 100% satisfaction.
With Brandsoo, it’s never been easier or more convenient to shop high quality domain names and professional logos that’ll instantly give your brand a domain names for sale leg up and resonate with your audience! With many different domain sellers all competing for your business, you need to know where your business and brand will see.
ReplyDeleteThe data science field is quickly emerging in India. Many startups are focusing on relevant technologies. 360DigiTMG data science training in hyderabad
ReplyDeleteForex Signals, MT4 and MT5 Indicators, Strategies, Expert Advisors, Forex News, Technical Analysis and Trade Updates in the FOREX IN WORLD
ReplyDeleteForex Signals Forex Strategies Forex Indicators Forex News Forex World
Forex Signals, MT4 and MT5 Indicators, Strategies, Expert Advisors, Forex News, Technical Analysis and Trade Updates in the FOREX IN WORLD
ReplyDeleteForex Signals Forex Strategies Forex Indicators Forex News Forex World
Hey! Finally we are launch 150+ High DA Dofollow Quality Backlinks here! Order Now and Boost your website ranking.
ReplyDeleteManual Backlinks | Quality Backlinks | Dofollow Backlinks | High Quality Backlinks
Thank you!
DigiPeek
Situs Judi bola online UFA88 Terpercaya, juga memiliki casino online seperti, baccarat, roulette, Judi slot online, sabung ayam dan dadu online.
ReplyDeleteAdam the alien - Animated films A close encounter with a likable robot from another solar system leads to a star-crossed friendship Do aliens exist and an impossible intergalactic mission to save Extraterrestrial life the robot’s friends— despite overwhelming New cartoon movies odds.
ReplyDeleteTogelResult.info - Adalah Situs data hk Khusus yang menyediakan Daftar keluaran hk Result Nomor Togel dan Data hasil keluaran live draw hk seperti hk sgp sydney yang sudah terpercaya keluaran togel hk.
ReplyDeleteThanks for the Information.Interesting stuff to read.Great Article.
ReplyDeleteI enjoyed reading your post, very nice share.
Data Science Course Training in Hyderabad
Shield Security Solutions Provides Ontario Security Training, Security Guard License or Security License in Ontario. Get Started Today
ReplyDeleteVery nice blogs!!! i have to learning for lot of information for this sites…Sharing for wonderful information.Thanks for sharing this valuable information to our vision. You have posted a trust worthy blog keep sharing, data sciecne course in hyderabad
ReplyDeleteVery nice blogs!!! i have to learning for lot of information for this sites…Sharing for wonderful information.Thanks for sharing this valuable information to our vision. You have posted a trust worthy blog keep sharing, data scientist courses
ReplyDeleteThis Was An Amazing ! I Haven't Seen This Type of Blog Ever ! Thankyou For Sharing, data science course in hyderabad with placements
ReplyDeleteVince Offer is and actor, producer and infomercial star. He is the best known infomercial star in the world. His products the SHAMWOW, InVINCEable, SlapChop, Schticky and more have sold millions. Vince Offer has also produced and starred in the films Underground Comedy Movie and The Inappropriate Comedy with Adrian Brody, Dante and Michelle Rodriguez.
ReplyDeleteVery nice blogs!!! i have to learning for lot of information for this sites…Sharing for wonderful information.Thanks for sharing this valuable information to our vision. You have posted a trust worthy blog keep sharing, best data science courses in hyderabad
ReplyDeleteShield Security Solutions Offers Security Guard License Training across the province of Ontario. Get Started Today!
ReplyDeleteSecurity Guard License | Security License | Ontario Security license | Security License Ontario | Ontario Security Guard License | Security Guard License Ontario
Very nice blogs!!! i have to learning for lot of information for this sites…Sharing for wonderful information.Thanks for sharing this valuable information to our vision. You have posted a trust worthy blog keep sharing, data science online training
ReplyDeleteVery nice blogs!!! i have to learning for lot of information for this sites…Sharing for wonderful information.Thanks for sharing this valuable information to our vision. You have posted a trust worthy blog keep sharing, data sciecne course in hyderabad
ReplyDeleteWebsite laten maken? Onze professionals bouwen een omzetverhogende, professionele én unieke website of webshop! Een website laten maken kan vandaag nog
ReplyDeleteWebsite laten maken | webdesigner | website freelancer | webdeveloper | webdesigner
Discover antimicrobial protection that’s built-in right into the finish of select TikTok Locksmith Services.
ReplyDeleteI wanted to leave a little comment to support you and wish you a good continuation. Wishing you the best of luck for all your blogging efforts.
ReplyDeletedata science training in Hyderabad
Check it - https://www.theverge.com/users/KarenAWebster
ReplyDeleteYou actually make it look so easy with your performance but I find this matter to be actually something which I think I would never comprehend. It seems too complicated and extremely broad for me. I'm looking forward for your next post, I’ll try to get the hang of it!
ReplyDeletebest data science courses in hyderabad
I have express a few of the articles on your website now, and I really like your style of blogging. I added it to my favorite’s blog site list and will be checking back soon…
ReplyDeletedata science course in Hyderabad
I have bookmarked your website because this site contains valuable information in it. I am really happy with articles quality and presentation. Thanks a lot for keeping great stuff. I am very much thankful for this site.
ReplyDeletedata science training in Hyderabad
Thank you for your post, I look for such article along time, today i find it finally. this post give me lots of advise it is very useful for me !data science training in Hyderabad
ReplyDeleteInteresting article! I know only how to buy facebook likes for my account. I usually do it on this site https://soclikes.com/
ReplyDelete
ReplyDeletekeep up the good work. this is an Ossam post. This is to helpful, i have read here all post. i am impressed. thank you. this is our site please visit to know more information
data science courses
Fire Alarm Houston, a RAB Security company, was founded in 2001. The purpose was to provide the Life Safety System to Houston, Harris County, Fort Bend County and the surrounding areas, a viable alternative to the overgrown nationwide companies. We pride ourselves on being the most trusted, well-rounded and customer-oriented security company in Houston, backed by over seven years of company history and national manufacturer brand names that you know and trust, such as Honeywell.
ReplyDeleteFire Sprinkler Texas has been providing fire sprinkler installation, inspection and services for over 30 years in Texas, mainly in the Greater Houston, Dallas, San Antonio or Austin and surrounding area. If you are building a new facility which requires a fire sprinkler system by code, please give us a call for a free consultation.
ReplyDeletejudi online
ReplyDeletesitus judi online
daftar situs judi slot online terpercaya
judi slot online
judi online terpercaya
situs online judi terbaik
ReplyDeletesitus judi qq online terpercaya
situs judi slot online terpercaya
judi bola online
situs judi online terpercaya
situs judi slot online terpercaya 2020
ReplyDeletenama nama situs judi slot online
situs judi slot online
judi poker online
daftar situs judi slot online terpercaya 2020
judi kartu online
ReplyDeletebandar judi online
agen judi online
judi online poker
game judi online
situs judi slot online terpercaya 2019
ReplyDeletedaftar situs online judi terbaik
judi qq online
judi online bola
judi dadu online
situs khusus judi slot online
ReplyDeletejudi online domino
aplikasi judi online
judi casino online android
judi togel online
judi casino online terpercaya
ReplyDeletejudi domino online android
situs judi slot online terbaik
nama situs judi online
poker online judi
forum judi online
ReplyDeletejudi online tanpa deposit awal
judi online tanpa modal awal
judi online terbaik
judi pulsa online
judi casino online
ReplyDeleteapk judi online
link judi online
slot online
slot online sultan play
slot online sultanplay
ReplyDeleteslot online maha168
daftar situs judi slot online terpercaya
judi slot online
slot online indonesia sultan play
slot game online
ReplyDeletesitus judi slot online terpercaya
game slot online terbaik
game slot online
situs judi slot online terpercaya 2020
nama nama situs judi slot online
ReplyDeletesitus judi slot online
slot online terbaik
daftar situs judi slot online terpercaya 2020
slot online terpercaya sultan play
situs slot online indonesia
ReplyDeleteslot online terlengkap
online slot
casino slot online 888
slot online terbaru
777 slot online
ReplyDeletesitus slot online terbaik
situs judi slot online terpercaya 2019
mpo slot online
link slot online
agen slot online
ReplyDeletesitus khusus judi slot online
game online slot
slot online indonesia
demo slot online
situs slot online
ReplyDeletempo slot online terbaru
slot game online indonesia
slot jackpot online
daftar slot online
situs judi slot online terbaik
ReplyDeletegame slot online indonesia
slot games online
qq slot online
slot online uang asli
casino slot online
ReplyDeletejudi slot online terpercaya
slot online deposit pulsa
judi slot online indonesia
judi slot online bet kecil
Thank you for this wonderful post. This is really amazing. I am looking after this type post. Finally, I am find it here. data science course in Hyderabad
ReplyDeleteThanks for sharing a valuable blog. keep sharing.
ReplyDeleteskill set required for data scientist
latest technology in artificial intelligence
ccna career opportunities
best short term courses after graduation
cyber security interview questions and answers pdf
cyber security analyst interview questions
We are a Pittsburgh SEO agency full service internet marketing company in the Pittsburgh area, that specializes in providing affordable internet marketing solutions for small businesses.
ReplyDeleteOur team builds and enhances local business listings and seo search engine optimization. This service drives lead generation and brand recognition.
Our goal is long term mutual relationships with small business owners, providing customized internet marketing services.
Property Claim Adjuster - We specialize in helping families with their property damage claim. Take comfort knowing I will do everything I can to help you. Ask for Mike
ReplyDeleteKeeping up with Brilyent Kelly. Get Exlcusive offers and see the latest Music and news & Follow me on instragram Celebrity.
ReplyDeleteReally you are genious man!!! Thanks.
ReplyDeleteonline classified ads platform in Bangladesh
This post is very easy to read. Great work!
ReplyDeletedigital marketing social media
impact of social media on youth
uses of artificial intelligence in daily life
why to use php
rpa developer roles and responsibilities
salesforce testing interview questions