0
どのようにユーザー名からFacebookプロフィールを開くことができますか?またはFacebookプロフィールを取得するためにAndroidで使用する必要があるリクエストAndroid:ユーザー名からアプリのFacebookプロフィールを開く
Intent intent;
try {
activity.getPackageManager()
.getPackageInfo("com.facebook.katana", 0); // Checks if FB is even installed.
intent = new Intent(Intent.ACTION_VIEW,
Uri.parse("fb://profile/" + famous)); // Trys to make intent with FB's URI
} catch (Exception e) {
intent = new Intent(Intent.ACTION_VIEW,
Uri.parse("https://www.facebook.com/" + famous)); // catches and opens a url to the desired page
}
activity.startActivity(intent);
はこれを試みたが、ユーザー名では動作しませんでした( - ログインしているユーザー - ユーザーのに行くの壁)とid(挿入された静的には、エラーが表示さ - このプロファイルを読み込むことができませんでした)...