I've made an app today on Facebook, but I have 1 problem, I get an SSL error when my website was framed in the canvas, so my only option is to redirect people to my website.
Does anyone know how I can do this?
I want the process to go like this:
Click on app
Accept permissions
Redirects to my website
The main thing here is the permissions, I require my visitors Facebook permissions before they're allowed to access my website.
try this :
add your domain in app domain field & Website with Facebook Login here
https://developers.facebook.com/apps//summary
then try this url for not installed app visitors
https://www.facebook.com/dialog/oauth?client_id=
appid&redirect_uri=MY WEBSITE URL&scope=WHAT EXTRA PERMISSION U NEED
Related
I don't use Facebook, so I had to create an account in order to integrate a Facebook Login into our project. I setup the developer account and took down the App Id and App Secret. The response when I try to connect to Facebook currently is:
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 subdomains
of your app to the App Domains field in your app settings.
So I would like to try updating the domains listed. However when I attempted to login I was prompted to provide a picture of myself (which I did) then given this message:
You Can't Log In Right
Now Thanks for sending your photo. We'll get in
touch with you soon after we've reviewed it. Right now, your account
has been disabled as a security precaution.
No timeline, no further information. Any ideas?
Facebook cleared me for access, without notification.
i'm implementing a Facebook Connect and i don't understand the difference between App Domains and Website with Facebook Login.
What is the advantage or disadvantage in put site url in Website with Facebook Login or in App Domains? I've a site that has many alias.I see that if i put in app domains my aliases Facebook Connect works correctly, but i want to understand better the difference.
Bye,
Lorenzo
Site URL
If you want to integrate your website with the facebook, you certainly have to tell facebook the URL to your site where you want to integrate! So obviously, this field is mandatory if you want to integrate your website with fB.
App Domains
Not mandatory to mention the app domain in the settings. This is just used to lock down the domains and sub-domains which can be used to perform Facebook Login on behalf of your app.
I'm trying to build a Facebook app, but everytime I click in authorize, I got an error.
In the code, I'm calling the Facebook API like this:
https://www.facebook.com/dialog/oauth?
client_id=MY_APP_ID
&display=popup
&redirect_uri=http://www.my-url.com/823/
&scope=user_about_me
But instead of authorizing the user, the browser redirect to this URL:
https://www.facebook.com/dialog/permissions.request
And I always get this error:
SECURITY WARNING: Sharing the above URL with anyone is the same as
sharing your Facebook password with them - it will give them access to
your Facebook account. Despite what you may have been promised, you
will not receive cash, a gift card, or free airline tickets in
exchange for this URL.
My Facebook Settings Page:
http://i.stack.imgur.com/g9S9m.png
What am I doing wrong?
Any help would be appreciated! :)
PS: I just tried to change the "redirect_uri", from my site's URL(www.my-url.com/823/) for the canvas page(apps.facebook.com/my-app), and it works.
But I want it to redirect to my site, not for the canvas page.
I had another application that was removed by Facebook last week. The domain I'm trying to use is the same of that old app removed. Is it possible that Facebook put the domain in a black list? Or am I just missing something?
Have you tried to replace the « Website with Facebook Login » by the original URL? (Without the example path (823))
By the way, don't forget to complet app domains.
The problem was that my app was removed by Facebook. When this happens, Facebook puts the site domain in a black list.
The solution was to redirect to the canvas page.
I would like to be able to have a Facebook app (say Example App) that runs in a subdirectory.
Say for example, the domain for my website is: example.com.
I have created separate testing and production sites. So, www.example.com/test is the testing site and the production site is www.example.com.
I am testing out Facebook Connect with JomSocial on my Joomla test site and would like to use my Facebook login to login to www.example.com/test.
I have set up a Facebook app as follows:
App Domain: example.com
Site URL: http://www.example.com/test
When I login with Facebook Connect from the test site, it takes me back to www.example.com and not www.example.com/test/
So my question is, how do I set up my Facebook app Example so that it returns to my test site when I login from the test site?
I look forward to hearing back from you.
Many thanks,
Joyce
You can change the page the user goes to upon login, by going to joomla/components/jomsocial/configuration. On the right there you'll see the option to change for login/logout.
I know there is a way to redirect the page using javascript in the iframe of the canvas application to an external url.But is there any other way so that user directly gets redirected to the external url as soon as they authorizes the application.
i know it is possible because a famous app klout in Facebook does it.http://apps.facebook.com/klout__/
redirects to
http://klout.com/ automatically as soon as the user
Remember i got an invitation request from my Facebook friend.when i clicked the invitation notification and when i authorized the application it redirected to a external url.Any idea how this has been done? And i think this wont be encouraged in Facebook policies either?
Facebook want to make sure that the servers it interacts with are of the same domain that is set up in the app settings.
In the klout example you gave what they did was to add an App Domain which is done in the app settings, but there's a limitation to what domains you can add there.
For example if your site url in the settings is set to "www.example.com" then you can add "examlpe.com" or "sub.example.com" to the app domains.
But if you try to add "www.example2.com" you'll get:
Error
example2.com must be derived from your Site URL or your Mobile Web
URL.
Edit
I'm sorry, I did not understand you correctly.
If you want to simply redirect the user to your url in the main window then you can use javascript like this:
top.location.href = "http://www.example.com";
What I was referring to before is the ability to have "www.example.com/" as the site url (in the settings) and still use "sub.example.com" with redirect_uri and such.
2nd Edit
Forgot to mention this:
In the Facebook Platform Policies it states that:
13 . The primary purpose of your Canvas or Page Tab app on Facebook must not be to simply redirect users out of the Facebook experience
and onto an external site
And so you should not redirect the users out of facebook.