Redirecting to my page - facebook

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.

Related

Facebook Api Integration for Social Lead Freak

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"

"redirect_uri is not owned by the application" when adding Facebook app

I'm trying to add a Facebook tab to a page using the url:
https://www.facebook.com/dialog/pagetab?app_id=256000XXXXXXX&display=popup&next=https://www.facebook.com/mypage
But I'm getting the error:
API Error Code: 191
API Error Description: The specified URL is not owned by the application
Error Message: redirect_uri is not owned by the application.
In my settings All the URLs are correct, including the App Domains.
Facebook must have changed something because using the url 'https://www.facebook.com/mypage' no longer works. I instead needed to use 'https://www.facebook.com'.

Facebook share link error

I created a facebook app and tried it to send invite a friend or share something on my wall, but I'm getting an error.
The same link is working with another app:
my app id:313714785358239
my link: https://www.facebook.com/dialog/apprequests?app_id=313714785358239&message=Facebook%20Dialogs%20are%20so%20easy!&redirect_uri=http://www.example.com/response
and another link(working):
https://www.facebook.com/dialog/apprequests?app_id=123050457758183&message=Facebook%20Dialogs%20are%20so%20easy!&redirect_uri=http://www.example.com/response
my error:
API Error Code: 191
API Error Description: The specified URL is not owned by the application
Error Message: redirect_uri is not owned by the application.
Make sure you correctly configure domain and site URL (callback URL) to match the redirect_uri you're specifying as a parameter at the app request dialog.
You can configure these settings on https://developers.facebook.com/apps/313714785358239/summary
The App ID 123050457758183 has http://www.example.com as the callback URL and that's why it works.

Gigya Integration Help Needed

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"

login with facebook connect

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.