强制facebook在智能手机的外部浏览器中打开链接 [英] Force facebook to open link in external browser for smart phones

查看:233
本文介绍了强制facebook在智能手机的外部浏览器中打开链接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用智能手机应用程序在Facebook用户的外部浏览器中打开指向我的网站的链接,而不是Facebook的本地浏览器显示不正确?我的网页是 http://www.hannabery.com

解决方案

无法完成(出于明显的安全原因),但有多种方式

1.为您的网站创建应用程序



如果你为你的网站创建一个应用程序,那么它们在中间不需要Facebook。 。创建一个显示Facebook页面的应用程序

只要它的页面没有误导,那么这是允许的,你可以在android studio中做一些漂亮的东西



举例来说,如果您发布一个类似于



mywebsite.com/forum /



theres这个很酷的函数可以使用 .endsWith(/ forum /)从那里你可以让你的应用程序做任何事情,当一个链接被点击,结束/ forum /



完成一些操作


  1. 重定向到该链接

  2. 打开要显示的浏览器链接

  3. 移动到应用程序的某个部分
  4. 显示对话框



  5. 以及更多您能够做到的事情


    How can I post a link to my website in a Facebook post, and have it open in the user's external browser when using smartphone app, not Facebook's native browser, which is not displaying properly? My page is http://www.hannabery.com

    解决方案

    This cant be done (for obvious security reasons) but there are ways

    1.Create an app for your website

    If you create an app for your website then theres no need for facebook in the middle of things

    2.Create an app displaying facebook page

    As long as its your page and not something misleading then this is allowed and you can do some pretty neat stuff in android studio

    for example if you post a like

    mywebsite.com/forum/

    theres this cool function you can use .endsWith("/forum/") from there you can make your application do ANYTHING when a link is clicked that ends with "/forum/"

    A few things ive done

    1. Redirect to that link
    2. open browser to display link
    3. Move to portion of app
    4. Display dialog boxs

    and theres much more your able to do

    这篇关于强制facebook在智能手机的外部浏览器中打开链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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