facebook-ios-sdk

Facebook App Invites iOS SDK v4.0 configuration and states

瘦欲@ 提交于 2019-12-17 23:23:48
问题 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

Like button in iOS application

孤街浪徒 提交于 2019-12-17 06:31:44
问题 Does anybody know how to place Facebook "like" button into iOS application? I've tried the method described in this blog post. But I do not really like this method, because its ugly Login dialog. And, what is more important, it makes user login twice. For example, user wants post a message to his wall if he isn't logged in I call standard FBLoginDialog, after that user posted a message he may want push "like" button and he have to login again - it is really bad user experience. How to be? How

Facebook SDK 3.1 - Error validating access token

两盒软妹~` 提交于 2019-12-17 03:51:06
问题 I'm trying to transition my app to the new Facebook SDK 3.1 (with support for iOS6 authentication). I had it working just fine, so I then decided to remove the app from my list of authorized apps on the FB website in order to test that iOS would ask for permission again. Now my first call to [FBRequest requestForMe] causes this error: Response: { "error": { "message": "Error validating access token: Session does not match current stored session. This may be because the user changed the

Share custom stories explicitly using share dialog

吃可爱长大的小学妹 提交于 2019-12-14 01:43:42
问题 I'm using the Open Share Dialog from Facebook SDK for iOS in my iPhone App to share a custom story. I created open graph action and object which is already successfully approved by Facebook review team and live. But if a user shares a story using my App, it's not shown on the news feed of his friends. So I googled a lot and looked here in stackoverflow and everyone writes to set the ExplicitlyShared flag to true. But this is not working for me using the share dialog. After setting this flag

how do i get gender from facebook public profile Facebook IOS Swift SDK

家住魔仙堡 提交于 2019-12-13 09:39:31
问题 The reason why I need to get the gender of the Facebook user is because my app is only cater for women and by getting the gender of the user could solve a lot of the app problem. The code loginManager.logIn(readPermissions: [ .publicProfile, .email ], viewController: self) { loginResult in switch loginResult { case .failed(let error): print(error) case .cancelled: print("User cancelled login.") case .success(_, _, let accessToken): if let userId = accessToken.userId { } } } The result that I

Facebook iOS SDK: Why am I getting “You must upgrade this app to Graph API v2.x”?

痞子三分冷 提交于 2019-12-13 01:11:57
问题 I am in the process of adding Facebook support (login, posting) to our iOS app. I have downloaded and linked against the latest iOS libraries as of a week or two ago (FBSDKCoreKit.framework and FBSDKLoginKit.framework). However, when I attempt to authorize the app, I get the warning "You must upgrade this app to Graph API v2.x". I have no idea why it thinks I'm using an older API version. The Facebook app record is pretty old and had been dormant for some time, but the actual client code has

App profile page versus m.facebook.com

故事扮演 提交于 2019-12-13 00:46:40
问题 Can this be true, or am I missing something, big time? It seems there's no way to access a Facebook app's profile page on the Facebook mobile site (m.facebook.com)? I thought I wouldn't need to create a separate fan page for my app now that the app's profile page kind of looks and feels like a regular fan page. But if it's not accessible in Facebook mobile, then it's no use to me whatsoever - the thing is, I'm developing a native iPhone app, and the Facebook app is just for sharing the

Get progress from Facebook SDK GraphRequest with swift

元气小坏坏 提交于 2019-12-12 22:19:47
问题 I upload an image with this pice of code: FBSDKGraphRequest(graphPath: "me/photos", parameters: params as [NSObject : AnyObject], HTTPMethod: "POST").startWithCompletionHandler({ (connection, result, error) -> Void in if (error != nil) { print ("failed") } else { print ("success") } }) It works fine so far, but the upload can take a while and I want to inform the user about the current progress. Is there any way to get the current progress? As I can see in the SDK docs, there is a

having trouble with Facebook iOS SDK v 3.1.1

时光总嘲笑我的痴心妄想 提交于 2019-12-12 21:06:43
问题 My app is now using the Facebook SDK version 3.1.1 for iOS. On iOS6 I'm noticing strange behavior with the FBSession expirationDate . The date is always set to the year 4001 (distant future?). I've read that this can be related to offline_access permission but we're not asking for that (we did at one time, in a very old version of the app. But this is a fresh install on a clean image.) Per the FB SDK guidelines we always ask for basic read permissions first via FBSession

Facebook SDK 3.1.1 & iOS 6.1 Login error

断了今生、忘了曾经 提交于 2019-12-12 16:58:52
问题 I know this is going to seem like a duplicate question, but I've looked at every single question on stack overflow relating to this and I'm still getting the following error: Error Domain=com.facebook.sdk Code=2 "The operation couldn’t be completed. (com.facebook.sdk error 2.)" UserInfo=0x1ecbf8e0 {com.facebook.sdk:ErrorLoginFailedReason=com.facebook.sdk:ErrorLoginFailedReason} That's the entire NSLog of the NSError.. I have followed the tutorials for authentication to the letter; On