How do I keep my applications settings on Facebook, so that it supports subdomains?
I just integrated a question and answer type forum on a school community and its available at http://swades.engr.scu.edu/askswades/
Thus here were my settings on Facebook :
Site URL : http://swades.engr.scu.edu/
Site Domain : scu.edu
I am not able to get it working this way. What am I doing wrong? I double checked the API settings on code, and its all right.
Will be great if someone can help me! Thanks in advance!!
This is setup correctly and should be working. Without seeing errors, its hard to know what's broken.
As long as you only implement Facebook Authentication on URLs which are a subdomains of your Site Domain, all is well. The Site URL is for linking purposes, it does not tie FB Auth to that URL.
You can check Auth is working by calling FB.login() in JS in any page which is being served on a subdomain of scu.edu: https://developers.facebook.com/docs/reference/javascript/FB.login/
Facebook says that all subdomains will work, but you can try adding swades.engr.scu.edu also to your list of domains.
Related
Im looking for a simple Facebook share button that will open a new browser window and share the current page URL.
This was simple with Twitter using:
Im looking for something very similar for Facebook however it seems like with Facebook it is made purposely more difficult than it could be.
I have tried at least 10 different ways and always get the same error:
Can't load URL: The domain of this URL isn't included in the app's domains. To be able to load this URL, add all domains and sub-domains of your app to the App Domains field in your app settings.
I am already including the Facebook web API below the first body tag.... I have also gone into Facebook developer settings and correctly setup eve tying by entering the root domain I intend to share
Thankyou for any help
You could use the old simple sharer
Share on Facebook
I have a situation where I need to be able to make calls to my Facebook App from 2 domains. Previously everything has come from www.domain1.co.uk but now I need to change my Website platform url to www.domain2.co.uk.
In accordance with this qu and answer (Facebook login with multiple domains.)
I have added a dummy canvas page (no page tab tho) which has been assigned to www.domain1.co.uk and changed my website platform url to be www.domain2.co.uk. I have then added www.domain2.co.uk to my App Domains.
So my App Domains are now www.domain1.co.uk and www.domain2.co.uk.
Currently the Facebook Login function still works for my website # www.domain1.co.uk but not # www.domain2.co.uk. I made the changes a good 5 hours ago.
I use Login with Facebook and Register with Facebook via this app. Client OAuth Login and Web OAuth Login are enabled for this app. There are no Valid OAuth redirect URIs stored.
Could anyone point me in the direction of what I need to fix here please?
Many thanks.
Kind Regards
Liz
Okay intensive investigation has revealed that it helps to make the changes to the correct app.
The changes kicked in immediately at that point.
Apologies for any wasted time.
I tried creating a facebook login using facebook php sdk, and currently I am having 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.
I have already added the site url of my website, and also placed it in the app domain.
My application is still in sandbox mode, so right now I have no idea why facebook is giving that error. Have I missed something from my settings?
my domain(example):
www.mydomain.com
My website is on a subdomain :
www.mydomain.com/websitesample/website
My app domain and site url both have the same value:
http://www.mydomain.com
Aside from these settings I have double checked my app id and app secret. I have waited for at least 15 minutes because I have read somewhere that when saving changes on your application you'd still have to wait for the changes to propagate through facebook's servers. What else could I have missed?
Just use as App Domains: mydomain.com
So every subdomain will work.
Btw - www.mydomain.com/websitesample/website <- websitesample/website isn't a subdomain, it's a directory and this won't cause any problems.
Visit developer.facebok.com
Select facebook application
Enter the
settings tab on the left side
Available on the page, basic tab, click to Add Platform
Click to website
Your website type to Site URL section ex: yourdomain.com/xx/..
Click to Save changes.
best regards.
My colleague and I have gotten to have fixed it somehow. We added the subdomains in the app domains and it's now working.
Check in settings page as:
App Domains: www.mydomain.com,
Canvas Page: https://apps.facebook.com/app_name,
Canvas URL: http://mydomain.com
I am trying to run facebook App from my localhost .I made the canvas URL and secure Canvas URL to http://localhost/myapp and https://localhost/myapp .but the link http://localhost/myapp doesn't even work at my localhost.I enable mode_ssl and php_openssl extentions as well.I read different tutorials on internet but all invain. Anyone who already tested facebook apps on localhost.
Thanks
If you want to do it properly, try following this tutorial:
http://www.phpjoel.com/2011/04/07/installing-ssl-using-openssl-on-a-wamp-localhost/
The issue isn't anything to do with Facebook, so just concentrate on getting it without facebook first.
I haven't bothered making a self signed certificate to test facebook apps, what I have done though is make sure secure browsing is turned off on facebook. Then you should be able to hit the http://localhost/myapp and it won't redirect you.
I don't know if I'm too stupid or something similar but I have a problem with implementing the HybridAuth code into my webpage.
I've run install.php and followed this "tutorial" for a simple twitter login. The login itself is running well, but the code on the tutorial says that at the end there should be printed all the twitter info which is transfered from twitter over HybridAuth to my page.
But HybridAuth is always redirecting me to my index.php (the base_url which I have declared at the install.php file). I know that it works because at the adress bar the URL says something like http://localhost/alpha/index.php?hauth.start=Twitter&hauth.time=1352184502 ... but yeah, there is no info printed or something similar, just my site-index is visible.
Is there a trick or something I've forgotten?
Hybrid Auth don't requires a real domain for testing purposes. The mistake was just laying at the Twitter Dev-Channel where the App-Name has to be the same as the domain (in my example -> localhost).
But thanks for every tipp!
Hybrid Auth login for twitter and facebook requires a valid domain not localhost.
You can find similar post and answer here: Hybrid auth with Yii causing a redirect loop