Questions tagged [facebook-sdk-4.0]

Facebook sdk 4.0 is latest set of API for facebook developers. It has two branches: - Facebook C#/.Net SDK 4.0 - Facebook PHP SDK 4.0 Use apt tag among two.

Facebook sdk 4.0 is latest set of API for facebook developers. It has two branches:

  • Facebook C#/.Net SDK 4.0
  • Facebook PHP SDK 4.0

Use apt tag among two.

1172 questions
151
votes
9 answers

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

I am using the following code. I want the user's Date Of Birth, Email and Gender. Please help. How to retrieve those data? This is my onViewCreated() inside the Fragment. @Override public void onViewCreated(View view, Bundle savedInstanceState) { …
Sriyank Siddhartha
  • 1,832
  • 2
  • 12
  • 8
118
votes
6 answers

Facebook SDK 4 for Android - how to log out programmatically

Recently, Facebook released SDK 4 with new and cool updates. I tried to switch into SDK4 to use new features, however, I am struggling with the Login feature of Facebook. So far, to log out Facebook programmatically, I used : Session session =…
franco phong
  • 2,219
  • 3
  • 26
  • 43
71
votes
14 answers

ios facebook sdk 4.0 login error code 304

I've just updated facebook sdk v4.0 and according the tutorial of Using Custom Login UIs -(IBAction)facebookLoginClick:(id)sender { FBSDKLoginManager *login = [[FBSDKLoginManager alloc] init]; [login logInWithReadPermissions:@[@"email"]…
jim
  • 1,035
  • 1
  • 8
  • 16
63
votes
3 answers

How to change the height of the 'Log in with Facebook' button?

I already tried several answers I could find but none of them worked with the latest Facebook Android SDK version 4.0. How can I change the layout height with the latest SDK?
Steffen
  • 2,197
  • 2
  • 24
  • 38
57
votes
18 answers

FBSDK Login Error Code: 308 in Objective-C

I keep getting "Error Domain=com.facebook.sdk.login Code=308 "The operation couldn’t be completed. (com.facebook.sdk.login error 308.)"" upon trying to login with Facebook from my device. My code works on the simulator, but not on an actual…
Jude Michael Murphy
  • 1,198
  • 2
  • 12
  • 23
54
votes
8 answers

Custom Facebook Login Button - Android

I''m following this Tutorial but so far I can't make it work, though this is from a year ago or so... I'm using androidStudo 1.2.2 and FacebookSDK 4. I want a simple login into facebook using a custom button, like the one shown in this image: Now,…
NeoVe
  • 3,857
  • 8
  • 54
  • 134
49
votes
4 answers

Android Facebook SDK 4 in Eclipse

Are there some way to import the new Facebook SDK for Android to Eclipse without Gradle or Maven (something like the past way)? I've been watching some pages but i don't find a the way. Thanks
Amaury Esparza
  • 1,028
  • 2
  • 12
  • 18
47
votes
10 answers

Get email and name Facebook SDK v4.4.0 Swift

TL;TR: How do I get the email and name of a user that is logged in on my app using the facebook SDK 4.4 So far I have managed to get login working, now I can get the current access token from anywhere in the app. How I have my login view controller…
CularBytes
  • 9,924
  • 8
  • 76
  • 101
41
votes
8 answers

Why am I getting an error regarding Bolts framework and FacebookSDK when I'm not even using Bolts?

Getting this error framework not found Bolts for architecture x86_64 Followed Facebook's guide word for word, but the only place I can think of an error with linking happening is in the Build Settings for Framework Search Paths. All I currently am…
user6190673
39
votes
4 answers

swift 2 parse facebookSDK ios9

I am trying to Log In a user via Facebook. In the previous version of swift 1.2 everything worked perfectly, but after migration I can't seem to log in via my FB account I am still getting the error saying: -canOpenURL: failed for URL:…
kalafun
  • 3,512
  • 6
  • 35
  • 49
38
votes
14 answers

Could not build module 'FBSDKCoreKit' For FacebookSDK 4

I am having issue while updating Facebook SDK 3 to 4 when I add the framework it was added successfully. but when i add header file it's having the error that " Could not build module 'FBSDKCoreKit' ". Don't know the reason.
Premal Khetani
  • 3,175
  • 1
  • 26
  • 58
37
votes
6 answers

Facebook SDK v4 LoginButton ignores XML customizations

The new Facebook SDK for Android (v4.0) that was released recently caused strange behavior for a customized LoginButton I'm using. Below is a comparison of how the same XML is rendered in different SDK versions. The problem seems to be that the FB…
Dev-iL
  • 23,742
  • 7
  • 57
  • 99
33
votes
6 answers

Logout from Facebook programmatically iOS

I am trying to logout from Facebook programmatically without using FBSDKLoginButton i had search how could I do i found this answer Can we logout facebook programatically but the problem is the FBSession is deprecated in new iOS FBSDK version my…
Ahd Radwan
  • 1,090
  • 4
  • 14
  • 31
32
votes
5 answers

Parse invalid session token (Code: 209, Version: 1.7.1)

I have just update both my Parse and Facebook SDK's (1.7.1 and 4.0 respectively) - both were an absolute pain to get working I might add! However I now getting 209 errors when I try to log in with Facebook. Here's an example of my code: -…
user499846
  • 681
  • 3
  • 11
  • 24
27
votes
3 answers

How to opt out from Facebook SDK event logging?

I'm using Facebook App Events tracking for Android, but I have no idea how to disable tracking when a user wants to opt out! Does anyone know how to do that? The documentation says: We recommend that you use our SDK tools to offer the opt-out. But…
0101100101
  • 5,786
  • 6
  • 31
  • 55
1
2 3
78 79