Android Facebook sdk messaging ID mismatch

﹥>﹥吖頭↗ 提交于 2020-01-15 10:33:27

问题


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!

来源:https://stackoverflow.com/questions/26389931/android-facebook-sdk-messaging-id-mismatch

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