How to manage localhost with Instagram basic display API - facebook

I want to use Instagram basic display API but I have a problem with localhost Oauth callback URL.
In the developpment panel of Meta we are force to enter HTTPS callback URI. So how can i make it work in localhost ?
images of meta developper panel
error code with http
My code is working well if i use https://localhost:8000 but i'm not able retrieve data from here.
instagram allow connection
sucess with https but no server handle it
Thank you in advance for your help

Related

Stuck while using Facebook's Oauth with Python Flask as a backend service

I'm currently building out an API in Python Flask and am working on my authentication layer. Everything seems to be working aside from my request to retrieve an access token from Facebook's API.
I'm redirecting to https://graph.facebook.com/oauth/authorize after my own authorize endpoint is hit and the response is HTML. On browser, this obviously works, but since my intention is to use this API as the backend of an IOS app, I'm looking for an endpoint that returns the url, rather than the html, of the facebook login. Is there another endpoint I should be using?
Any help would be greatly appreciated.
Thanks,
Chris
Okay, nevermind, I realized that I was redirecting my API to the authorization URL when I should be returning the URL so that the user on the client side can then be redirected there.

Login with facebook - Insecure Login Blocked

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

Facebook debugger authentication

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

Cakephp 2.4.5, classic Auth seem block opengraph request

I was using classic Auth without any problem while I want to put some social button.
With Facebook or G+ button, I see no image on the share card create by the button... after some inspection, I realized CakePHP seems to block opengraph requests.
Open Graph Object Debugger says "error 200" and I suppose the cakephp Auth component blocked it.
But, in my first controlleur, every action are granted ($this->Auth->allow();) but nothing change....
How can I authorize Opengraph requests with the cakephp Auth component?
In fact, the problem was cause by the Gzip compression used by the server.
Disable this feature (with .htaccess) resolve the problem...

Facebook Connect and HTTP basic authentication

I am working on a site that uses Facebook Connect for user login/creation. I have a development server which is used for QA, and I'd like it to be password protected. We wanted to use HTTP basic authentication, but that seems to break Facebook Connect (it falls in a loop). Does anybody know why that may be happening?
I believe that basic authentication is done on a browser basis, and all the communication between Facebook and our site is done in the browser of the user. What could be the problem?
Facebook Connect uses iFrame inside iFrame hack to overcome cross domain boundaries limitation (see http://wiki.developers.facebook.com/index.php/Cross_Domain_Communication for details). My guess is that when Facebook redirects to the callback page (xd_receiver.htm) it fails because later requires basic authentication.
More information needed on the "falls in a loop". But based on your question, from what I've read is that facebook connect will create a random password on account creation, and if they are logging in over basic auth, it will need to be changed to match up(http://www.boonex.com/unity/forums/topic/facebook-connect-error-.htm)
But you don't specify if that's the way you are using FBconnect.
Are you requiring basic auth to get to the point of FBconnect account link/create?
Or are you using FBconnect to create the login for the basic auth?
How are you requiring basic auth? Server type?
Does everything work without requiring basic auth?