Setup application to use Microsoft accounts with hybridauth - hybridauth

I want to set my app's redirect URL to "", in Microsoft account Developer Center it tells me that
"You must enter a valid domain that begins with http:// or https:// - query strings are not allowed. Length is limited to 248 characters."
the login button redirects to the following url
Any way I could link to that URL?

It seems to be a bug in the Live provider implementation.
You must edit the hybridauth/Hybrid/Providers/Live.php file and change the line below:
$this->api->authorize_url = '';


BOX API, use Box javascript preview SDK to read all files in my box account

I'm trying to use Javascript Preview SDK to read all files in box account from my web application. I would like to see a preview of all files on my box account from my custom web application. There is some way to use a default ID that allow me to read all folders and files in the box account?
Currently, I'm trying to use:'FILE_ID',{
token: access_token,
container: '.preview-container',
showDownload: true
The access_token is obtained through the procedures described in this page. Besides, using the code above I obtain this error:
No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:3000' is therefore not allowed access. The response had HTTP status code 404. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
How can I set request header using Javascript Preview SDK?
Thank for the response.
You have to add the URL of your app (http://localhost:3000) to the CORS Allowed Origins text area. You can find this field in the form you used to create your application, the same form where you also obtained the Developer token. Note: Avoid the use of trailing slashes in the URL.

API Steam - Account not found

How is possibile when I try to take data in XML API Steam, from my account works:
but if I try to get data from another account doesn't work?
<![CDATA[ The specified profile could not be found. ]]>
In addition, when a user has got a symbols or space in the name, how become the link for API?
User doesn't have custom url "giogio993" associated with his profile. It means that he has user page but it can't be accessed via link unlike your
As for spaces in name - I don't think steam allows this. Just try changing your own name and see what happens.
Also, you can check this account with steamrep:
As you see, field "Custom URL" is just empty.
As for your profile:
Custom URL is okay.
The real question is "how to get user info from account without vanity URL". I did not find an answer to this question yet.
It's simple -- there is no account using this vanity URL. This is not a bug of any sort.
when a user has got a symbols or space in the name, how become the link for API?
Vanity URLs can only take alphanumeric characters (and possibly underscores), so you don't need to worry about special characters. You can also access user XML associated with a community ID via the /profiles/ URL, which might be preferable over mutable vanity URLs.

Given URL is not allowed by the Application configuration while login using facebook Jquery mobile [duplicate]

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 researched the most popular questions on SO already (Question 1, Question 2, Question 3, Question 4, and Question 5)... None of them help with my situation.
I have the application settings laid out like this...
App Domains:
Sandbox Mode: Disabled
Website with Facebook Login
Site URL:
****App Domains*** requires that no protocol be identified and Site URL requires that a protocol be identified.*
I have tried using and that didn't work either. Everything seems to match up. By the way, this is a WP site. I'm not developing locally either. It's all live.
Try to check at Settings > Advanced. At Valid OAuth redirect URIs, make sure you have a correct domain.
Hope it works.
You need to add the URL to your app:
Go to the app, you want for user login, on the Facebook Developers page
Click on the settings tab
Click add platform
Select Website
After selection it will ask for some details such as URL for your website which uses login with facebook feature, fill the form and submit it
That's all and you are done. Make sure that the app's URL is the same from where you're logging in.
Under Basic settings:
Add the platform - Mine was web.
Supply the site URL - mind the http or https.
You can also supply the mobile site URL if you have any - remember to mind the http or https here as well.
Save the changes.
Then hit the advanced tab and scroll down to locate Valid OAuth redirect URIs its right below Client Token.
Supply the redirection URL - The URL to redirect to after the login.
Save the changes.
Then get back to your website or web page and refresh.
This is a basic breakdown for slow people like me, and I didn't see this mentioned before.
The "redirect uri" isn't the place where you're redirecting to, but where it's coming from.
Say you have your app at listening to /auth/facebook, and after they log in, redirecting them to /UserLoginHooray. The "Valid OAuth redirect URIs" should read, not http://myFBapp/UserLoginHooray.
HTTP Requests that have been redirected (302) include the original address in the header, so Facebook is merely putting a very basic layer of security on the request.
I chased my tail on this issue for hours. My coder and I could login with FB without a problem but my wife couldn't. She would get this topic's subject message. I tried every setting and URL that I could think of for my Lavarel app.
My issue was that my wife was signing in from:
http://www and we were using http://
A short trip to CPanel and a redirect fixed that. Hope this helps someone!
For Lavarel these FB app settings worked for me:
Settings/Basic - App Domain: , Site URL:
Settings/Advanced - Client OAuth Login: Yes.
Settings/Advanced - OAuth redirect URIs: ,
App Details/App Center listed platforms = No. I'm only using the login for now.
I have a website with facebook login.
It has been stable and working for months.
No code change has happened for weeks.
Then, suddenly, the facebook login gives an error message:
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.
After debugging "for awhile", I reset my facebook app secret and it started to work again!
Michael Blackburn's answer helped me resolve my issue, but I want to give more detail on my fix.
I have a php app that posts to a user's FB page.
I own two domains: (no hyphen)
I built my site off the first domain because it read better IMHO (at least it did at the time).
Some users typoed the url so I bought the second one with no dashes for that reason.
So, one of my users was having the "Given URL" error.
Turns out he was going to and the rest of them were going to
I fixed everyone by adding all possible redirect URIs:
Granted, there are 100 better ways to implement this, but here is the workaround for now.
1.Make Sure Website Url and platform added, if not then visit then Select
Platform -> Setup SDK -> Website Url And so on..
Note: website url can't be like this : just remove www and make it simple and working ;)
2.Goto App Dashboard -> Setting -> Click on Advanced Tab then go to bottom of the page and enable Embedded Browser OAuth Login
and leave Valid OAuth redirect URIs blank and Save it
Sometimes this error occurs for old javascript sdk. If you save locally javascript file. Update it. I prefer to load it form the facebook server all the time.
Go to facebook developer dashboard
Select settings -> select WEB(for website) -> Add platform
Add your site URL.
This should resolve your issue.
So... facebook distinguishes pretty harshly between http and https in your app. This is just another small thing to check if you run into trouble.
I found Valid OAuth Redirect URIs under PRODUCTS then Facebook Login > Settings not as everyone is stating above. I am supposing this is a version issue.
It still didn't work for me. I guess I really have to add Android Platform rather than just the Website. This is annoying because my app is still in development mode :(
UPDATE: I'm using Expo to develop my react-native app and used info provided here: to set up the Android and iOS platforms. This resolved the issue for me.
I solved this issue by specifying correct site URL in my App Settings.
It works fine now. You have to specify your website Url such as
Under advanced tab make sure "Valid OAuth redirect URIs" contains valid URI or leave it empty(not recommended)
instead of
sometimes you need to check your code (the part of redirect)
$helper = new FacebookRedirectLoginHelper('');
$auth_url = $helper->getLoginUrl(array('email', 'publish_actions'));
echo "<script>'".$auth_url."'</script>";
if any changes happens there (for example, the name of your application "" in relation the application settings in facebook, you will get the above error

How to prevent an authentication return URL from dropping what come after the pound sign?

We have a flash brochure on our site, and the flash plugin use the pound sign (#) as a page referrer.
For example, if I browse the brochure, the url changes to something like this on every page
Now, this site uses authentication. In the event that user is not authenticated at the time, the FormAuthentication in ASP.NET MVC send him to the LogOn page and use the referrer address as the return URL.
The problem is when they authenticate, the return URL exclude the #/13, as it is not escaped, and it just browse them to
How can I make sure the data following the pound sign get encoded as part of the return URL?

Work around AdMob's 35-character URL limit?

To advertise an app on AdMob, you select a “Target URL” which is where users get directed when they click on your ad. A Target URL to the Android Market might look like this:
You also have to enter a “Display URL” which gives users a preview of what they will see once they click on your ad. I could see this URL being (a) the same as above, or (b) the web equivalent of:
The problem is that Google institutes a 35-character limit on the Display URL, and my understanding is they are no longer accepting exception requests for this. I understand Google does this to block URLs like this:
How can I work around this without re-publishing the app with a ridiculously short package name? The generic segment “market://details?id=com.” is already 24 characters, and “” is 34 characters!
To answer the first response about using a shortened URL:
I have not actually tried that, but Google's requirement is: "The display URL's top level domain must match the landing page URL of the promoted website."
And they do not allow redirection. They do go on to say: "If the URL is too long, a shortened version may be used."
So maybe they are referring to your suggestion.
What about using a ShortURL Service like Twitter? There is even one powered by Google: