Send to Facebook button

Now I feel very lost because it looks like FB is using custom functions in the feed dialog . In the past, if I wanted to have "send and upload to facebook" on my webapp. I would use functions like "picture", "caption" and "dsecription". This was great because when users are reviewing, they can click submit and submit to facebook and they will share the review data they entered and I would generate an image based on their review (for example, show parts of the review text ). It seems like Facebook is deprecating these very useful options. I do not know why. Users can agree to share the message (the image that comes with it) or not.

And I was able to do a redirect with a returned query string that told me if the user clicked on cancel (if they clicked the Cancel button, I just wouldn't be able to save the overview to my DB). I think they already got rid of it. Another plus is that I didn't have to register on my site or ask them for special permissions.

Can someone please tell me how to add this type of function now. "send and share to facebook".

I need to make sure they are sharing with FB. The query string they are deprecated helped me before.

With the graph open, I'm not sure if this could be related to the dynamic view data.

+3


source to share


1 answer


For the image, you need to provide a parameter picture

in your request (see https://developers.facebook.com/docs/sharing/reference/feed-dialog#params ).

More generally, to define a description, image, or any other details of a web page hosted on Facebook, you need to implement public image tags in the Chapter section, for example:



<meta property="og:url"                content="http://www.nytimes.com/2015/02/19/arts/international/when-great-minds-dont-think-alike.html" />
<meta property="og:type"               content="article" />
<meta property="og:title"              content="When Great Minds Don’t Think Alike" />
<meta property="og:description"        content="How much does culture influence creative thinking?" />
<meta property="og:image"              content="http://static01.nyt.com/images/2015/02/19/arts/international/19iht-btnumbers19A/19iht-btnumbers19A-facebookJumbo-v2.jpg" />

      

I would suggest you take a look at the Webmaster Help Page - Facebook Sharing: https://developers.facebook.com/docs/sharing/webmasters

+3


source







All Articles