Q . Can I add image link in the facebook share button.

Dev Singh. asked, Aug 02 ' 2017

Like :

http://www.facebook.com/share.php?u=http://www.codeman.in/questions/222/question-title&title=this is a title&image=http://www.codeman.in/image-path/image.jpg"

 

  • facebook
  • share

1 Answers

Use facebook feed dialog instead of share dialog.

window.open('http://www.facebook.com/dialog/feed?app_id=21548451248643&display=popup&link=http://www.codeman.in/questions/222/question-title&caption=This is a caption&description=This is a description&picture=http://www.codeman.in/image-path/image.jpg', 'facebook_share', 'height=320, width=640, toolbar=no, menubar=no, scrollbars=no, resizable=no, location=no, directories=no, status=no');

Another option

https://www.facebook.com/dialog/feed?
  app_id=458358780877780&
  link=https://developers.facebook.com/docs/reference/dialogs/&
  picture=http://fbrell.com/f8.jpg&
  name=Facebook%20Dialogs&
  caption=Reference%20Documentation&
  description=Using%20Dialogs%20to%20interact%20with%20users.&
  redirect_uri=https://mighty-lowlands-6381.herokuapp.com/&
  display=popup

 

Source : http://www.local-pc-guy.com/web-dev/facebook-feed-dialog-vs-share-link-dialog

Leave a Ansewer