I Recieve this error when I am working with an app I am creating:
Error
You have specified an App Domain but have not specified a Site URL or a Mobile Web URL
yoursite.com must be derived from your Site URL or your Mobile Web URL.
Where do I specify the Site URL? I cannot find it anywhere.
Give detailed instructions as FB can be a pain to find things.
There is supposed to be a website tab, where?
Screenshot:
There is a tab called Website. Just put URL int here. Hope it helps
Updated as of 29/05/2012:
It is now called 'Website with Facebook Login'
Updated as of 17/7/2014:
On Settings > Basic
Click on "Add Platorm"
Then select "Website"
Enter URL(s) in the form that appears
You're right. Facebook apps can be daunting at times. This is what the problem is:
The Site URL specifies where the facebook app page redirects to, while the App Domain is used for Authentication (such as login feature, etc).
You are specifying as your App Domain (some-other-domain.com) is a different base URL from your Website >> Site URL (yoursite.com/myfacebookapp).
Use the same for both:
App Domain:: yoursite.com
Site Url:: yoursite.com/myfacebookapp
The App Domain is typically located in the top under the -Your App Settings >> Basic >> Basic Info.
The Website: Site URL is currently located in -Your App Settings >> Basic >>"How your app integrates with Facebook">> Website >> Site URL.
:: Set the Site URL you want the page to redirect to, then, if you would like authentication services for that page, include root domain of your Site URL in the App Domain Section. You are not required to include something in the App Domain section if you do not want Authentication.
This how to register your facebook application
The current process
Settings Page -> Basic Settings -> Add Platform -> Website
Enter the required url in the Site Url field.
There is a tab called "Website with Facebook Login" in "Select how your app integrates with Facebook" box. This is under the Basic info container. Paste your full URL there, like e.g. "http://www.example.com/"
Under apps > settings > website
enter the URL of your website.
Related
I have a wordpress blog and am trying to integrate the facebook page publish version 2 app and keep getting 2 errors, one of WP:
Facebook returned an error: The site URL in your Facebook application settings does not match your wordpress blog URL
And on FB app creator when putting in the app domain:
This must be derived from Canvas URL, Secure Canvas URL, Site URL, Mobile Site URL, Page Tab URL or Secure Page Tab URL. Check and correct the following domains: mywpsite.com
I have not used any http:// just the domain name.
I updated to v2 of facebook plugin, deleted the old version 1, made sure my domain name didn't have upper case, deleted the app in FB and started again and still I get this error.
When I put in the app id into wp plugin the grant access rights button stays grayed out as well, imagine that's because the app is still not set up correctly.
Any help on why I keep getting these errors would be very useful.
Thanks
Andrew
Click the '+Add Platform' box below and depending on the app you want to add, in this case I assume click 'Website', and then add the website's URL to Site URL. This will now allow you to save the URL properly.
I've currently setup a custom tab app on my fanpage - visiting this is working perfectly fine from my browser.
However when visiting the same url from my mobile, I just get some red text on Facebook saying "The page was not found".
I've defined the following (noteworthy) settings for the app:
Namespace (which gives me a canvas page)
Canvas url
Secure canvas url
Page tab url
Secure page tab url
I then also tried to fill out the "Mobile site url" with the same url as the canvas url - thinking this was the missing brick? But atleast not difference.
Any ideas?
because in your mobile browser it will redirect to the m.facebook.com and this functionality is not available for the app users.
You can't achieve this functionality exactly but you can work around Facebooks limitations by providing a canvas app url, and using that to redirect mobile users to a mobile version of your app, and desktop users to the page tab version of your app.
Detailed instructions here:
https://stackoverflow.com/a/15860533/121285
My app's domain is thehub.j.layershift.co.uk
In the "App Domains' box, I'm attempting to put: thehub.j.layershift.co.uk
I also have selected Website with Facebook Login and in the Site URL box, I'm trying to put: http://thehub.j.layershift.co.uk/login
Everything works fine with "localhost:8080", while I was testing. What are these domains invalid?
EDIT:
Tried again, still not working. Surely this can't be this difficult???
EDIT AGAIN:
Screenshot: http://i.imgur.com/rGkrZn4.png?1
FINAL EDIT:
Turns out this was an issue was Facebook. After speaking with a support dude over there, he fixed it in about .5seconds. Thanks for the help!
Try the following (worked for me):
In the app domain put layershift.co.uk
In the app URL put http://thehub.j.layershift.co.uk
thehub.j.layershift.co.uk is not a domain - it is a URL. You should try placing only the domain in the domain field.
That would be -
layershift.co.uk
The other parts of the URL (thehub.j) are subdomains of layershift.co.uk.
One more thing that you might want to take a look at is the fact that the URL http://layershift.co.uk is actually being redirected to http://layershift.com. Facebook is not able to retrieve data from that URL while it is being redirected.
With regard to the Site URL, what you'll want to put there is the landing page of your site/application. When you set the Site URL to /login, anyone reaching your application (logged in or not) will be directed to the /login page.
You know when you create a tab application you have Page Tab section with Page Tab URL: and Secure Page Tab URL:. In my app i want to use FB.init for Fb.login but if I call FB.init i get this 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.
And this is because I dont complete the App on Facebook section from the App configuration, the idea is that i don`t want to complete. What is the alternative?
It might sound counterintuitive, but in your app settings (right near where you set up your Page Tab URLs) you need to open the Website with Facebook Login section and fill in a Site URL. A typical example would be http://mydomain.gov:8080/, but you can include a longer path than / if you want. Also, if you haven't already filled in App Domains, add a domain there to match the Site URL. In my example, it would be mydomain.gov.
The pages that you use the JS SDK on, as well as your redirect_uri in any dialog URLs, needs to begin with the Site URL that you configure.
I have an app that shows the share popup.
I have encountered a problem when trying to get it working form a different server.
I get the following error:
Error An error occurred with myapp. Please try again later.
API Error Code: 191 API Error Description: The specified URL is not
owned by the application
Error Message: redirect_uri is not owned by
the application.
How can I enable it to work from all servers? no matter if they are mine or not?
Any suggestions?
Thanks in advance.
Note:
I would like it to be via the JS SDK.
Facebook apps can only work with one main domain.
The main domain is derived from either the "Site url" or the "Mobile web url" as defined in the app settings page in the Developers application.
You can however add subdomains for that same domain.
For example, let's say your "Site url" is http://app.example.com, you can add more subdomains which you want to use with facebook by adding them to the "App Domains" field in the settings page (basic tab).
You can add subdomains like: http://sub1.example.com or http://example.com.
If you try to add a url that does not derive from that you should get the following error message when trying to save the settings:
Error
DOMAIN_YOU_ADDED must be derived from your Site URL or your Mobile Web
URL.
Edit
You have a problem if you want to use the FB.ui method.
The fb sdk will only accept usage from your own domain, and if you load an iframe from your own domain then the parent window (which is of another domain) won't be able to communicate with that iframe (same origin policy).
What you should be able to do is use the direct url of the feed dialog:
http://www.facebook.com/dialog/feed?
app_id=123050457758183&
link=http://developers.facebook.com/docs/reference/dialogs/&
picture=http://fbrell.com/f8.jpg&
name=Facebook%20Dialogs&
caption=Reference%20Documentation&
description=Using%20Dialogs%20to%20interact%20with%20users.&
redirect_uri=http://www.example.com/response
You can open that in a new window/tab, or if it's an action of a user click then even open a pop-up.
But you won't be able to use the iframe dialog of the sdk.