Integrating FaceBook, Twitter, Social networks in Android

大憨熊 提交于 2019-11-28 15:19:27
Anoop CH

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...

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

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!

Ed Burnette

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:

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

@AndroidKid, check out Socialize -- http://www.GetSocialize.com. It's new (didn't exist when you asked the question) so I don't know if you still have the need, but would love to know what you think about it if you give it a try.

DROdio

What about scribe?

I've been testing it with twitter successfully. It's pretty easy.

Excuse me, have you seen socialauth? I haven't used it, but it looks good!

If you are making a game, then I recommend Scoreloop's Social API They've been pretty good with keeping up with the API and being a one stop shop for simplifying some game related elements.

If you are looking at social media integration in an Android game, I'd recommend you take a look at Skiller SDK as well. It provides good support for leading social networks and the SDK seems real easy to use. For reference, look at their TicTacToe sample

I found good one, and using it for my project. SocialAuth Android is an Android version of popular SocialAuth Java library by https://github.com/3pillarlabs/socialauth-android/ Support: Google Yahoo Facebook Hotmail FourSquare MySpace Linkedin Salesforce Yammer Mendeley Flickr

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!