facebook-oauth

Specify multiple redirect URIs for facebook OAuth2

别说谁变了你拦得住时间么 提交于 2019-12-29 05:23:08
问题 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:

oauth facebook with grails accessing token

…衆ロ難τιáo~ 提交于 2019-12-25 04:51:20
问题 Its a grails project, Facebook authentication is successful via oauth, Now when it comes back to my controller, I want to get emailID of the logged in user, Searched a lot, but did not find proper documentation, I am using scribe and have following code in Config.groory import org.scribe.builder.api.FacebookApi oauth { providers { facebook { api = FacebookApi key = 'xxxx' secret = 'yyyy' callback = "http://my-domain-name-here:8080/TestOAuth2/dashBoard/facebooklogin" successUri = "http://my

Can't login WSO2 API manager via wso2 identity server and Facebook credential

ぐ巨炮叔叔 提交于 2019-12-25 01:15:38
问题 What I wanna do is : 1.SSO with wso2 Identity server 5.1.0 and wso2 API manager 1.10.0 (done) reference : https://docs.wso2.com/display/AM1100/Configuring+Single+Sign-on+with+SAML2 2.Login wso2 API manager 1.10.0 via Facebook credential (fail) reference : https://docs.wso2.com/display/IS510/How+To%3A+Login+to+the+Identity+Server+using+Facebook+Credentials The situation is : 1.When I go to the login page of APIM , it will redirect to Facebook login page via Identity server. 2.I login to

Facebook Login from subdomains (too many “Valid OAuth redirect URIs”)

我只是一个虾纸丫 提交于 2019-12-22 18:38:37
问题 I've faced with the following problem: I'm using Facebook js sdk for the login process. In App settings Site URL is set to "http://example.com/" , App Domains are "example.com, www.example.com" . In Facebook Login Settings "Valid OAuth redirect URIs" are "http://example.com/, http://www.example.com/" . From the main domain it works just fine, but under subdomain (e.g. http://subdomain.example.com/) i get the following error: "URL Blocked: This redirect failed because the redirect URI is not

Facebook messenger bot error nonexisting field (messages)

女生的网名这么多〃 提交于 2019-12-22 14:40:07
问题 I am a new member. I have an error when send message using HTTP Post to "graph.facebook.com/v2.11/me/messages?access_token=MY_PAGE_TOKEN" This is error return: `{"error":{"message":"(#100) Tried accessing nonexisting field (messages) on node type (Page)","type":"OAuthException","code":100,"fbtrace_id":"EB39Xkxnf6O"}}` Despite error, tester and developer still able to receive message. But the FB viewer might not and they not approve my review submission: "We did not receive an automated

Facebook messenger bot error nonexisting field (messages)

青春壹個敷衍的年華 提交于 2019-12-22 14:38:08
问题 I am a new member. I have an error when send message using HTTP Post to "graph.facebook.com/v2.11/me/messages?access_token=MY_PAGE_TOKEN" This is error return: `{"error":{"message":"(#100) Tried accessing nonexisting field (messages) on node type (Page)","type":"OAuthException","code":100,"fbtrace_id":"EB39Xkxnf6O"}}` Despite error, tester and developer still able to receive message. But the FB viewer might not and they not approve my review submission: "We did not receive an automated

Facebook PHP SDK 4.0 - Cannot re-ask read permissions once denied

只愿长相守 提交于 2019-12-22 10:38:05
问题 I'm currently asking users for two read permissions i.e. email and user_location and one write permssion i.e. publish_actions . Following is the code snippet I'm using to verify if the user has granted all requested permissions: $facebook = new Facebook(APP_ID, APP_SECRET, REDIRECT_URI); if ( $facebook->IsAuthenticated() ) { // Verify if all of the scopes have been granted if ( !$facebook->verifyScopes( unserialize(SCOPES) ) ) { header( "Location: " . $facebook->getLoginURL( $facebook->denied

Facebook OAuth is not returning email in user info

谁都会走 提交于 2019-12-22 07:03:07
问题 I'm doing a spree 3.0 installation (ROR) and trying to use facebook oauth for authentication, but the fields sent back after a successful oauth, do NOT contain the email, which is critical to our application. here is the return from the facebook successful authentication. #<OmniAuth::AuthHash credentials=#<OmniAuth::AuthHash expires=true expires_at=1442435073 token=

Ruby on Rails Devise Oauth-facebook OmniAuth::Strategies::OAuth2::CallbackError

和自甴很熟 提交于 2019-12-21 04:49:11
问题 Im implementing oauth login with facebook and devise and When returning from accepting the app (the popup) i get the following error: Could not authenticate you from Facebook because "Csrf detected". this is the log: Started GET "/users/auth/facebook/callback" for 127.0.0.1 at 2014-01-23 23:59:58 +0100 ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" (facebook) Callback phase initiated. (facebook) Authentication failure! csrf_detected: OmniAuth:

Fix Rails oauth facebook x-frame-options sameorigin error

旧城冷巷雨未停 提交于 2019-12-21 02:00:35
问题 I can't for the life of me get my Facebook canvas app to display. Chrome console displays this error and nothing shows up inside the iframe - it's blank: Refused to display 'http://mysite.dev/' in a frame because it set 'X-Frame-Options' to 'SAMEORIGIN'. I'm using Rails 4.0.0.rc1 and omniauth-facebook 1.4.1 , following the Railscast on Facebook Authentication as a guide. I didn't use any of the Javascript code since it was optional and ideally the app should only be accessed within Facebook.