I am developing an android app using Parse. When a user registers I store his/her Facebook ID in a column. I have an option in my app where Facebook friends can contact each other using the fb messaging app.
I am using the following code to open the messaging app directing to the correct user:
String id = user.getFacebookId();
startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("fb://messaging/" + user.getFacebookId())));
When I use this ID as follows: https://www.facebook.com/10202537137382370 , it takes me to the correct profile. However when I use it in the code block above I get the following loading screen:
There is a website that allows you to get the id for a user: website. This website gives me a different Facebook Id than the one I've stored in my Parse database. When I use this ID in the code block it works.
Why does this happen and how can I fix this? Thanks in Advance!