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.
Related
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)
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.
So I'm trying to make a share button on a webapp. I tried to use:
https://www.facebook.com/sharer.php?s=100&p[url]=http://google.com/&p[images][0]=&p[title]=Foobar&p[summary]=Hello%20world
It works fine here on my laptop. However, if I open the exact same url on my Android phone, I get redirected to:
https://m.facebook.com/sharer.php?s=100&p[url]=http://google.com/&p[images][0]=&p[title]=Foobar&p[summary]=Hello%20world
Which doesn't work. Am I missing something here? Should I use another API? I want to post a dynamic message with a link.
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
I am using this url to direct my mobile web page to a facebook wall post dialog page, however I can't seem to get display=wap to work.
http://m.facebook.com/dialog/feed?app_id=<myappId>&redirect_uri=<myRedirectUri>&link=<myLink>&display=<wap|touch>&picture=<myPicture>&caption=<myCaption>&description=<myDescription>&name=<myName>
Using display=touch works fine on most devices except some blackberries I've tested, where the dialog page is blank except for the "Publish" and "Cancel" buttons. When I use display=wap, I get "An error has occured" no matter what I do.
Does facebook support this feed dialog with display=wap? I found this url on their developer's web page here:
Facebook Dialogs
Under the heading labeled : Mobile Display Modes
I'd appreciate any advice!
Currently we don't support the feed dialog in display=wap. Sorry.