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.
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 am trying to add a login button to my website without the js/php sdk, and following the help page for this on the FB dev site it tells me to add
https://www.facebook.com/dialog/oauth? client_id={xxxxxxxxxx} &redirect_uri={http://www.mydomain.com}
to my code but whenever I follow the link it gives me an error saying
The redirect_uri URL must be absolute
I'm pretty sure my url can not get anymore absolute then that, so I think it is an issue with something else but i have not been able to find anything to correct the problem
Did you replace the uri with the one to your site?
https://www.facebook.com/dialog/oauth?client_id=1234567&redirect_uri=www.madderfish.com
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.
If you have a Facebook App, such as a simple page promoting something, can you still install a Facebook Like button inside the app/view itself.
The reason I'm asking is that it is working for me, but if I try to specify the URL of the Like button to the URL of my app, then the button doesn't display at all. If I put a different URL in, then it works fine.
For example, the link to a developer page, will work fine:
data-href="http://www.facebook.com/pages/Uktv-developer-area/123456789000000"
But, if I include the reference to the app, it breaks:
data-href="http://www.facebook.com/pages/Uktv-developer-area/123456789000000?sk=app_123456789000000"
Can anyone spot why this is happening?
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