facebook-ios-sdk

Facebook Scores API not publishing open graph stories

♀尐吖头ヾ 提交于 2019-12-05 16:10:34
I am a little new to the facebook SDK so please bear with me on this. I have been searching for hours and have not been able to find anything relating to my problem. I have implemented the facebook sdk for iOS and am in the process of adding scores. User authentication is working fine, achievements are working fine, and it appears to submit the scores fine as well with the following response: { "FACEBOOK_NON_JSON_RESULT" = true; } and there are no errors returned. This is a native app and while it appears to be posting fine, no stories are showing up. Any idea why this would be? I want to make

FaceBook API, login in-app

和自甴很熟 提交于 2019-12-05 13:31:29
I followed this guide and I've created my app successfully with Facebook integration. What's the problem? When the user has to do the login, the app quits in the browser (or in Facebook app, if is installed) How do I keep authentication entirely in-app? The point of the oAuth login is that it doesn't happen within your application. It uses fast-app switching to perform the authentication in a trusted environment (either Safari or the Facebook application). However, you can modify Facebook.m to do the authentication within your application, but you user's credentials will not be remembered. You

What is the full set of legal parameters I can pass to a FBWebDialogs through presentFeedDialogModallyWithSession

主宰稳场 提交于 2019-12-05 10:43:26
I've looked through sample code on Facebook here: https://developers.facebook.com/docs/howtos/feed-dialog-using-ios-sdk/ and reviewed the class reference: https://developers.facebook.com/docs/reference/ios/3.2/class/FBWebDialogs/#presentDialogModallyWithSession%3Adialog%3Aparameters%3Ahandler%3A Is there documentation on the full set of parameters I can pass FWWebDialogs? Can I set the text within the "say something" text (I know you can set the caption and description). The parameters listed at the bottom of https://developers.facebook.com/docs/reference/dialogs/feed/ are all allowed to be

xcode linking issue when using Facebook SDK and Windows Azure SDK

你说的曾经没有我的故事 提交于 2019-12-05 09:45:04
I am building an app which uses the latest Facebook SDK (v3.1) and the Windows Azure iOS Toolkit SDK. Now the Azure SDK requires adding the -all_load and -ObjC flags to the "Other Linker Flags" parameter in Build Settings. This is required to fix the known bug when linking against an Objective-C static libraries that contains categories (see http://developer.apple.com/library/mac/#qa/qa1490/_index.html ). Without this setting the Azure SDK generates runtime exceptions of "selector not recognized" when calling certain methods. Fine, problem solved. However, the Facebook SDK will not build with

FB 4.0 - FBSession openActiveSessionWithReadPermissions replacement

一笑奈何 提交于 2019-12-05 09:37:41
I was previously using Facebook SDK 3.x for iOS. My code has FBSession openActiveSessionWithReadPermissions in various places, and now that I am using version 4.x I'm not sure what the replacement is I am thinking it is the login methods but I'm not sure what the 1:1 replacement/equivalent is. Correct. You can convert over to using the following FBSDKLoginManager method: - (void)logInWithReadPermissions:(NSArray *)permissions handler:(FBSDKLoginManagerRequestTokenHandler)handler; Or if looking for publishing permissions you can use: - (void)logInWithPublishPermissions:(NSArray *)permissions

Invalid application ID with Facebook iOS application

与世无争的帅哥 提交于 2019-12-05 08:08:36
Here is the error when I try to login from my app. MyApp[47747:907] Failed to log in Error Domain=com.facebook.sdk Code=2 "The operation couldn’t be completed. (com.facebook.sdk error 2.)" UserInfo=0x1c5d3c50 {com.facebook.sdk:ErrorLoginFailedReason=com.facebook.sdk:SystemLoginCancelled, com.facebook.sdk:ErrorInnerErrorKey=Error Domain=com.apple.accounts Code=7 "The Facebook server could not fulfill this access request: Invalid application [My_App_Id]" UserInfo=0x1c5cb630 {NSLocalizedDescription=The Facebook server could not fulfill this access request: Invalid application [My_App_Id]}, com

Facebook native login is not opening facebook app even if it's installed in device?

有些话、适合烂在心里 提交于 2019-12-05 07:45:43
i have followed every step described in the docs of facebook-iso-sdk 4.8.0 for iOS 9, but still couldn't preform app switch on "login-with-facebook" in my app, even if facebook app is already installed. As you can see in screen shot below i have modified info.plist, but still can't get native app switch to work. I have also double checked for typo-mistakes in info.plist value. and i can assure you they are correct. Here is my code :- if (![AppDelegate SharedInstance].login) { [AppDelegate SharedInstance].login = [[FBSDKLoginManager alloc] init]; } [AppDelegate SharedInstance].login

Facebook SDK 3.1 - Error: HTTP status code: 400

假如想象 提交于 2019-12-05 07:29:41
I am getting the following error ("Error: HTTP status code: 400") now that I have updated to facebook SDK 3.1 as of yesterday, 10/9. But everything is completely functional as far as connecting with facebook, I just see this error message every time I start a facebook session on my app. I have seen a few people commenting on this, but I can't determine from them if this is going to be a real problem or not. Does anyone know definitively if this is going to cause a problem? And if so, how to fix it? Thanks! The original issue was resolved by Facebook just after the 3.1 SDK was released. But

How to get list of all Facebook Friends when using Parse?

冷暖自知 提交于 2019-12-05 07:21:54
问题 Following is the output when getFBfriends() is run in the code inside viewDidAppear below: Output: Result Dict: { data = ( ); summary = { "total_count" = 711; }; } Found 0 friends The "total_count = 711" is correct but there is not data about the friends. What I am I missing here? Think the permissions are correct. Code: class SignUpViewController: UIViewController { @IBOutlet weak var btn_signIn: UIButton! @IBAction func action_btnSignIn(sender: AnyObject) { var permissions = ["public

Migrating existing access tokens to Facebook iOS SDK 3.0

痴心易碎 提交于 2019-12-05 06:22:11
I just overhauled my codebase to use the new facebook-ios-sdk 3.0 (from the previous version, 2.x or whatnot). Everything worked great, until I realized I hadn't accounted for users who had already granted the app permission/logged in with the previous implementation of the SDK. So I tried checking to see if the accessToken was saved in NSUserDefaults, and if so, make a call to open a session: if ([[NSUserDefaults standardUserDefaults] objectForKey:@"FBAccessTokenKey"] && [[NSUserDefaults standardUserDefaults] objectForKey:@"FBExpirationDateKey"]) { [FBSession openActiveSessionWithPermissions