facebook-ios-sdk

Facebook doesn't accept custom Open Graph properties

我的梦境 提交于 2019-12-03 15:42:23
I'm trying to use Facebook iOS SDK 3.5 for publishing an Open Graph action. My action is: take a photo , and photo has an additional required string property named filter . I am creating my graph object (all values are valid and working): NSMutableDictionary<FBOpenGraphObject> *object = [FBGraphObject openGraphObjectForPostWithType:@"tonerapp:photo" title:@"photo" image:imageData url:nil description:title]; Then I add my filter: object[@"tonerapp:filter"] = filterName; I try to post the object, and I can confirm that my filter property is there (enabled FBSetting logging behavior for URL

How to Log out from Facebook or revoke login using Parse and Swift

那年仲夏 提交于 2019-12-03 13:51:14
问题 I'm trying to completely log my user out of my app. When using PFUser.logout() I successfully log the user out of Parse. But when I come back in the app and click on the login button, I'm redirected to the Facebook screen saying :"You have already authorized [name of the app]" So I can never login again with another account, except if I reset the simulator. I also tried to logout using PFFacebookUtils.facebookLoginManager().logOut() But it doesn't work either... Hope you can help me find a

How to Send App request to facebook friends through facebook iOS sdk?

守給你的承諾、 提交于 2019-12-03 13:36:52
问题 I am using facebook sdk for my my iOS facebook application. I want to send app request to multiple users. I am using following method for that purpose. NSArray* actionLinks = [NSArray arrayWithObjects:[NSDictionary dictionaryWithObjectsAndKeys: @"Get Started",@"name",@"http://www.facebook.com/apps/application.php?id=135775646522275/",@"link", nil], nil]; NSString *actionLinksStr = [jsonWriter stringWithObject:actionLinks]; NSMutableDictionary* params = [NSMutableDictionary

SDK 3.1: How to tell whether SDK is using iOS6 accounts or not?

☆樱花仙子☆ 提交于 2019-12-03 12:46:52
If I have a Facebook account set up in iOS6 but the user has switched it off, the SDK just gives me a FBSessionStateClosedLoginFailed status. From that, I can't tell if the user has switched us off in iOS (case 1) or doesn't have an account set up in iOS and declined permission from the FB app or web app (case 2). The error messages I need to present are quite different in the two cases. In the first case, we need to tell the user how to switch us back on, but those instructions would be confusing for someone in case 2. I tried using the iOS Accounts framework, but if I'm switched off, I'm

Facebook login always comes back as cancelled. (iOS Swift)

被刻印的时光 ゝ 提交于 2019-12-03 12:08:17
问题 I'm currently trying implement Facebook login using the 4.0 version of the SDK, this also happens with the 3.+ version. When I call logInWithReadPermissions (4.0 version) or openActiveSessionWithReadPermissions (3.+ version). The closure/block is called immediately with isCancelled (4.0 version) and ClosedFailedLogin (3.+ version) before the user can make a selection ( cancel or ok ). I thought it may be a problem with the URL Scheme in my plist settings but I've checked it over and over and

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 "

FB Login using Swift 3 not returning any values and not get back the user to the App after successful login

亡梦爱人 提交于 2019-12-03 09:17:01
问题 I'm using iOS 10 Swift 3 to integrate FB Login . I have followed all steps from Facebook documentation. Now the issue is, after successful login it doesn't returning any values and not get back the user to the app. Note: The same works perfectly in Swift 2 . 回答1: Hi I raised this issue to facebook developer support and the issue is that I have not implemented the correct delegate methods for iOS10. and you can find the correct delegate implementation here import UIKit import CoreData

FBSessionDelegate methods not firing

陌路散爱 提交于 2019-12-03 08:48:01
I'm attempting to implement the latest Facebook Connect SDK and I'm having some troubles. For some reason the delegate callbacks for FBSessionDelegate protocol are not being fired. I've followed the instructions on the git Facebook page and tried to mimic the Facebook sample app but no luck. I'm going crazy here so I'm gonna post my code and maybe somebody will see something silly that I've missed. #import <Foundation/Foundation.h> #import "FBConnect.h" @interface FacebookWrapper : UIViewController <FBSessionDelegate, FBRequestDelegate, FBDialogDelegate>{ Facebook* _facebook; NSArray*

FBSDKLoginManager logInWithReadPermissions?

旧时模样 提交于 2019-12-03 08:40:24
问题 I'm using FBSDKLoginButton to allow to user login using Facebook and using FBSDKLoginButton.readPermissions = @[@"public_profile",@"email",@"user_likes",@"email",@"user_birthday"]; to ask for permissions , but I need one more permission which is publish_actions I should use FBSDKLoginManager with logInWithReadPermissions:@[@"public_profile",@"user_likes",@"user_birthday"] logInWithPublishPermissions:@[@"publish_actions"] but this for some reason affect on my permission "some of my permission

Facebook iOS SDK - FWWebDialogs not rendering message

前提是你 提交于 2019-12-03 08:32:17
I'm using the Facebook SDK in an iOS app. I'm logging in fine, pulling in friends lists, etc. I've added code to send a request: [FBWebDialogs presentRequestsDialogModallyWithSession:session message:@"Message" title:@"Title" parameters:params handler:^(FBWebDialogResult result, NSURL *resultURL, NSError *error) { // view cleanup here }]; The session is the FBSession stored in the class handling login. The params are suggestions , an array of friends to include. The issue described below occurs equally if params is nil (in which case the list shows all friends). When I call the dialog, this is