What is the best way to join the results of a Facebook api query with my own MySQL database? I am trying to display a list of blogs that my friends are following. I am using the android Facebook sdk 3.0. Here is how I am getting a list of my friends, which works fine.
Session session = Session.getActiveSession();
if(session.isOpened())
{
Request.executeMyFriendsRequestAsync(session, new Request.GraphUserListCallback()
{
@Override
public void onCompleted(List<GraphUser> users, Response response)
{
updateUI(users);
}
});
}
I need to join these results with my own database in order to display a list of blogs that my friends are following. I have a database table like this:
Table name: blog_followers
Columns: id, user_id, blog_id
The result should be this: 7 of your friends are following "How to grill food".
I have a users table also:
Table name: users
Columns: id, email, facebook_id
I just need to do a join using my friends' facebook id's, my users table, and my blog_followers table. What is the best way to do this for Android?