S
S
Sergey2017-11-17 14:36:48
JavaScript
Sergey, 2017-11-17 14:36:48

How to embed a facebook dialog on a website?

There is an application on facebook "login with facebook".
I am using the same app_id for dialogs .
On the button I hang onclick for this function:

function facebookShare() {
  FB.ui({
    method: 'feed',
    link: 'http://developers.facebook.com/docs/dialogs',
    caption: 'Hey!',
    redirect_uri: 'https://dev.tripshare.io',
    description: 'Hey hey he!',
  }, function(response){
    if (response) {
      alert(response);
    }
  });
  }

But the facebook window gives:
Unable to load URL: The domain of this URL is not included in the list of application domains. To load this URL, add all of your application's domains and subdomains to the "Application Domains" field in your application's settings.

The domain is included and correct, because I log in through facebook successfully.
It looks like I have to add another product in the application settings besides "facebook login". If so, which one?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Valeriu, 2017-11-17
@butteff

And where did you register the domain in the application settings?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question