从Android浏览器链接至Facebook分享 [英] Linking to facebook share from android browser

查看:943
本文介绍了从Android浏览器链接至Facebook分享的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想从浏览器链接到Facebook的Andr​​oid应用程序,但无法找到合适的方案。我看着从这里这篇文章的建议,我改变了周围的一些东西。当我尝试在浏览器中它总是带我到Play商店对于Facebook,而不是实际的应用程序,即使我已经安装了它。此外,当我尝试运行从上述职位的样本,他们把我的权利的QR扫描仪。

这是我最好的尝试:

 < A HREF =意图:// FB /#意向;包= com.facebook.katana;末>测试ME< / A>


根据<一个href=\"http://stackoverflow.com/questions/16738276/how-do-i-pass-parameters-to-android-intent-in-new-scheme-on-chrome\">How做我传递参数到Android意图在Chrome新方案有可能通过增加一个额外的用户id参数这样共享一个配置文件:

 &LT;一href=\"intent://fb/#Intent;scheme=fb;package=com.facebook.katana;l.extra_user_id=100001529066447;end\">Launch Facebook和LT; / A&GT;

不幸的是Facebook的确认这是不可能的了,因为安全性异常:当打开安全异常ProfileTabHostActivity通过意向

I'm trying to link to the Facebook android app from the browser but can't find the right scheme. I looked at the suggestion from this post here and I changed some stuff around. When I try it in the browser it always takes me to the Play Store for Facebook and not the actual app, even though I have it installed. Also, when I try running the samples from the above post, they take me right to the QR scanner.

Here is my best attempt:

<a href="intent://fb/#Intent;package=com.facebook.katana;end">test me</a>

解决方案

Based on How do I pass parameters to android Intent in new scheme on chrome it was possible to share a profile by adding an extra user id parameter like this:

<a href="intent://fb/#Intent;scheme=fb;package=com.facebook.katana;l.extra_user_id=100001529066447;end">Launch Facebook</a>

Unfortunately Facebook confirmed that this is not possible anymore since a security exception: Security exception when opening ProfileTabHostActivity through intent

这篇关于从Android浏览器链接至Facebook分享的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆