facebook-authentication

Using facebook.authorize with the Android SDK does not call onActivityResult

徘徊边缘 提交于 2019-11-30 19:51:34
问题 I'm trying to call the Facebook authorization from my Android activity, but for some reason it never calls the onActivityResult as it should. I followed the official tutorial, and I even created a very simple application just in order to try this functionality: public class SimpleFacebookActivity extends Activity { private EditText console; private Facebook facebook = new Facebook(APP_ID); @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState);

Android: How can I force a facebook auth by mobile web

▼魔方 西西 提交于 2019-11-30 18:20:29
问题 I want to develop the android app with facebook authentication. But if the phone has facebook application in it, I cannot auth on my app, if not, it works well. so, i want to force a facebook authentication by mobile web without facebook application. Only if I use authorize(. , .)in application, it uses facebook app directly. How can I fix this problem?? additionally, Hackbook(https://developers.facebook.com/docs/mobile/android/hackbook/) also doesn't work if I auth by facebook app. I cannot

How can I pass custom information from an App Engine Authenticator to the Endpoint?

纵然是瞬间 提交于 2019-11-30 02:41:33
I am referencing @MinWan 's awesome answer in this post Google Cloud Endpoints and user's authentication , where he describes a way to add custom headers to a request against App Engine's Cloud Endpoints. It becomes clear that we can add a custom header and write an authenticator per each service (e.g. Google, Twitter, Facebook) against which we want to authenicate, where each authenticator reads a specific header and authenticates against the service. If the token is valid, a service typically returns a response with an email address or user id, plus some extra information [A], from which we

The Facebook login doesn't work anymore since I upgraded the Firebase app to the new Console (only)

霸气de小男生 提交于 2019-11-29 19:49:28
问题 I had a working app with Facebook & Email Login feature, since I upgrade the Firebase console (only, the sdk has not been update). The app release before the Firebase 3.0 was working before, but it is not anymore able to sign/log with Facebook after the console has been upgraded. What I have done: 1 - Upgraded the Firebase console Because of Firebase & Facebook console update, I also had to put the Oauth Callback to the Facebook App 2 - Pasted the Firebase Facebook OAuth Callback to the

How to transfer the Firebase reference to another android activity

十年热恋 提交于 2019-11-29 14:48:03
We have 2 Android activities (activity A and activity B) Suppose that we instantiated a Firebase reference in activity A. Activity A also handles all user authentication (Facebook, Google, and email/password). Activity B, which is started from activity A using an Android intent, should use the Firebase reference to access some data on the Firebase servers. Now I was wondering what the best design is to send the Firebase ref from activity A to activity B. Bundle the Firebase reference with the intent using Java Serializable and use intent.getExtra() in Activity B Bundle the Firebase reference

PHP SDK 3.1.1 getUser() sometimes return 0

↘锁芯ラ 提交于 2019-11-29 06:40:37
This is driving me crazy >=( $facebook->getUser() works well sometimes, but sometimes returns 0 Here is my code: require 'fbapi/facebook.php'; $facebook = new Facebook(array( 'appId' => 'xxx', 'secret' => 'xxxxx', )); $user = $facebook->getUser(); the appId and secret are the correct ones. Which could be the reason that getUser sometimes it returns 0??? It's more than likely something on Facebook's end (devs have gone through this before a while back). If $user returns null or 0, simply reroute them to the login url (which you should have). The liklihood of it returning 0 again is minimal

Get publish_action permission after getting read permissions from Facebook

☆樱花仙子☆ 提交于 2019-11-29 02:54:27
问题 I'm integrating Facebook log in in my application. I'm able to get the read permissions but how to get publish permissions from Facebook SDK. This is how I'm asking for the permissions for read: @Override public void onClick(View v) { Session currentSession = Session.getActiveSession(); if (currentSession == null || currentSession.getState().isClosed()) { Session session = new Session.Builder(context).build(); Session.setActiveSession(session); currentSession = session; } if (currentSession

How can I pass custom information from an App Engine Authenticator to the Endpoint?

时光毁灭记忆、已成空白 提交于 2019-11-28 23:03:29
问题 I am referencing @MinWan 's awesome answer in this post Google Cloud Endpoints and user's authentication, where he describes a way to add custom headers to a request against App Engine's Cloud Endpoints. It becomes clear that we can add a custom header and write an authenticator per each service (e.g. Google, Twitter, Facebook) against which we want to authenicate, where each authenticator reads a specific header and authenticates against the service. If the token is valid, a service

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

我怕爱的太早我们不能终老 提交于 2019-11-28 21:31:30
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.com/p/publishing.html after putting site url to begin with http:// it resolve my issue. Now my Site URL

Facebook OAuth 2.0 “code” and “token”

时光怂恿深爱的人放手 提交于 2019-11-28 16:10:48
问题 Why do you need both a "code" and a "token" in the Facebook OAuth2 authentication flow as described here: https://developers.facebook.com/docs/authentication/ ? If you look at the OAuth dialog reference (https://developers.facebook.com/docs/reference/dialogs/oauth/), it seems like you only ever use the token to fetch information about the user, and if you specify the response_type parameter as token or code,token , then you get the token on the first time. Why do you need to get a "code" and