facebook-ios-sdk

Posting Photo to facebook fan page via iOS app by regular non-admin users

大城市里の小女人 提交于 2019-11-26 11:27:41
问题 I am trying to post a photo to my apps facebook fan page and to the users wall also. I have been successful to post the photo on the users wall, but failed to post it in the fan pages wall. ( The user is not necessarily an admin or page owner, just the regular users. As the fan page has the option of anyone can post to it, it is not mandatory for the user to even like the page first. Right? ) After googling a while, I found this answer. According to it, I need an access_token of the fan page

First dialog after authenticating fails immediately and closes dialog

瘦欲@ 提交于 2019-11-26 11:10:25
问题 I\'m using the latest Facebook SDK on iOS 5. I can use SSO to successfully authenticate the user, and then I attempt to share a link like this: NSString *appId = [[[NSBundle mainBundle] infoDictionary] objectForKey:TSFacebookAppID]; NSMutableDictionary* params = [NSMutableDictionary dictionaryWithObjectsAndKeys: appId, @\"app_id\", [url absoluteString], @\"link title, @\"caption\", body, @\"description\", nil]; [facebook dialog:@\"feed\" andParams:params andDelegate:self]; The first time I

The app references non-public selector in id (Facebook SDK iOS)

扶醉桌前 提交于 2019-11-26 10:57:33
问题 I was having this warning when submitting my app with Application Loader. The app references non-public selector in MyApp : id This warning can potentially reject my app from Apple AppStore\'s validation. My app is using Facebook SDK iOS 3.1.1 (also tried with 3.1) 回答1: This problem happens because of the Facebook SDK for iOS. Application Loader forbids the use of the variable "id" from any FBGraphUser related class (maybe others variables too, didn't test) - e.g. : id<FBGraphUser> friend id

WebApi ASP.NET Identity Facebook login

南楼画角 提交于 2019-11-26 10:09:09
问题 In the facebook authentication flow for asp.net identity, the facebook oauth dialog appends a code rather than access token to the redirect_url so that the server can exchange this code for an access token via http://localhost:49164/signin-facebook?code=...&state=... . My problem is that my client is a mobile app which uses the facebook sdk and that straight away gives me an access token. Facebook says using the sdk always gives you an access token so can I straight away give web api the

presentRequestsDialogModallyWithSession does not work, but gives good result

≯℡__Kan透↙ 提交于 2019-11-26 09:09:13
问题 When I use the webdialog for a friendrequest, everything is going fine, except no request or anything is made. The code: NSMutableDictionary *params = [NSMutableDictionary dictionaryWithObjectsAndKeys: facebookFriend.id, @\"to\", nil]; [FBWebDialogs presentRequestsDialogModallyWithSession:FBSession.activeSession message:NSLocalizedString(@\"FB_FRIEND_INVITE_MESSAGE\", @\"Facebook friend invite message\") title:NSLocalizedString(@\"FB_FRIEND_INVITE_TITLE\", @\"Facebook friend invite title\")

Facebook authorization fails on iOS6 when switching FB account on device

你说的曾经没有我的故事 提交于 2019-11-26 09:06:44
问题 I\'m using die Facebook SDK 3.1.1 to implement FB Connect in my iOS application. This works fine in the simple case with either the new FB integration (logged in on iOS) or falling back to the normal authorization via web view (I do not have the native Facebook application installed in both cases). The problem occurs when I switch the account on iOS level. Logging out and logging in with a different FB user account. To log in/authorize I perform: [FBSession

iOS 9 Facebook login simulator -canOpenURL: failed for URL: “fbauth2:///” - error: “(null)”

那年仲夏 提交于 2019-11-26 09:02:53
问题 I\'ve updated to Xcode 7 and the latest iOS SDK. I\'ve added the appropriate entries in my app\'s plist: My app\'s Facebook login works fine on device. However, on iOS 9 simulator, I\'m getting: -canOpenURL: failed for URL: \"fbauth2:///\" - error: \"(null)\" And login is not working. I\'ve seen facebook login issue - canOpenURL: failed for URL: "fbauth2:///" - error: "(null)" but I have FBSDKCoreKit framework. I\'ve also seen Facebook SDK 4.5 IOS 9 but it\'s answer doesn\'t solve my problem.

How to use Facebook iOS SDK on iOS 10

↘锁芯ラ 提交于 2019-11-26 01:49:20
问题 I am trying to use Xcode 8 to build a app with Facebook login using Swift 3. When I switch back iOS Simulator 9.3, it works. In iOS 10, I receive this error: \"\"fbauth2:/\" The operation couldn’t be completed. (OSStatus error -10814.)\" and Optional(Error Domain=com.facebook.sdk.login Code=308 \"(null)\") Anyone have solution for this? Note 1 : After debugging, this problem is FBSDK cant update expect_challange . Function SecItemUpdate inside security.framework not work. This is a problem of

How to use Facebook iOS SDK on iOS 10

旧城冷巷雨未停 提交于 2019-11-26 01:05:00
I am trying to use Xcode 8 to build a app with Facebook login using Swift 3. When I switch back iOS Simulator 9.3, it works. In iOS 10, I receive this error: ""fbauth2:/" The operation couldn’t be completed. (OSStatus error -10814.)" and Optional(Error Domain=com.facebook.sdk.login Code=308 "(null)") Anyone have solution for this? Note 1 : After debugging, this problem is FBSDK cant update expect_challange . Function SecItemUpdate inside security.framework not work. This is a problem of IOS 10 Roman Ermolov Error OSStatus -10814 occures when canOpenURL: can't find any application , that can

iOS :How to get Facebook Album Photo&#39;s Picker

假装没事ソ 提交于 2019-11-26 00:38:27
问题 Is Facebook iOS SDK provide any default (Facebook) album Photo\'s picker like UIImagePickerController does? I heard of this so searched for it from long but couldn\'t find anything. Please let me know if someone have any thoughts on this. If its not, then I\'ll surely need to make my own. 回答1: Import from Facebook without third party tool get a facebook photos from album Working For graph api 2.4 , 2.5, 2.6,2.7,2.8 & Facebook graph api 2.10 1) Add App in Facebook developer account 2) then