Has Facebook sharer.php changed to no longer accept detailed parameters?
Facebook no longer supports custom parameters in sharer.php
The sharer will no longer accept custom parameters and facebook will
pull the information that is being displayed in the preview the same
way that it would appear on facebook as a post from the url OG meta
tags.
Use dialog/feeds instead of sharer.php
https://www.facebook.com/dialog/feed?
app_id=145634995501895
&display=popup&caption=An%20example%20caption
&link=https%3A%2F%2Fdevelopers.facebook.com%2Fdocs%2Fdialogs%2F
&redirect_uri=https://developers.facebook.com/tools/explorer
Official answer from fb team
How to pass a parameter like title, summary and image in a Facebook sharer URL
Looks like Facebook disabled passing parameters to the sharer.
We have changed the behavior of the sharer plugin to be consistent with other plugins and features on our platform.
The sharer will no longer accept custom parameters and facebook will pull the information that is being displayed in the preview the same way that it would appear on facebook as a post from the url OG meta tags.
Here's the URL to the post: https://developers.facebook.com/x/bugs/357750474364812/
How do I customize Facebook's sharer.php
What you are talking about is the preview image and text that Facebook extracts when you share a link. Facebook uses the Open Graph Protocol to get this data.
Essentially, all you'll have to do is place these og:meta
tags on the URL that you want to share -
<meta property="og:title" content="The Rock"/>
<meta property="og:type" content="movie"/>
<meta property="og:url" content="http://www.imdb.com/title/tt0117500/"/>
<meta property="og:image" content="http://ia.media-imdb.com/rock.jpg"/>
<meta property="og:site_name" content="IMDb"/>
<meta property="fb:admins" content="USER_ID"/>
<meta property="og:description"
content="A group of U.S. Marines, under command of
a renegade general, take over Alcatraz and
threaten San Francisco Bay with biological
weapons."/>
As you can see there are both an image property and a description. When you make changes to your pages og:meta
tags, you can test these changes using the Facebook Debugger. It will tell you if you have made any mistakes (and how to fix them!)
Did facebook changed something to sharer/sharer.php?
https://developers.facebook.com/support/bugs/734680371318112/:
I got an update from the product team, the quote feature has been deprecated, we will update the document to reflect the change.
Bruce
So this has been removed, only the documentation has not been updated to reflect this yet.
Set a message when I use the facebook sharer.php
This has been answered several times already here at Stackoverflow. It's been disallowed/discouraged since some time by Facebook to programatically insert text for the user comment box. There is already a default text that clearly states what this comment box is for. The idea is that this represents the user thoughts. You already have enough tools (link, caption, description, image) to present your app.
Facebook sharer.php parameter images[0] stopped supporting?
Yes, we are experiencing the same problem.
We are changing the share link to
https://www.facebook.com/dialog/feed?app_id=YOUR_APP_ID&redirect_uri=YOUR_REDIRECT_URI
https://developers.facebook.com/docs/reference/dialogs/
UPDATE: Seems the sharer.php function has been corrected and "images[0]" is working.
Related Topics
How to Resolve Iframe Cross Domain Issue
Is There a Best Practice for Generating HTML with JavaScript
How to Disable an Input Type=Text
Get List of All Input Objects Using JavaScript, Without Accessing a Form Object
Convert Td Columns into Tr Rows
JavaScript Regex Returning True.. Then False.. Then True.. etc
How to Show and Hide Input Fields Based on Radio Button Selection
How to Tell Which Row Number Is Clicked in a Table
JavaScript on the Bottom of the Page
Invoke Native Date Picker from Web-App on iOS/Android
Store Jquery Selector in Variable
How to Get the Status Code from an Http Error in Axios
Change the Style of an Entire CSS Class Using JavaScript
JavaScript to Detect If User Changes Tab