Reputation: 12912
Using:
$FB.ui({
method: 'apprequests',
title: 'Check out this great app!',
message: "This message is displayed in invitation",
display: 'popup'
}, function (response)
{
console.log(response);
});
I get the following error.
Given URL is not allowed by the Application configuration.: One or more of the given URLs is not allowed by the App's settings. It must match the Website URL or Canvas URL, or the domain must be a subdomain of one of the App's domains.
I tried deactivating the sandbox mode. I tried it inside the page-tab and app frames, as well as outside. I tried it locally and on the production server. The facebook-like button on the same page works fine, as well as other sdk-functions.
Any ideas, how to get this running?
Upvotes: 0
Views: 462
Reputation: 33
You must use only one URL that you specified in the app settings. For example if somefile.php is in app settings you can't use someotherfile.php for your app.
Upvotes: 1
Reputation:
In the app settings, under App Domains, the domain you want to use needs to be added.
Upvotes: 0