Home > Net >  FB.ui Share popup on Azure Hosted Application: The domain of this URL isn't included in the app
FB.ui Share popup on Azure Hosted Application: The domain of this URL isn't included in the app

Time:09-17

I have an application I have been developing which is to make use of the Facebook Developers FB.ui share popup:

        FB.ui({
            display: 'popup',
            method: 'share',
            href: imgUrl,
            quote: imgComment,
        }, function (response) { });

This seems to work perfectly when I am developing on localhost:5001 (I have set the following in my FB Dev Application settings):

enter image description here

However, as soon as I publish my application to my Azure hosted site (on the other address I have marked out above) I get the following error when trying to load the FB.ui Share popup:

enter image description here

The URL in the Valid OAuth Redirects URIs matches exactly the location of my Application online on Azure:

enter image description here

so cannot figure out why I am seeing this error when trying to load the Share popup.

CodePudding user response:

The URL in the Valid OAuth Redirects URIs matches exactly the location of my Application online on Azure

The error message wasn't talking about that field, but about the App Domains field.

You find that under Settings -> Basic.

  • Related