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.
Related
I have one WordPress site and an app in codeignitor, App uses its own database to store user and plan details.
Now I want to simplify it like My user can log in to my WordPress website and after successful login I want the login information to forward to the app so that the user can go to the app.
Directory structure:
For Worpress => root->wordpress
For App => root->app
On the same domain hosting.
I want the user's to use WordPress login to access App and manage their profile.
No idea how to proceed. Any suggestions
The most logical way to do this may be to use the cURL. Still, it is impossible to do so because such solutions cannot launch cookies or sessions in your browser and eject your client (essentially a security mechanism). You can try to resolve this by redirecting a user, or the most logical way is to use wordpress api support or capture the data using XML-RPC.
As an update. If both sides are on the same domain, you can try to eject the cookie or the session to the side you want to log in to. If it is under different domains, unfortunately, this suggestion will not work.
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 an app where currently the App Domain is set to www.site1.co.uk as is the Web Platform URL. 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.
I need to change this to www.site2.co.uk. If I change both the App Domain and Web Platform URL to www.site2.co.uk and then go to the website www.site2.co.uk and click on the login withFacebook button I still get the error stating that the url is not permitted by the application settings as it doesn't match the website URL. The Login as Facebook button still works on www.site1.co.uk at this point.
Are these values cached? If so how may I clear them please?
Also will changing these URLS mean that users who have previously registered or logged in via the www.site1.co.uk domain need to re-register etc from www.site2.co.uk or will they be able to continue to access the app via the new url unaffected?
This question/answer (Does changing the Site URL/Domain of a Facebook App affect your users?) suggests that pre-existing users will not be affected but it IS quite old.
Any help gratefully received.
Many Thanks
Liz
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
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.