Facebook article sharing from mobile device - facebook

I understand that sharing article from desktop can utilize the following URL
http://www.facebook.com/sharer.php?s=100&p[title]=titlehere&p[url]=http://www.yoururlhere.com&p[summary]=yoursummaryhere&p[images][0]=http://www.urltoyourimage.com
However, when I opened the URL in Ipad or mobile, I am getting an error saying "Sorry, something went wrong. We're working on getting this fixed as soon as we can."
An alternative is to use m.facebook.com/sharer.php, but it seems that the parameter that I can use here is limited (I cannot specify the title or image).
Any hint on how I can share an article from mobile devices and getting it similar as the one using www.facebook.com/sharer.php ?
Thanks a bunch!

The only property that I can see that the mobile sharer accepts is "u" for url
i.e. http://m.facebook.com/sharer.php?u=www.lagan-press.org.uk
Please correct me if I am wrong.

http://m.facebook.com/sharer.php?s=100&p[title]=titlehere&p[url]=http://www.yoururlhere.com&p[summary]=yoursummaryhere&p[images][0]=http://www.urltoyourimage.com
Use m.facebook.com, not www.facbook.com.

Related

Facebook Not Scraping URL Properly (Blocked URL) On Fresh URL's

I have started to experience a really strange problem with Facebook link scraping/caching which seems random in nature.
On brand new posts when I go to check: https://developers.facebook.com/tools/debug/ with my new URL I get a message saying 'Cannot scrape: URL blocked'
We have literally been sharing URL's to Facebook for YEARS with no problem whatsoever. All open graph tags are present and working fine.
What is really weird is if I just manually press the 'scrape again' button it grabs all the bits properly and says everything is fine. It's always just the first attempt.
I have also tried manually calling the scrap API instead of letting Facebook do it when someone shares the URL for the first time and still sometimes (not always) it returns empty (just 'id' and 'url' returned) indicating the URL was blocked.
What's going on here it's driving me mad? We are nowhere near our API limits if maybe that was the issue...
Why would it say blocked first go on the debug page then literally 2 seconds later you press 'scrape again' and it works fine.
Just to note sometimes when it says blocked it still shows maybe the image in the link preview but no title or description. It's like it's grabbed some tags but then given up. Very strange...
I have checked our access logs and I can see 'Facebot' accessing our site fine.
Hope someone can help, I am really hoping this is some weird Facebook bug as I can't see any change in our code base that would effect this.
Facebook does not return anything helpful when this happens even with the API. I have no way in contacting Facebook direct either. If we are somehow getting blocked I would love to know why and fix that issue. But it's impossible to debug at the moment.
Just to note I have 3 sites all running the same code base (WordPress environment). They are all experiencing this issue. All been running fine for many years.
Cheers
This was to do with rate limiting that was not visible in the Facebook APP dashboard. Helpful...
Full details here: https://developers.facebook.com/bugs/232343637174087/
Solution for your problem: You can use Facebook image button after adding link on Facebook news feed, like shown in iamge
second thing upload image on othe site and give the image path to your website and then put it on your news feed, you can get definitely positive result using this two methods.
also refer this image
thanks hope this two will work for your problem

How to handle Unicode (Danish) characters in URLs while sharing on Facebook?

We have an eLearning Portal developed in Danish language. URL of the contents contains some native danish characters. If i open that URL in my browser window it opens perfectly fine. But when I try to share url over facebook. It is showing me error. I tried debugging using Facebook's Link testing tool. It is showing me error and I am not able to understand what is the root cause.
Here is the link I used for testing
http://www.zanicura.com/ElearningView/2849/Genoptr%C3%A6ning-efter-hjerneskade
It works fine in Browser but Facebook debugger is showing error.
Has anyone tried using Unicode while sharing link on Facebook?
Any information will be highly appreciated.
Thanks
It looks like a bug in the Facebook tool—it's going into an endless UTF-8-encode loop.
You might be able to fix it by replacing the IRI in the page:
<meta property="og:url" content="http://www.zanicura.com/ElearningView/2849/Genoptræning-efter-hjerneskade">
With a proper URI-encoded version (%C3%A6 instead of æ).

Images are not displaying in Facebook Share

I am using facebook sharer.php, to share a link from my site to the facebook wall. Following is the url, I am using to get this done.
https://www.facebook.com/sharer/sharer.php?s=100&p[title]=title_to_be_shared&p[url]=link_to_be_shared&p[images][0]=image_path
I am aware that sharer.php is deprecated. But I have searched a lot to implement this share feature. I found only this. But in this, the images are not rendered properly in all cases. In some cases the images are not loading while sharing.
Please help me to overcome this. Or if there is another API to get this done please let me know...
Thanks in advance!
Regards,
Raju
The sharer.php method is deprecated and no longer supported. As far as I can tell, the best replacement for sharing a page of your site is the Feed Dialog.

Can't use facebook sharer.php custom parameters in mobile sites

I own a jQuery mobile website. There i using facebook share option with custom parameters to add title, description, image with link
Like below,
https://www.facebook.com/sharer/sharer.php?s=100&p%5Burl%5D=http%3A%2F%2Fgoogle%2F&p%5Bimages%5D%5B0%5D=https://www.google.com/images/srpr/logo3w.png&p%5Btitle%5D=My%20own%20title&p%5Bsummary%5D=My%20own%20description
But when i try the same link to mobile, it will redirect to
http://m.facebook.com/sharer.php?s=100&p%5Burl%5D=http%3A%2F%2Fgoogle%2F&p%5Bimages%5D%5B0%5D=https%3A%2F%2Fwww.google.com%2Fimages%2Fsrpr%2Flogo3w.png&p%5Btitle%5D=My+own+title&p%5Bsummary%5D=My+own+description&_rdr
which means, it will add m.facebook at the start of share url. so it wont work with custom title, desc, image & link.
Anyway to fix this? or how to force mobile web to not to go with m.facebook.com ?
You can prevent Facebook from going to the mobile site by adding a ?m2w parameter to the URL. Then, sharer.php works like usual.
e.g.
https://www.facebook.com/sharer/sharer.php?m2w&s=100.... (etc)
Looks kind of bad though, looking for a better answer.
Edit: Sharer.php has been deprecated, see Felix' answer below.
sharer.php has now been deprecated.
https://developers.facebook.com/bugs/252983554810810/
The new method is to use the share dialog:
https://developers.facebook.com/docs/sharing/reference/share-dialog
e.g.
https://www.facebook.com/dialog/share?
app_id=145634995501895
&display=popup
&href=https%3A%2F%2Fdevelopers.facebook.com%2Fdocs%2F
&redirect_uri=https://developers.facebook.com/tools/explorer
url for mobile is supported as u, and title is supported as t
http://m.facebook.com/sharer.php?u=<urlencoded url>&t=<urlencoded title>
source
Use the mobile url to fix the problem in mobile devices, Facebook will redirect to the share dialog in desktop.
http://m.facebook.com/sharer.php?u=<urlencoded url>
Here is an example:
https://careers-hangarcr.herokuapp.com/job/apply/55c277c0fb8b040300622602

Facebook share URL code not working

I realize Share has been deprecated by Facebook, but this is still posted on their documentation:
https://www.facebook.com/sharer.php?u=[url to share]&t=[title of content]
However, the title won't change no matter what I do -- including adding the "og:title" meta and changing the actual title of the page.
Any suggestions on how I can make it possible for people to share my page with a suggested message? thanks.
I would encourage you to use the Facebook Javascript SDK, this will give you much more flexibility with what you share.
https://developers.facebook.com/docs/reference/dialogs/feed/