android – fb: profile{userid}似乎无法正常工作

android – fb: profile{userid}似乎无法正常工作,第1张

概述我尝试使用特定页面启动Facebook应用程序,它使用早期版本的FB APP,但新版本为25.0.0.19.30.此功能无效,uri.parse(“fb:// profile / {userid}”)的意图将我带到内容不可用的页面. >它是来自facebook的安全更新. 用特定用户页面启动应用程序的任何其他方式. 你应该使用fb:// page / {id} 从这里学到了它:http://bin 我尝试使用特定页面启动Facebook应用程序,它使用早期版本的FB APP,但新版本为25.0.0.19.30.此功能无效,uri.parse(“fb:// profile / {userID}”)的意图将我带到内容不可用的页面.

>它是来自facebook的安全更新.

用特定用户页面启动应用程序的任何其他方式.

解决方法 你应该使用fb:// page / {ID}

从这里学到了它:http://binwaheed.blogspot.com.ar/2014/06/android-open-facebook-official-app-from.html

如果你需要回退到浏览器,你应该实现这样的事情:

Intent intent = null;try {    // get the Facebook app if possible    this.getPackageManager().getPackageInfo("com.facebook.katana",0);    intent = new Intent(Intent.ACTION_VIEW,Uri.parse("fb://page/{ID}"));    intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);} catch (Exception e) {    // no Facebook app,revert to browser    intent = new Intent(Intent.ACTION_VIEW,Uri.parse("https://facebook.com/PROfilename"));}this.startActivity(intent);
总结

以上是内存溢出为你收集整理的android – fb:// profile / {userid}似乎无法正常工作全部内容,希望文章能够帮你解决android – fb:// profile / {userid}似乎无法正常工作所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址:https://54852.com/web/1136793.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2022-05-30
下一篇2022-05-30

发表评论

登录后才能评论

评论列表(0条)

    保存