facebook-authentication

How should a Facebook user access token be consumed on the server-side?

五迷三道 提交于 2019-11-28 15:14:42
Preface I'm developing several web services and a handful of clients (web app, mobile, etc.) which will interface with said services over HTTP(s). My current work item is to design an authentication and authorization solution for the product. I have decided to leverage external identity providers, such as Facebook, Google, Microsoft, Twitter, and the like for authentication. I'm trying to solve the problem of, "when a request comes to my server, how do I know who the user is and how can I be sure?". More questions below as well... Requirements Rely on external identities to indicate who I'm

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://

给你一囗甜甜゛ 提交于 2019-11-27 22:11:29
I am implementing Passport Facebook Authentication by linking the Facebook Authentication API route to a button using href like: <a href="auth/facebook">Facebook Login</a> When I click on the button, it redirects to the Facebook Authentication page. But on the page, an error message is displayed saying something like "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://" How can I fix this issue? Christopher Amazingly I just started trying to do the same thing like an hour ago and have been having the same issue.

python-social-auth AuthCanceled exception

∥☆過路亽.° 提交于 2019-11-27 15:38:28
问题 I'm using python-social-auth in my Django application for authentication via Facebook. But when a user tries to login and when it's been refirected to Facebook app page clicks on "Cancel" button, appears the following exception: ERROR 2014-01-03 15:32:15,308 base :: Internal Server Error: /complete/facebook/ Traceback (most recent call last): File "/home/vera/virtualenv/myapp/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 114, in get_response response = wrapped_callback

Facebook One or more of the given URLs is not allowed by the App's settings

此生再无相见时 提交于 2019-11-27 14:07:03
问题 Result in console: 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. Basically what I am trying is to enable user to login on my blog on blogspot.com, and to post on his wall some message. here is how I configure app on facebook: App Domains :blogspot.com Sandbox Mode :disabled Site URL :my_blog_name.blogspot

Firebase Android Authentication failed: expired_token (Auth token is expired)

喜欢而已 提交于 2019-11-27 07:37:48
问题 I encounter an issue with Android Firebase Auth using com.google.gms:google-services:3.0.0 and com.google.firebase:firebase-auth:9.0.1 . 1 hour after authentication with Firebase (Google or Facebook), I get the following error: W/PersistentConnection: pc_0 - Authentication failed: expired_token (Auth token is expired) Why does Firebase token expire after 1 hour and how to extend this expiration period? UPDATE I still encounter this issue, Firebase token expires after 1 hour. Now I get the

How can I login with multiple social services with Firebase?

梦想的初衷 提交于 2019-11-27 05:58:20
I want users to be able to authenticate to my Firebase application using multiple different auth providers, such as Facebook, Twitter, or Github. Once authenticated, I want users to have access to the same account no matter which auth method they used. In other words, I want to merge multiple auth methods into a single account within my app. How can I do this in a Firebase app? Andrew Lee Update (20160521): Firebase just released a major update to its Firebase Authentication product, which now allows a single user to link accounts from the various supported providers. To find out more about

Facebook iframe tab signed request always empty

▼魔方 西西 提交于 2019-11-27 05:01:48
I'm working on a Facebook app tab and would like to use the signed request bundle as documented here: http://developers.facebook.com/blog/post/462/ I'm trying to use their example code to unpackage the signed request which is supposedly passed to the tab, however, $_POST , $_GET , and $_REQUEST are always all empty. The exact code works on the canvas page and I am able to parse the signed request. Is there something that I'm missing in their recent announcement? By the way, the app is not published to the marketplace, and the fanpage my tab is installed on is private. Will that make a

REST API for website which uses Facebook for authentication

末鹿安然 提交于 2019-11-27 02:22:35
We have a website where the only way to login and authenticate yourself with the site is with Facebook (this was not my choice). The first time you login with Facebook, an account gets automatically created for you. We now want to create an iPhone application for our site and also a public API for others to use our service. This question is about how to authenticate with our website from the app/API and is broken into 2 parts: What is the correct way to handle REST authentication from an API to a website which only uses Facebook OAuth as an authentication method? I have read and researched a

facebook connect- $user_id = $facebook->getUser(); always returning 0 [duplicate]

断了今生、忘了曾经 提交于 2019-11-26 23:07:41
This question already has an answer here: Why is Facebook PHP SDK getUser always returning 0? 26 answers Before i say something i want to say that i GOOGLEd a lot and there were lots of pages found(including many of so's question) with varieties of solutions ... but i have tried each of them one by one but unfortunately none of them worked for me with facebook-php-sdk i am trying to login a user. on first few occasions it was working perfectly fine (2 to 3 days ago.) . Today when i started again working with my project its not working any more .whenever i am trying to login a user $facebook-

When to request permissions with Facebook's new Android SDK 3.0?

空扰寡人 提交于 2019-11-26 21:27:24
With Facebook's new Android SDK 3.0 (that was released a few days ago), the process of authentication has changed. So how do you request a read permission such as "friends_hometown"? The following code is how I am trying to do it - but I'm quite sure it's not the way you should do this: Version 1: protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); Session.openActiveSession(this, true, new Session.StatusCallback() { // start Facebook login @Override public void call(Session session, SessionState state, Exception exception) { // callback for session state