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
Related
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 have been working on a website that has a mobile version. Integrated into the site is a bit of code that allows users with FB to register without having to fill out a form. If the user meets any of the following conditions all is well
Uses ANY desktop browser
Users ANY mobile browser
The FB just works. However as soon as I do an 'Add to Homescreen' with IOS to make the app look and perform like a native app, when anyone uses the FB signup I get the
'Given URL is not permitted by the application configuration: One or more of the given URL's is not allowed by the Apps settings. It must match the Website URL or the Canvas URL, or the domain must be a subdomain of one of the App domains'
I am assuming that once you use the add to home screen, and the app gets its own instanced browser, the URL changes, likely some form of localhost derivation maybe?
I can't find any definitive answers to fixing this, and was wondering if anyone else had experienced this HTML5 IOS app problem?
Looks like the dev of the extension I was using will be working on a different authentication flow, so not giving this any more dev time
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.
I am currently in the process of creating a mobile version of my web app.
The app is being developed with Facebook's PHP Client Library.
The issue:
I am using the following mobile url to allow users to log in using the mobile devices:
http://m.facebook.com/tos.php?api_key=APIKEY&v=1.0&next=http%3A%2F%2Ftweelay.net%2Fm.php&cancel=http%3A%2F%2Ftweelay.net%2Fm.php
APIKEY being my app's actual Facebook API key.
In the url I am telling Facebook to redirect the user back to http://tweelay.net/m.php when the user signs in or clicks cancel on the log in screen. I am pulling my hair trying to figure out why it keeps sending the user to http://m.tweelay.net/m.php which is currently an invalid end point.
I have gone through all of my app's settings on Facebook and I cant find any that reference http://m.tweelay.net and going through all of my source code I cant find any that reference the m. sub-domain either.
Any ideas? Is there a setting I'm missing? Maybe a Flag in the library?
I've seen Facebook do this when detecting the mobile browser type and also sometimes randomly through Firefox (it can also happen when trying to get to facebook.com). I've managed to reset it sometimes, but it's not a guaranteed fix.
If you want to be sure the user makes it to your correct site I suggest creating the subdomain and redirecting traffic to your usual site, it's what I did and now I don't worry about it reverting back.