ios facebook sdk 4.0 login error code 304

I had a similar problem. After initialising FBSDKLoginManager I added a line to flush out the data and the (Facebook)Token: FBSDKLoginManager *loginmanager= [[FBSDKLoginManager alloc]init]; [loginmanager logOut]; Thus, exactly as the OP asks, “am I missing something”? Yes, the following standard example code which is seen everywhere, is simply wrong: -(IBAction)facebookLoginClick:(id)sender { FBSDKLoginManager *login = [[FBSDKLoginManager … Read more

Facebook SDK 4 for Android – how to log out programmatically

You can use LoginManager.getInstance().logOut();, even if you use LoginButton because This UI element wraps functionality available in the LoginManager. EDIT: Just to mention that this works for Facebook SDK v4. I don’t know if they will change it in the future. @as batoutofhell mention, don’t forget to put FacebookSdk.sdkInitialize(getApplicationContext()); to initialize the facebook sdk. Please … Read more

Android Facebook 4.0 SDK How to get Email, Date of Birth and gender of User

That’s not the right way to set the permissions as you are overwriting them with each method call. Replace this: mButtonLogin.setReadPermissions(“user_friends”); mButtonLogin.setReadPermissions(“public_profile”); mButtonLogin.setReadPermissions(“email”); mButtonLogin.setReadPermissions(“user_birthday”); With the following, as the method setReadPermissions() accepts an ArrayList: loginButton.setReadPermissions(Arrays.asList( “public_profile”, “email”, “user_birthday”, “user_friends”)); Also here is how to query extra data GraphRequest: private LoginButton loginButton; private CallbackManager callbackManager; @Override … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)