hugo der hungrige
hugo der hungrige

Reputation: 12912

apprequest says "Given URL is not allowed by the Application configuration"

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

Answers (2)

Anonymous
Anonymous

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

user1932079
user1932079

Reputation:

In the app settings, under App Domains, the domain you want to use needs to be added.

Upvotes: 0

Related Questions