I am using the facebook business extension and have the following bit of code in my FBE integration::-
initFaeClient() {
// Handling the case for closing all open FAE client as suggested in DOC
if (this.clientWindow) { this.clientWindow.close() }
this.clientWindow =
window.open(this.fetchClientUrl(), this.clientWindowName, utill.setWindowOptions())
}
Basically this.fetchClientUrl()
is going to return the following :
http://www.facebook.com/ads/dia?origin=http%3A%2F%2Fmytestsite.test
The problem is when this code runs from a mobile device and hits the above url , facebook does ( I believe ) a 301 redirect and then the url changes to:-
http://m.facebook.com/ads/dia?origin=http%3A%2F%2Fmyshopmatic.test
I don't wont this to happen , is there any way i can prevent facebooks 301 redirect ? the FBE api does't work with the m.facebook.com
url and i've spoken to a facebook rep about this, so how do i prevent this redirect ? anything i can pass inside the window.open
method ?