why final URL of my desktop website always linked to mobile version website (m.mywebsite) on social media share? - facebook

i have desktop website mywebsite.com and mobile version m.mywebsite.com.
however, when i want to add some social media share that need final url such as facebook and g+ share, the final URL always linked to my m.mywebsite.com even though i add the social media share in my desktop version website.
This is what i get when i used facebook debug tool:
original http://mywebsite.com/
301 http://www.mywebsite.com/
302 http://m.mywebsite.com/#!/
rel="canonical" http://m.mywebsite.com/?_escaped_fragment_=%2F
The final URL, which facebook tried to extract metadata from is highlighted in bold
i'm only use a canonical url in my mobile version website
is there anything wrong? or anything necessary that i need to add to my code?
thank you for your response.

OMG!!! Now it fixed!! I realized there is some stupid code that set the default redirect to mobile site on my nginx code. thank you for remind me about user agent #Skrrp.

Related

Facebook sharing debugger gives 404

Can you please help me debug this! Whenever we are sharing content links from our website in facebook; its not working. Redirection to content works if I'm using desktop browser or directly opening the link in mobile browser. But from facebook in app browser I can see either its loading 404 page or the video doesn't play. What could be the reason behind this? Please check below link from here
Either redirect from http to https in general or change the og:image to https instead of http. If you enter the URL into the browser, you get redirected: http://www.bioscopelive.com/bundles/bongoweb/images/oglogo.jpg
You can also add og:image:secure_url as metatag with the https URL of the image.
Make sure that everything is public and not locked by gelocation or login. Facebook servers need to be able to reach the URLs.

Sending URL using Facebook messenger from my Mobile Website

I am looking to send some link over Facebook Messenger app from my mobile website on Chrome Browser on my mobile. I am using the facebook messenger's custom URI Scheme fb-messenger://share. I saw this option on the the following link: Custom URI Schemes for the Facebook Messenger I used the full url as: fb-messenger://share?ShareType=ShareType.regular&share_story_url= I tried multiple options for share, as mentiond in the link above, but nothing works. It tries to open the app and closes.
You can do it by adding the following link to your page:
I don't know what else you can pass except for the link, maybe a user ID with to (probably the same params as described in the dialog method
i'm facing same issue and this is not working in ios devices.
In android devices its working fine.
I have used this one:
fb-messenger://share?link=" + smsString; (smsString is var)

Facebook - Wordpress App Error Facebook returned an error: The site URL in your Facebook application settings does not match your wordpress blog URL

I have a wordpress blog and am trying to integrate the facebook page publish version 2 app and keep getting 2 errors, one of WP:
Facebook returned an error: The site URL in your Facebook application settings does not match your wordpress blog URL
And on FB app creator when putting in the app domain:
This must be derived from Canvas URL, Secure Canvas URL, Site URL, Mobile Site URL, Page Tab URL or Secure Page Tab URL. Check and correct the following domains: mywpsite.com
I have not used any http:// just the domain name.
I updated to v2 of facebook plugin, deleted the old version 1, made sure my domain name didn't have upper case, deleted the app in FB and started again and still I get this error.
When I put in the app id into wp plugin the grant access rights button stays grayed out as well, imagine that's because the app is still not set up correctly.
Any help on why I keep getting these errors would be very useful.
Thanks
Andrew
Click the '+Add Platform' box below and depending on the app you want to add, in this case I assume click 'Website', and then add the website's URL to Site URL. This will now allow you to save the URL properly.

Facebook share not working in mobile browser

I am using below API for Facebook share, It's working in web browser but not in mobile browser.
https://www.facebook.com/sharer/sharer.php?u=http%3A%2F%2Fwww.facebook.com%2Fphoto.php%3Ffbid%3D503650586358491%26set%3Da.447778305279053.102678.420576761332541%26type%3D1&t=Breaking%3A+BUCKWILD%27s+Shain+has+died.+Our+hearts+go+out+to+his+family.+More+info+here%3A+http%3A%2F%2Fon.mtv.com%2F128hbz2
I'm using android phone.
Error message : "Your link could not be found."
Any suggestion ?
Thanks
You need url for mobile to start http://m.facebook.com/sharer.php?u=
Also the rest url wont work like that, you need url site whit the Facebook Open Graph META Tags.
From what I could see, the solution offered by vj_andrei doesn't work - the m.facebook.com/sharer url just doesn't exist.
Facebook, however, have re-introduced the share button, and it works for mobile as well.

Direct link to Facebook mobile site using pageID

graph.facebook.com/cocacola will tell you that the id for the cocacola page is 40796308305.
You can get to the cocacola page using either www.facebook.com/cocacola or www.facebook.com/40796308305.
However, to get to the mobile facebook site m.facebook.com/cocacola works, m.facebook.com/40796308305 doesn't.
For reasons I won't go into I have the pageID, not the vanity url and I need to link to the mobile site.
Specifically, I'd like to link to the equivalent of m.facebook.com/cocacola?v=feed to link to the wall instead of info.
So, I either need a way to link to a mobile page using the page id or a way to make the regular www link redirect to the mobile wall instead of the info page.
You may need to create (or discover the already created) proper "name" ID and use that together with the pageID as your landing page, for example, mine works as follows:
http://m.facebook.com/pages/BCmoney-MobileTV/190267987672979
But using just my pageID it does not:
http://m.facebook.com/pages/190267987672979
In addition, you could use the Graph API to deduce the "vanity URL" as you refer to it:
http://graph.facebook.com/40796308305
Looks like this is the page you're looking for:
http://m.facebook.com/pages/Coca-Cola/40796308305
The simplest way I found to get the mobile version of any Facebook page is to go the desktop version of the page on your browser of choice and then replace the www with m and press Enter. The Facebook Mobile Web version of the page loads in your browser.
I had the same problem with a link on a website, but I don't want everyone to go to the mobile site, just those on mobile devices.
The solution was to add ?v=wall to it. It works for both desktop and mobile now. Here is what my link looks like now: https://www.facebook.com/pages/Virginia-B-Andes-Volunteer-Community-Clinic/153180528039538?v=wall