facebook-sdk-4.x

Implicit declaration of function 'FBSDK_NOT_DESIGNATED_INITIALIZER' is invalid in C99 Expected ')'

此生再无相见时 提交于 2019-12-04 16:37:06
问题 I'm using Facebook SDK for iOS 4.6.0 and just today above error encountered after updating cocoapods to 0.38.2. I'm not sure this error has anything to do with cocoapods. Error screenshot: 回答1: I had the same issue. The problem appeared because, I was connecting both " ParseFacebookUtils " (which was loading " Facebook-iOS-SDK " (which is the deprecated version) and " FBSDKCoreKit " separately. " Facebook-iOS-SDK " and " FBSDKCoreKit " both have " FBSDKMacros.h " which has different

Share button looks disabled

本秂侑毒 提交于 2019-12-04 05:50:37
问题 I'm trying to use a share button in my application, but it looks as if it was disabled: I already initialize the sdk: @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); FacebookSdk.sdkInitialize(getApplicationContext()); } I also have the manifest correctly configured like the documentation suggest: https://developers.facebook.com/docs/android/getting-started The button in the view is like this: <com.facebook.share.widget.ShareButton android

Can I use “import com.facebook.FacebookSdk;” with Facebook SDK 3.23.1?

一世执手 提交于 2019-12-04 02:48:58
问题 In my app\build.gradle file, I have compile 'com.facebook.android:facebook-android-sdk:3.23.1' . In my BaseActivity.java file (where I have "public class BaseActivity extends Activity"), I am trying to use this: import com.facebook.FacebookSdk; . This is the error I get: Error:(8, 20) error: cannot find symbol class FacebookSdk Error:Execution failed for task ':app:compileDebugJavaWithJavac'. > Compilation failed; see the compiler error output for details. I am using https://developers

how to get user data from Facebook SDK on iOS

徘徊边缘 提交于 2019-12-03 15:57:48
Good afternoon! I need to get user data from Facebook. I successfully get data such as the user name, id, photo. But when you try to query such as marital status, I get a response to an empty dictionary. I tried to make different requests, but always get such a result. I also read these themes official Facebook site , this , this like How can I fix this? My example code static func getUserRelationship() { if (FBSDKAccessToken.currentAccessToken() != nil) { guard let currentUser = getCurrentFacebookUser() else { return } FBSDKGraphRequest(graphPath: "/\(currentUser.id)/family", parameters: nil,

Implicit declaration of function 'FBSDK_NOT_DESIGNATED_INITIALIZER' is invalid in C99 Expected ')'

北城余情 提交于 2019-12-03 10:45:15
I'm using Facebook SDK for iOS 4.6.0 and just today above error encountered after updating cocoapods to 0.38.2. I'm not sure this error has anything to do with cocoapods. Error screenshot: I had the same issue. The problem appeared because, I was connecting both " ParseFacebookUtils " (which was loading " Facebook-iOS-SDK " (which is the deprecated version) and " FBSDKCoreKit " separately. " Facebook-iOS-SDK " and " FBSDKCoreKit " both have " FBSDKMacros.h " which has different declarations of " FBSDK_NOT_DESIGNATED_INITIALIZER " and that is why message in XCode appear. What I suggest, if "

FBSDKGraphRequest Response Issue - Not getting scores

主宰稳场 提交于 2019-12-02 10:00:27
问题 I am using following code to get the game score of my facebook friend. -(void)GetFriendScore { NSMutableDictionary* params = [NSMutableDictionary dictionaryWithObjectsAndKeys: [NSString stringWithFormat:@"%@", [FBSDKAccessToken currentAccessToken]], @"access_token", nil]; FBSDKGraphRequest *request = [[FBSDKGraphRequest alloc] initWithGraphPath:@"/me/scores" parameters:params HTTPMethod:@"GET"]; [request startWithCompletionHandler:^(FBSDKGraphRequestConnection *connection, id result, NSError

FBSDKGraphRequest Response Issue - Not getting scores

左心房为你撑大大i 提交于 2019-12-02 03:43:35
I am using following code to get the game score of my facebook friend. -(void)GetFriendScore { NSMutableDictionary* params = [NSMutableDictionary dictionaryWithObjectsAndKeys: [NSString stringWithFormat:@"%@", [FBSDKAccessToken currentAccessToken]], @"access_token", nil]; FBSDKGraphRequest *request = [[FBSDKGraphRequest alloc] initWithGraphPath:@"/me/scores" parameters:params HTTPMethod:@"GET"]; [request startWithCompletionHandler:^(FBSDKGraphRequestConnection *connection, id result, NSError *error) { }]; } and got the response in following formate { data = ( { user = { id = XYZ; name = "XYZ";

Facebook login page showing blank page in IOS 9

浪尽此生 提交于 2019-12-01 07:38:35
I am using FBSDKCoreKit (4.12.0) FBSDKLoginKit (4.12.0) first i am getting screen 1 This method is block is never called . FBSDKLoginManager *login = [[FBSDKLoginManager alloc] init]; [login logInWithReadPermissions:@[@"email",@"public_profile"] fromViewController:self handler:^(FBSDKLoginManagerLoginResult *result, NSError *error) { //never called }]; getting this warning Warning: Attempt to present <FBSDKContainerViewController: 0x16570810> on <ViewController: 0x16528870> whose view is not in the window hierarchy! Then i press ok button i am getting blank page without moving to any other

Facebook login page showing blank page in IOS 9

我与影子孤独终老i 提交于 2019-12-01 05:34:35
问题 I am using FBSDKCoreKit (4.12.0) FBSDKLoginKit (4.12.0) first i am getting screen 1 This method is block is never called . FBSDKLoginManager *login = [[FBSDKLoginManager alloc] init]; [login logInWithReadPermissions:@[@"email",@"public_profile"] fromViewController:self handler:^(FBSDKLoginManagerLoginResult *result, NSError *error) { //never called }]; getting this warning Warning: Attempt to present <FBSDKContainerViewController: 0x16570810> on <ViewController: 0x16528870> whose view is not

Facebook App Invites is deprecated

微笑、不失礼 提交于 2019-11-30 03:34:51
As the latest release of Facebook SDK version 4.28.0 - November 7, 2017 , App Invites is deprecated. https://developers.facebook.com/docs/app-invites/android/ With the release of the Facebook SDK version 4.28.0, App Invites is deprecated. It will be supported until February 5, 2018. It makes the AppInviteDialog not working as expected (show white screen instead of list friends - Facebook app is not installed in the device), even I decreased Facebook SDK version to 4.27.0 or lower). I tried to find out more information at offical docs but no luck. Anyone have a solution for this trouble ? You