Facebook share and verify shared

0

I put a share button, it opens a new window to share what I set, and if I share, I do an action, if I have not shared it, I do another action.

However, it gives an error in this new window, from facebook itself:

  

Unable to load URL: The domain for this URL is not included   in the application domains. In order to load this URL, add   all domains and subdomains to the Application domains field in the   application settings.

I have seen, verified in my facebook app, in my consensus everything is correct.

This is basically the code I'm using (See JsFiddle is running exactly as I defined it in my test environment):

link

Any information, request, I really need to solve this problem.

    
asked by anonymous 30.03.2017 / 14:55

1 answer

1

The href in your code is for www.google.com , I believe this is the problem. Your facebook app can only use the domains you've set up on it, to add domains you must access your app in https://developers.facebook.com/apps/ and go in configurações from the menu.

By scrolling down you will find this screen

I believe you will need to verify your domain (s), you probably will not be able to reference third-party domains.

    
30.03.2017 / 15:25