I would like to know if facebook's api can access a website protected by htaccess password ?
Because I need to try some opengraph plugins I did.
thanks
Yes it will work because your server will be accessing the API, but the API won't be accessing your server. You can also run your app in sandbox mode.
Related
I need to launch a Confluence page from another website. The Confluence page is access protected and I need to do the authentication before the page is launched so that Confluence doesn't ask for a username/password.
Is there a way to get this done?
You are looking for application links. There is a good post on Atlassian about how to preform authentication from one app to another by passing the authenticated headers upon request.
I know that this question have been asked before, but my scenario is a bit different. I'm trying to implement login with facebook feature into my website, which has SSL, but when I attempt to login I get an error message:
Insecure Login Blocked: You can't get an access token or log in to this app from an insecure page. Try re-loading the page as https://
Ideas?
This solution was tested on a django application using Facebook OAuth
NOTE
my site already had SSL and is accessible via https
But when trying to login using Facebook OAuth i get the above error (Insecure Login Blocked)
My Solution
all i had to do was to set ( this configuration is done within application setting :: settings.py )
ACCOUNT_DEFAULT_HTTP_PROTOCOL = 'https'
helpful link
which literally means
use *https* instead of the default *http* when trying to login using social account e.g Facebook
Then i also set Valid OAuth Redirect URIs on facebook login settings to https://redirect_url.com
For non django application
If you're not using django, i believe there should be a base configuration file, where all your configurations for the application are done (it might be same file where you've configured your application to use social authentication).
Whatever library you're using to enforce social authentication, search for how you can allow redirect to be done via https instead of the default http and then add it to your application's configuration file.
I hope this helps someone save some time
I need to scrap a URL with server authentication. I've tried to pass login and password in URL like: http://login:password#example.com but no succeed. Any idea if its possible to pass the authentication on Facebook Debugger?
Thanks!
No, the debug tool does not support that - the URLs you provide to Facebook need to be reachable by Facebook's crawler if you want it to pull metadata from those URLs
In version 1 of my website, i implemented Facebook Connect with the JavaScript API. This included authentication, permissions, and publishing.
In version 2 of my website (what i'm implementing now), i have implemented Facebook Connect with the Graph API (OAuth).
I haven't touched the Facebook settings in my application. But when i attempted to authenticate using OAuth, it asked for the same permissions again (email, basic information) - even though i had already granted those before (using version 1)
The only difference i can see if that previously i asked for permissions via FB.showPermissionsDialog, now i use the scope parameter in the login page URL (OAuth).
What this means is when i go live, all my users will have to re-authorize my app, when they in fact shouldn't.
Any ideas? Is it because i'm now using AppId/Secret (OAuth) instead of ApiKey/Secret (JS API)?
FYI i'm using the Facebook Connect C# Toolkit.
I don't think that makes sense. Are you using the same application id? The permissions are between the application and the user, as far as I know.
Problem goes on unsolved, but site is live so not much i can do about it now.
Not a huge deal anyway.
I think you need to validate your oauth using javascript-sdk:
Check this response hope this gives you some idea.
I'm building a Facebook Canvas IFrame application. The application should always have the session_key (fb_sig_session_key) parameter available. Do I need to force the user to login and "add the application"?
I am not using any libraries and am directly working with Facebook's REST web service. I believe all I need to do is redirect the user to a URL just like I am doing when requesting for extra permissions. Can anybody help me on this?
Thanks,
Sri
I found out that it was the same URL as that for authorization.