Force facebook to open link in external browser for smart phones

前端 未结 4 2044
臣服心动
臣服心动 2020-12-06 18:17

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

4条回答
  •  醉酒成梦
    2020-12-06 18:58

    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

提交回复
热议问题