I am trying to develop a new site using gigya for facebook integration
for that i have created a facebook application
then updated my gigya settings like app id and secret id
Grabbed the facebook login plugin code used in my html/jsp, and I am seeing the ‘facebook’ button on the jsp page
When I click on the ‘facebook’ button, its opening a new window and connecting to facebook, but I am seeing below error consistently
{
"error": {
"message": "Invalid redirect_uri: Given URL is not allowed by the Application configuration.",
"type": "OAuthException",
"code": 191
}
}
My environment information given below:
Using JBoss App Server
I have a host name like local.test.me [updated my host file]
I accessed the page like http://local.test.me:8080/test.html
did i miss something??
Gigya has documentation about this:
http://developers.gigya.com/display/GD/Facebook
And other posts in SO here:
Facebook login "given URL not allowed by application configuration"
Related
I'm total newbie in fb marketing, first time tried to create fb app to integrate it in social lead freak and social interest freak. I followed this tutorial but I got the error code:
{
"error": {
"message": "Invalid redirect_uri: Given URL is not allowed by the Application configuration",
"type": "OAuthException",
"code": 191
}
}
Why is this going wrong?
This problem is related to your App configuration inside FB platform - as mentioned in other questions:
Given URL is not allowed by the Application configuration Facebook application error
Try to check at Settings > Advanced. At Valid OAuth redirect URIs, make sure you have a correct domain or let it empty (not recommended)
Facebook login "given URL not allowed by application configuration"
Your settings must be incorrect.
Go to http://www.facebook.com/developers/ and edit the application you're working on.
On the "website" tab, look for "Site URL". This should be set to your website's URL "http://yoursite.com/"
Note that if you're using subdomains, you'll also need to update "Site Domain" to be "yoursite.com"
I'd like my application to like a facebook page on behalf of the user with an API call.
I saw this part of the documentation and tried to make the following post request:
https://graph.facebook.com/101544000571/likes?access_token=MY_ACCESS_TOKEN
where 101544000571 is a page id and got the following error:
{
"error": {
"message": "(#3) Application does not have the capability to make this API call.",
"type": "OAuthException",
"code": 3
}
}
I thought it's a permission problem but the application (in this case it's the graph API explorer application) has all the permissions necessary.
What am I missing here?
You cannot like a page using the Facebook Graph API. It is not supported.
You can use the the Like button social plugin.
The doc mentions : "For Facebook Pages or websites that do not integrate with Facebook Authentication, developers should continue to use the Like button social plugin."
I'm trying to setup Janrain Engage with my drupal website.
I have created a Janrain account
I have setup the providers (including Facebook)
I have installed and configured the module (Drupal 7)
I have have everything showing on the login page as would be expected
I have created a Facebook app
Everything seems to be fine but...
When I try to log in with facebook I get this error message:
{
"error": {
"message": "Invalid redirect_uri: Given URL is not allowed by the Application configuration.",
"type": "OAuthException",
"code": 191
}
}
Can anyone please tell me what i'm doing wrong here :(
Thanks
C
I found the solution here:
https://support.janrain.com/entries/470621-how-to-resolve-a-facebook-settings-error
I have ASP.Net application, and want users to access it from facebook via IFRAME
Application is located at:
facebook.tk-osmica.hr/
My setup: (leading http removed to avoid stackoverflow restrictions)
Canvas URL: facebook.tk-osmica.hr/
Canvas Page: apps.facebook.com/dankotestd (raedonly)
in my web.config i did setup API Key and secret,
and "PostAuthorizeRedirectURL=Default.aspx"
i'm getting error:
"error":
"message": "Invalid redirect_uri: Given URL is not allowed by the Application configuration.",
"type": "OAuthException"
I was forwarded to URL:
https://graph.facebook.com/oauth/authorize?client_id=244980988904443&redirect_uri=http://apps.facebook.com/dankotest2/Default.aspx&scope=user_photos
I guess I should have been redirected to:
https://graph.facebook.com/oauth/authorize?client_id=244980988904443&redirect_uri=http://facebook.tk-osmica.hr/Default.aspx&scope=user_photos
but i can't set it up to do so.
What is right configuration?
Thank you!
Are you building a canvas (iframed) app, or a web page that has facebook functionality? If you're building a canvas app, then being redirected to https://graph.facebook.com/oauth/authorize?client_id=244980988904443&redirect_uri=http://apps.facebook.com/dankotest2/Default.aspx&scope=user_photos was correct. Because your canvas app will live at http://apps.facebook.com/dankotest2/Default.aspx.
I'm trying to add facebook oauth to my website. The "login with facebook" button hits the following URL
https://graph.facebook.com/oauth/authorize?client_id=292861684087978&redirect_uri=http://localhost:8080/foobar/register/facebookLoginHandler&scope=user_about_me,email
When the button is clicked I get the error message:
{
"error": {
"message": "Invalid redirect_uri: Given URL is not permitted by the application configuration.",
"type": "OAuthException"
}
}
So it seems like facebook doesn't like my redirect_uri. I've registered my app with the following settings on facebook:
App Domain: foobar.ie
Site URL: http://www.foobar.ie
Obviously while I'm testing locally, the redirect_uri doesn't correspond to my registered domain, but my understanding is that facebook always allows localhost:8080 for the purpose of testing?
I havent managed to get it working with localhost URLS. What I do is add an entry in my hosts file and then give facebook the mapped url.
You wont be able to use the URL Debugger for testing Open Graph stuff, but you'll be able to view the canvas of your app - apps.facebook.com/your_app for testing purposes as the canvas apps are run in an iFrame and calls to it originate from the client machine therefore going through the hosts file. You'll have to update every (tester's) computer's hosts file for them to be able to view your locally developed app.