facebook-oauth

How to get email id from facebook using Grails social plugin

此生再无相见时 提交于 2019-12-10 17:04:54
问题 I am using spring-security-oauth-facebook:0.1 grails plugin in my application.Now i want to access person's email id but i am not able each time facebook server respond 1829812989120 for socialId ,Username, profileId and there is no option of email in returning Map object.Why it is happening. oauth { debug = true providers { facebook { api = org.scribe.builder.api.FacebookApi key = 'my-app-key' secret = 'secret-key' successUri = '/oauth/facebook/success' failureUri = '/oauth/facebook/failure'

OAuthException code #2 for particular account when using SessionLoginSample

馋奶兔 提交于 2019-12-10 10:48:58
问题 We've run into a very strange case in which a particular Facebook account fails on a request to 'https://graph.facebook.com/me/friends?access_token=XXX' after successful login. After discovering this case in our app I verified that the exact same exception occurs when using the Facebook SDK sample - SessionLoginSample. After successfully logging into this particular account and granting privileges I return to the sample app and click the test link. This is the response: { "error": { "message"

Facebook Error Codes list?

戏子无情 提交于 2019-12-10 10:15:10
问题 Is there a place where I can find complete list of Facebook's error codes? In my app's stats I have a few 1340004 errors: Method: dialog:oauth:touch Error Code: 1340004 Failures: 436 Sampled Method Calls: 1,172 Failure Rate: 37.2% But what the hell IS that 1340004 error?? The answer is nowhere to be found, and FB's docs got only a small list of payment erros, which are 138* * . Where's the doc for ALL FB error codes? Thanks. 回答1: I noticed that I have the same error: Method: dialog:oauth

Redirect to Page after Facebook Sign Up

时间秒杀一切 提交于 2019-12-09 21:15:00
问题 I'm trying to Redirect a user after successful Facebook SIGN UP (not sign in). I want to redirect to /getstarted/welcome after a user Registers for the first time . My omniauth callback is : def facebook # You need to implement the method below in your model (e.g. app/models/user.rb) @user ||= User.find_for_facebook_oauth(request.env["omniauth.auth"], current_user) if @user.persisted? # This will throw if @user is not activated sign_in_and_redirect @user, event: :authentication if is

Can access token be longer than 255 characters?

╄→гoц情女王★ 提交于 2019-12-08 18:12:51
问题 When allowing login by OAuth (such as OpenID, Facebook, Twitter, etc), we save the access token given by the Oath provider in mysql database for future authentication. In some tutorials, the column for saving access token is varchar(255) and some use text . I wonder if the access token (by common websites such as facebook and twitter) is longer than 255 character needing text column. Should we consider this possibility? 回答1: You won't run in to the problem with Facebook or Twitter from my

Error Message #100 when using Facebook open graph api

江枫思渺然 提交于 2019-12-08 13:11:21
问题 I have managed to get an access token into a Facebook app dynamically but when I try and publish an action I get the error: { "error: { "type": "OAuthExeption", "message":"(#100) Application does not own xxxxxxxxxxxxxxxx action type" } } [Action Type ID Removed] Does anyone have any ideas how to fix this? 来源: https://stackoverflow.com/questions/9163949/error-message-100-when-using-facebook-open-graph-api

Facebook access token expiration how to get extended? perl desktop app

时光怂恿深爱的人放手 提交于 2019-12-08 07:31:12
问题 I made a Perl script for Facebook but it doesn't work after a period of time, or if I log out. I think this is due to the access token expiring. Could somebody help me to extend the expiration of the token? 回答1: First, look here and you can find something similar: https://graph.facebook.com/oauth/access_token? client_id=APP_ID& client_secret=APP_SECRET& grant_type=fb_exchange_token& fb_exchange_token=EXISTING_ACCESS_TOKEN it will return token. But! be sure, that you call this method twice.

email field is optional in passportjs facebook strategy

佐手、 提交于 2019-12-08 00:04:11
问题 I wrote the code for login with facebook, everything works and I'm getting the user's email address. But there is another option on facebook which lets the user select the data my application is going to have access to. If user clicks on that, he'll see the name and everything marked as required, but email is optional and the user can remove it from the data that is going to be provided to the app. On the application, email is required. So how I can mark the email as required on facebook?

MVC 4 oAuth With Facebook does not return email address

混江龙づ霸主 提交于 2019-12-07 16:39:21
问题 I am experimenting witht he MVC 4 oAuth that was released this month. Can anyone point me to where I can add eMail address so that I can store that with user properties? I need to be able to send a welcome email but don't know where to start with the out of the box MVC 4 oAuth. Ideally, after successful login, I want to receive the User Info from Facebook in my controller and drop it in a table so an offline process can send the welcome email. Thanks, Victor 回答1: In order for Facebook to

python oauth 2.0 new fbsr facebook cookie, error validating verification code

£可爱£侵袭症+ 提交于 2019-12-07 08:17:22
问题 I'm trying to use the new fbsr_{{appID}} cookie. I'm using the following functions to parse it, but when I try to get the access_token afterwards, I get 'error validating verification code' message. Is something wrong with these parsing functions? If not, what could be the problem? more info: I managed to log users in without cookies using the oauth link which redirects back into my site with the code as a parameter, so it can't be the app id, app secret or the redirect_uri. Another reason is