-
Notifications
You must be signed in to change notification settings - Fork 133
Getting Feeds
vineetmobile edited this page Sep 18, 2013
·
1 revision
SocialAuth Android lets you you get user feeds after authentication. Facebook, Twitter, Linkedin support this functionality.
###Implementation
private final class ResponseListener implements DialogListener
{
public void onComplete(Bundle values) {
adapter.getFeedsAsync(new FeedDataListener());
}
}
// To receive the feed response after authentication
private final class FeedDataListener implements SocialAuthListener<List<Feed>> {
@Override
public void onExecute(List<Feed> t) {
Log.d("Custom-UI", "Receiving Data");
List<Feed> feedList = t;
if (feedList != null && feedList.size() > 0) {
for (Feed f : feedList) {
Log.d("Custom-UI", "Feed ID = " + f.getId());
Log.d("Custom-UI", "Screen Name = " + f.getScreenName());
Log.d("Custom-UI", "Message = " + f.getMessage());
Log.d("Custom-UI", "Get From = " + f.getFrom());
Log.d("Custom-UI", "Created at = " + f.getCreatedAt());
}
}
@Override
public void onError(SocialAuthError e) {
}
}