Facebook SDK for JavaScript Share dialog not working for Facebook and Instagram URL

20 views Asked by At

My code:

function LaunchFeedDialog(){
    FB.ui({
  method: 'share',
  href: 'https://www.facebook.com/KidsPublicSpeaking',
  app_id: '1665615247095212',
}, function(response){});
}

It shows error upon sharing for any Facebook/Instagram URL:

enter image description here

But it's working fine if I change the "href" to non Facebook/Instagram URL. Need advice on this. Thanks.

0

There are 0 answers