Facebook site url different from canvas url - facebook

I have a running facebook application (canvas app) on one hosting account.
I tried to create an external website with facebook login using Heroku Node.js, and use this new hosting (the original app created has a different secret and app_id.
If I change the environment variables (secret and app_id) to use my existing (old) app, when I try to run FB calls, I get 'Unsupported get request, error code 100', and the app will not allow any calls.
If I get back to the original app_id and secret given by heroku default - it works well.
Any idea what is the problem? must site url be the same as the canvas url?

Related

Using Facebook Login with Heroku Review Apps

Now that Facebook requires all valid redirect URIs to be manually entered, does anyone know of a way to get Heroku review apps to work with Facebook Login, since each app is dynamically generated based on the pull request, ex https://app-staging-pr-114.herokuapp.com.

Facebook App: Firebase Simple Login URL error

I am trying to make my first app using Facebook login and the Firebase Simple Login. I am running the system locally on http://localhost:8000/. The error I am receiving upon clicking the login button is below.
"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 tried running it on a production facebook app and a facebook test app as well as added URL redirects and website platforms following other forum post I have seen, but nothing is working for me. Anyone have any suggestions?
I discovered in the Firebase documentation that https://auth.firebase.com/auth/facebook/callback must be input into the Valid OAuth redirect URIs under the advanced settings.
Recap of Facebook Test App Settings:
Under Basic App Settings:
Domain = localhost:8080
URL = http://localhost:8080
Under Advanced App Settings:
Valid OAuth redirect URIs [http://localhost:8080/ ; https://auth.firebase.com/auth/facebook/callback]
with newest version, Valid OAuth redirect must be set as : https://.firebaseapp.com/__/auth/handler

Problems with login to webpage using Facebook login:

My website is: www.askachristianlive.org/forum
In the upper right you will see a Facebook icon that is supposed to allow you to login using your Facebook credentials. Every time I get the following error:
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 changed everything I can think of in the app settings and it still will not work. Can you please tell me what I need to do?
My app domain is set to www.askachristianlive.org
Select how your app integrates with Facebook
Website with Facebook Login
Site URL: http://www.askachristianlive.org
I don't know what else to do.
Your problem is that the url generated by oneall is askachristianlive.api.oneall.com which most likely isn't in your allowed app domains
See if you can add the above url to your app domains in your app settings list and if that works.
The problem is oneall is another 3rd party on top of a third party (Facebook in this case) so although your app config in facebook matches your domain, it doesn't match the fact that you have to go through oneall. To be honest I'm surprised that oneall haven't highlighted this fact on their website, as these callback urls would never work for facebook otherwise

How can I use the linkedIn JSAPI within a Facebook app hosted on Heroku?

Is it possible to access the linkedIn API through a facebook app? Facebook/Heroku blocks my code when it tries to access http://platform.linkedin.com/in.js, so I copied the JS and cloned it into my heroku app. But now, the app does not throw an error and nor does it connect to my linkedIn account and display my linkedIn headline as it is supposed to.
Is this a security/permissions matter or am I doing something wrong here? I went to my linkedIn apps page and added my heroku site as one of the domains that will access the API, but I don't think a call is even reaching linkedIn from heroku.
The reason it blocked http://platform.linkedin.com/in.js is because you were accessing it through http. If you refer in.js as https://platform.linkedin.com/in.js, it wont be blocked. If the issue is related to the domains that will access the API not being specified in App configuration of Linkedin then it will be clearly shown in Chrome browser console.

Create website with facebook login for 0fees.net

Today I was trying to add Facebook features to my site. It's hosted on 0fees.net.
On 0fees.net, I uploaded index.html to my web host, for example mysite.0fees.net. This works, and the page opens fine when I access the URL.
Then, on Facebook, I created my Facebook application, and set the 'Website with Facebook Login' setting as http://mysite.0fees.net/, pressed Save Changes. But I got the error message,
Error Site URL is not a valid URL.
When I try set another URL (for example mysite.1fees.net) the application saved fine.
I do not want to change provider, so how can I set mysite.0fees.net?
When trying to post the link http://0fees.net/ on Facebook, you’ll see a message that you can not do so because the domain is blocked for being spammy. So you’ll have to use another domain, I’m afraid. (That’s the problem with cheap webhosting where you’ll only get a subdomain – let one user do something stupid under that main domain, and all other’s using it will get punished as well.)