facebook-oauth

Access token immediately invalidated

对着背影说爱祢 提交于 2019-12-01 06:30:17
for a few users (maybe not that few, considering the number of related mails I'm receiving) the access token associated with an OAUTH authorization seems to be immediately invalidated. The user is guided through the usual authorization process, he accepts the permissions, he is redirected to the right page which includes the access token, but as soon as my application tries to use the access token to get the user ID, an error is received instead: {"error":{"message":"Error validating access token: Session has expired at unix time 0. The current unix time is 1323939801.","type":"OAuthException"

OAuthException “(#210) Subject must be a page.”

那年仲夏 提交于 2019-12-01 03:42:23
I Keep getting OAuthException (#210) Subject must be a page. error even if I am using the Page Access Token and not the App Access Token . I am using the following: Latest JavaScript SDK from facebook (//connect.facebook.net/en_US/all.js ) Calling the /{PAGE_ID}/tabs?app_id={APP_ID}&method=POST&access_token={PAGE_ACCESS_TOKEN} using the FB.api method once the user is logged in. My Application is not FBML but a Canvas / iFrame App. What am i doing wrong? I have researched the web including the Stackoverflow and other facebook forums but still no answer on this. OAuth is Enabled for my

OAuthException “(#210) Subject must be a page.”

空扰寡人 提交于 2019-12-01 01:09:51
问题 I Keep getting OAuthException (#210) Subject must be a page. error even if I am using the Page Access Token and not the App Access Token . I am using the following: Latest JavaScript SDK from facebook (//connect.facebook.net/en_US/all.js) Calling the /{PAGE_ID}/tabs?app_id={APP_ID}&method=POST&access_token={PAGE_ACCESS_TOKEN} using the FB.api method once the user is logged in. My Application is not FBML but a Canvas / iFrame App. What am i doing wrong? I have researched the web including the

How get Facebook token using Oauth2 with chrome.identity

不羁岁月 提交于 2019-11-30 07:28:50
I'm using chrome.identity in a packaged app to get a user token using Facebook. I call chrome.identity.launchWebAuthFlow, and I need to take the access token, send it to the server, and then access token is used to verify the user. Works great with Google+. But for some reason, it doesn't work for Facebook. For some reason, Facebook's OAuth appears to be special. I've added the extensionid.chromiumapp.org to the list of redirect URLs in the API. Added "https://extensionid.chromiumapp.org/*", "https://facebook.com/*", "https://www.facebook.com/dialog/", "https://graph.facebook.com/*" to

Facebook OAuth: custom callback_uri parameters

核能气质少年 提交于 2019-11-29 21:17:36
I'd like to have a dynamic redirect URL for my Facebook OAuth2 integration. For example, if my redirect URL is this in my Facebook app: http://www.mysite.com/oauth_callback?foo=bar I'd like the redirect URL for a specific request be something like this, so that on the server, I have some context about how to process the auth code: http://www.mysite.com/oauth_callback?foo=bar&user=6234 My redirect gets invoked after the authorization dialog is submitted, and I get back an auth code, but when I try to get my access token, I'm getting an OAuthException error back from Facebook. My request looks

Passport.js: passport-facebook-token strategy, login through JS SDK and THEN authenticate passport?

江枫思渺然 提交于 2019-11-29 20:29:09
I was looking for a way to let my client authorize with the facebook JS SDK and then somehow transfer this authorization to my node server (so it can verify requests with the fb graph api) I stumbled across: https://github.com/jaredhanson/passport-facebook/issues/26 & https://github.com/drudge/passport-facebook-token what seems to be an entirely different strategy from passport-facebook. Am I correct when assuming that: One logs in with the fb JS SDK, and then the facebook-token strategy somehow extracts the token and fb id from the document or body object? Or is there any other decent way to

Facebook iframe app being redirected out of canvas after user authorization

≡放荡痞女 提交于 2019-11-29 02:44:19
My facebook app is being redirected to the canvas url (http://my-domain/app) after the user has authorized the app. The sequence of steps is described below: 1) A new user opens the app in canvas and is redirected to oauth permissions dialog via Javascript redirection 2) Once the user has authorized the app, the redirect_uri of the app is called and I get the access token which I save in session 3) I also get the user id of the authorized user and save it to session 4) When I redirect it to the canvas url, it moves out of the facebook canvas 5) If I try to redirect it to the canvas page (http:

Specify multiple redirect URIs for facebook OAuth2

依然范特西╮ 提交于 2019-11-29 02:04:45
My web application is deployed to a production site, but I also need to perform local development. Besides, I have a couple of test servers where I perform different testing activities. I would like to specify all these URIs for Facebook OAuth2. With Google OAuth2 there is no problem: I can specify as many redirect URIs as I need. Is this possible with Facebook? How? I am using the "Website with Facebook Login" option to integrate with Facebook. Currently I am getting: { error: { message: "Invalid redirect_uri: Given URL is not allowed by the Application configuration.", type: "OAuthException"

Passport.js: passport-facebook-token strategy, login through JS SDK and THEN authenticate passport?

与世无争的帅哥 提交于 2019-11-28 17:07:46
问题 I was looking for a way to let my client authorize with the facebook JS SDK and then somehow transfer this authorization to my node server (so it can verify requests with the fb graph api) I stumbled across: https://github.com/jaredhanson/passport-facebook/issues/26 & https://github.com/drudge/passport-facebook-token what seems to be an entirely different strategy from passport-facebook. Am I correct when assuming that: One logs in with the fb JS SDK, and then the facebook-token strategy

Facebook OAuth: custom callback_uri parameters

可紊 提交于 2019-11-28 16:56:09
问题 I'd like to have a dynamic redirect URL for my Facebook OAuth2 integration. For example, if my redirect URL is this in my Facebook app: http://www.mysite.com/oauth_callback?foo=bar I'd like the redirect URL for a specific request be something like this, so that on the server, I have some context about how to process the auth code: http://www.mysite.com/oauth_callback?foo=bar&user=6234 My redirect gets invoked after the authorization dialog is submitted, and I get back an auth code, but when I