I want to integrate facebook API into my android application.
I use connect, disconnect, share and like functions.
Connection function is called from a login button in an activity HomeActivity
Disconnection function is called from the logout button in an activity setingsActivity
Share and like are used at DetailActivity
Is it possible to use a single class grouping the 3 activities?
This class is declared at the facebook platform
Well, since facebook developers android integration website is not so helping, you can try SimpleFacebook library.
I use this because i tierd of the official facebook android examples. This library is easy to use and you can achive anything with this, you want to do with facebook, it has a nice example project too.
Give it a try.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.