facebook-ios-sdk

NSInvalidArgumentException thrown from ACAccountStore when calling [FBSession openActiveSessionWithPermissions…] on iOS 6.0 and iOS 6.0.1

不羁岁月 提交于 2019-11-29 03:55:29
With Facebook iOS SDK 3.1.1, I'm performing login using this call - NSArray *permissions = [[NSArray alloc] initWithObjects: @"email", @"user_birthday", @"user_location", nil]; @try { return [FBSession openActiveSessionWithReadPermissions:permissions allowLoginUI:allowLoginUI completionHandler:^(FBSession *session, FBSessionState state, NSError *error) { [self sessionStateChanged:session state:state error:error]; }]; } @catch { ... } There are rare cases when this method throws NSInvalidArgumentException with message Access options are not permitted for this account type. The options argument

exc_bad_access in Facebook sdk login Xcode 8 beta

瘦欲@ 提交于 2019-11-29 02:50:01
问题 recently I started adding my application IOS 10 features while I encountered a weird bug: When authenticating with facebook SDK via browser as soon as I click the confirmation button in facebook itself at the embeded browser, the app crashes. Unfortunately this bug is not informative, the console doesn't tell me anything about it and there is not call stack to see where this exception was occurred. Two points for demonstrating this bug cause: 1. This bug doesn't occur if the login is via

Facebook API - How to cancel Graph Request

我怕爱的太早我们不能终老 提交于 2019-11-29 02:13:19
I occasionally need to cancel a FaceBook graph request, but there seems to be no cancel or similar method in their API to do so. At the moment, crashes sometimes occur as the delegate I assigned to the request has been deallocated. Is there any way to cancel a graph request once submitted please? Matt Wilding I'm assuming you're talking about the facebook-ios-sdk project, and the lack of a cancel method in Facebook.h. I noticed this as well, and eventually decided to add my own cancel method. Just to note, the delegate you assign to the request shouldn't ever be dealloc'd and then referenced,

Facebook iOS SDK: Cannot specify an album using FBRequest's requestForUploadPhoto:

青春壹個敷衍的年華 提交于 2019-11-29 00:16:45
I have a local photo in my iPhone app, and I want to upload it to a specific album on Facebook dedicated to my app. Problem: My app name ends with the word 'Photos', so the default Facebook album is APP_NAME Photos Photos - obviously a problem. Goal: I want to create a new album, store its ID in NSUserDefaults , and (after some validation at runtime) use it for all future photos being uploaded from the app. Where I'm at: I can make the new album via Open Graph, using my desired name and description, and I can retrieve its ID. I can also upload photos easily enough. However, what I CANNOT

How to get photos of a facebook album in iPhone SDK?

落花浮王杯 提交于 2019-11-28 21:56:35
I am developing a iPhone application which get facebook album with this URL https://graph.facebook.com/me/albums?access_token=2227470867|2.ZJr73vaEvFeN4fI_A70RFw__.3600.1297090800-100000566543036|WmgxdwULBgKXl8J7ksGIA1tyGik Now i want to get photos from this album. Any Idea will be appreciated. Thanks in Advance. So /me/albums returns an array of Album objects , each of which has an id . If an album had an id of 99394368305, you can go to https://graph.facebook.com/99394368305/photos to get an array of photo objects . Each of these will have the picture and source properties to get the image

Post to user's Facebook wall with iPhone using latest FBConnect SDK

人走茶凉 提交于 2019-11-28 19:58:54
I'm having a tough time finding any good documentation for the FBConnect iPhone SDK. I have the SDK set up to get the permissions from the user but making a simple post is escaping me. All I can find is documentation for the PHP web SDK. Can anybody point me to some documentation for the iPhone SDK or let me know how I can post to a users wall using the latest graph FBConnect SDK? Thanks! Have you looked at DemoApp under the sample directory in facebook-ios-sdk ? There's a publishStream method that might help. Or, you can use - (void)requestWithGraphPath:(NSString *)graphPath andParams:

Facebook iOS SDK 3.0, implement like action on a url?

青春壹個敷衍的年華 提交于 2019-11-28 19:54:29
I'm trying to implement Like via the facebook open-graph-api with the Facebook iOS SDK 3.0. Everything seems to work except the FbGraphObject and that's because I have no idea how it should look because this clearly does not work. What I'm trying to do is to like a url posted as an object. A simple Like with via the open-graph. The error message I get the the code below is: The action you're trying to publish is invalid because it does not specify any reference objects. At least one of the following properties must be specified: object. The code I use is this: FBGraphObject *objectToLike = [

Facebook App Invites iOS SDK v4.0 configuration and states

我们两清 提交于 2019-11-28 19:44:10
I have recently started to implement the new Facebook's App Invites feature. The invite is sent, but my friends (or app testers in my case) whom I sent app invites to did not receive any notification. == Update : I have successfully tested out the feature. But there are something to note, see my self-accepted answer below. == Having followed the tutorial , but I don't know if anything is misconfigured or how to debug the process. So my questions are: Does app invites feature needs an actual App Store app ID to be configured in the App Link meta header tag? Because, as far as I understand this

Native iOS app: What do I put in Facebook's developer “iPhone App Store ID” under Settings, Basic?

旧巷老猫 提交于 2019-11-28 18:05:54
问题 I'm about finished with a native iPhone app, but I need to finish SSO via Facebook. Despite my best effort, I am unable to figure-out what value is supposed to go in the "iPhone App Store ID" field during the process where I register my app with Facebook on their website. I have an "App ID" at http://developer.apple.com/ios/manage/bundles/, but Facebook gives me the error "iPhone App Store ID must be an integer" when I put my App ID in that field. My App ID is not an integer. I know Facebook

Does the Facebook iOS SDK require the user to authenticate every time they use the app?

谁说我不能喝 提交于 2019-11-28 16:04:40
问题 As described in the README for facebook-ios-sdk, my app calls Facebook#authorize:delegate: before performing any API calls. This method requires the user to authenticate (either in the Facebook app or in Safari) and then drops control back to my iPhone app. The problem is it asks the user to authenticate every time I call the method. If they've already granted permission to my app, they get a message saying that the app is already authorized and they have to press Okay to go back to my app.