1

When my app posts an image on the wall on Facebook, there is also a link posted that leads to the facebook app.

If the post is seen on a desktop, I want the link to redirect them to the flash based facebook app.

If the post is seen on IOS, I want them instead to see the download link of the same app on the App Store.

Is that possible? Any suggestions?

mirzahat
  • 1,025
  • 2
  • 10
  • 19

1 Answers1

0

Trying to change the Facebook link that would either redirect to one page or the other isn't a good practice (and that even wouldn't be possible). Just let the user click on the same link wherever he is using Facebook.

So, once the user on your web page, just catch the user agent which will give you information about his browser and device or computer. Depending on this, you'll know whether he is on a desktop or mobile phone. You'll then be able to redirect the user with the appropriate URL redirection. I let you search on this side with some help:

Community
  • 1
  • 1
Stéphane Bruckert
  • 21,706
  • 14
  • 92
  • 130