0

This is the scenario : The user will go to mydomain.com with a smart phone or tablet

and mydomain.com will be redirected to facebook.com/mypage

It works but doesnt fire the Facebook app. I want Facebook app opens when user goes to my site.

If the user directly goes to facebook.com/mypage, It opens Facebook App. But why not with my redirection...

I have tried...

        Response.Status = "301 Moved Permanently";
        Response.AddHeader("Location", "http://www.facebook.com/mypage");
        Response.End();

and

         Response.BufferOutput = true;
         Response.Redirect("http://www.facebook.com/mypage");

But none of the works. What can be the trick here?

HeHuuu
  • 15
  • 3
oneNiceFriend
  • 6,691
  • 7
  • 29
  • 39

1 Answers1

1

You'll need to use the Facebook URL schema to open the app. See this previous post for an example: Facebook URL schemes on a mobile website, open app if its installed, otherwise go to the webpage

Essentially, the device recognizes that URIs on the "fb" protocol should open in the app.

Community
  • 1
  • 1
Ben J. Boyle
  • 306
  • 1
  • 12
  • Allright Ben, thats a nice point. But my problem is that I need to got that spesific URI with c# .net redirecting from the browser. Thats the problem. When I redirect, It opens the link in the browser again :( – oneNiceFriend Apr 26 '16 at 06:08