53

Integrating Multiple Social networks into Android with a single common Framework or API or JAR

For iPhone we have ShareKit, which integrates multiple sharing options in one framework. http://www.getsharekit.com/

For android i have no idea if something similar exists. I am building an application which shares information to social networks, like some posts and tweets. Its a simple game, where gamers publish updates about their achievements and levels.. etc.. I used Facebook and twitter APIs but they take up lots of memory and difficult to manage. Also i cannot handle them efficiently. Any help on how to integrate them would be appreciated.

I would like to have a few suggestions on this..

Another Example seems PinkelStar

http://www.pinkelstar.com/ (Not maintained anymore)

Thanks

5
  • i haven't seen any.. If so i will post here. Oct 23, 2011 at 4:42
  • @AndroidKid did sociallib works with you , i also want to integrate sharing links to social media without implementing each one of them individual i want a lib to help me doing that , any advices please ?
    – Weloo
    Mar 11, 2012 at 16:23
  • 1
    @Bella you can use intents to share the URLs. Its really easy for doing. Provided the user has an app installed in the device for handling it. Jul 14, 2012 at 16:05
  • @AndroidKid the link to pinkelstar does not work any more. Seems that the project went off the air?
    – Xilconic
    Feb 25, 2014 at 13:24
  • Try using google firebase for all social logins. you can also provide your custom logins
    – Ali
    Feb 8, 2017 at 23:40

5 Answers 5

32

EDIT on 14 July 2012 21.30 IST.

The project is abandoned by the Creator and is no more usable due to changes in Facebook APIs. I contacted the Dev and he is not going to maintain it anymore. I will post any updates. Until then the best option would be to use intents.

Thank you..

I found it after a lot of discussions with many developers. sociallib is the only reliable one.

https://github.com/sdossick/SocialLib

It allows to integrate

  • Facebook
  • Twitter
  • Google Buzz
  • LinkedIn

This is the best solution i have found.. Thanks...

4
  • 2
    Above like is not open. I have same problem as you given May 2, 2012 at 5:02
  • hi the link u gave does not exist now plz refer some other link .i also want the same
    – Shruti
    May 19, 2012 at 7:38
  • Seems the project is nomore now. Will post updates.. Thanks. Jun 8, 2012 at 7:53
  • 2
    @rajpara I think you have to read the big Quote text in ash background.... The project is not available anymore.. So the solution is to use intents. Aug 29, 2012 at 10:44
21

I know the question is over a year old. However, if you search on Google this question keeps coming up in the results. Thats why I felt the need to provide another answer.

Since June 2012 a nice library called socialauth-android exists to easily integrate the 4 popular social networks (Facebook, Twitter, Myspace, LinkedIn).

I haven't had any hands on experience with this library yet, but it looks very promising. I will post more details once I've played with the library.

Please see socialauth-android website

Alternative Link : - GitHub

3
  • 2
    I saw this Library. Its seems quite interesting and Useful. Sep 27, 2012 at 10:57
  • 3
    Hi , the new version of api now supports 10 providers including yahoo , foursquare. the api now gives functionality to upload images , get feeds and get albums
    – vineet
    Mar 14, 2013 at 10:37
  • I agree, Social-oauth is the best till date. And the support from the community is super great. Apr 6, 2013 at 2:56
6

Maybe using ASNE library make your life easier? Just add dependency to your project:

dependencies {
...
    compile 'com.github.asne:asne-facebook:0.2.0'
    compile 'com.github.asne:asne-twitter:0.2.0'
    compile 'com.github.asne:asne-googleplus:0.2.0'
    compile 'com.github.asne:asne-linkedin:0.2.0'
...
}

setup and request almost anything!

5

Android uses an extensible architecture based on Intents. The preferred way is to hook into that framework, instead of trying to support every social network directly in your app as you're asking. One advantage is that new social networks and new APIs will be supported automatically. See:

1
  • 2
    i need to integrate not just open another application.... Facebook within my application. I don't wanna support all social apps in one.. All in need is to share a small message/status via my app. I don't want the user to navigate away from my app for doing this... Apr 22, 2011 at 4:02
4

This is a pretty old question but I will write a very answer to this. You can easily do this using the CloudRail API. Supports integration of Facebook, Twitter, G+, Instagram, LinkedIn, Yahoo, Windows Live, GitHub and Slack.. Just have to create an object of each in the same way and get an app key and app secret key. For example

Facebook f = new Facebook(this, appKey, appSecret);
f.post(…)
Twitter t = new Twitter(this, appKey, appSecret);
t.post(…)

and so on. HERE is a full blog post that shows you how to achieve this. Hope that helps DISCLAIMER: I wrote that post

Not the answer you're looking for? Browse other questions tagged or ask your own question.