We are developing 1 android app in which client wants to open facebook profile in the facebook app. We have done it using fb://profile/{fbid} method but it's not working for all facebook account.
So I want someone which gives me solution that works for any facebook account.
To understand the issue, I've made one demo app. APK is attached.
In this demo if you see only 1st button account is working and other facebook account's not opening profile page in facebook app.
Note: Make sure you have facebook app installed in your device while you check apk.
Code we have used to open the facebook profile.
try {
getPackageManager().getPackageInfo("[login to view URL]", 0);
Intent intent = new Intent(Intent.ACTION_VIEW,[login to view URL]("fb://profile/"+fbuserId));
startActivity(intent);
}
catch (Exception e)
{
Intent intent = new Intent(Intent.ACTION_VIEW, [login to view URL]("[login to view URL]"+fbuserId));
startActivity(intent);
}
So whoever will show me working demo first I'll pay to that freelancer. I need this solution urgent...
Send me your apk with same IDs as per my demo apk that opens facebook profile page perfectly.
It's <1 hour work for qualified developer who has knowledge or worked on this before.