Facebook Share Dialog | Not showing correct details like name, description

374 Views Asked by At

I am working with Facebook Share Dialog When i call the Facebook Sharedialog it always get the data from href.

Code snippet -

 this.facebook.showDialog({
                    method: 'share',
                    href: 'https://google.com',
                    name: 'Name',
                    picture: 'https://www.w3schools.com/w3css/img_forest.jpg',
                    description: 'Description'
                });

enter image description here

1

There are 1 best solutions below

2
On

See changelog v2.9 of the Graph API: https://developers.facebook.com/docs/graph-api/changelog/version2.9

90-Day Breaking Changes

The following fields are deprecated for edges and dialogs that allow attaching links to posts:

  • caption
  • description
  • name
  • picture
  • thumbnail

This was changed to prevent users from using wrong OG Tags if they do not own the URL. Use OG Tags on the shared URL instead: https://developers.facebook.com/docs/sharing/webmasters/