facebook-ios-sdk

Importing user's Facebook credentials into iOS6

痴心易碎 提交于 2019-12-07 23:53:14
问题 The documentation for the new Facebook SDK 3.0 tells us this: "In some cases, the iOS device won't have an access token for a user who has already connected an app to their Facebook account. This can happen when a user used an app's website or used the app on another mobile device. To use the iOS 6 native Auth Dialog, apps need to 'import' the user's credentials into the device and need to show the iOS 6 native Auth Dialog." (see http://developers.facebook.com/docs/howtos/ios-6/, tip 2) I'd

How to relaunch an app like facebook-ios-sdk does?

自闭症网瘾萝莉.ら 提交于 2019-12-07 21:35:39
问题 Question: I am actively looking in the source code on Github's facebook-ios-sdk project myself but I was wondering if anyone already knows how to relaunch an app that sent an iPhone user to Safari, such that the user can come back after some work has been finished? Example: When using facebook to login, the original app is relaunched after the facebook login page has authenticated the user. Motivation: I would like to be able to do the same for youtube videos without having to completely lose

Facebook Graph API for friends list returns nil on iOS

余生颓废 提交于 2019-12-07 19:07:52
问题 I am trying to access my own Facebook friends list through this code and the resulting JSON does not return any data. FBRequest *request = [FBRequest requestWithGraphPath:@"me/friends" parameters:nil HTTPMethod:@"GET"]; I am settings the permissions like this (i am using PARSE) [PFFacebookUtils linkUser:[PFUser currentUser] permissions:@[@"user_friends"] block:^(BOOL succeeded, NSError *error) Am I missing something? 回答1: Are you using V2 of the API? Facebook has made a big change recently so

Facebook-iOS-SDK: How to correct build framework and add it to project?

陌路散爱 提交于 2019-12-07 17:38:43
问题 I develop an app for iPad. At now, i test application on iPad-5.1 Simulator . And for my unhappiness, application falls down. 1) I use FacebookSDK 3.0 2) Compile FacebookSDK into Framework FBiOSSDK 3) Add Framework FBiOSSDK to project 4) See log of Linker 5) Undefined symbols for architecture i386: "_sqlite3_open_v2" and many-many "_sqlite3_*" symbols. Maybe i set wrong options to facebook-sdk project when build it to framework? Can anybody help? After search, i find a solution: "Add to

Posting picture on Facebook 'feed' from an iPhone app

冷暖自知 提交于 2019-12-07 15:52:13
问题 I am using ASIHTTPRequest to work on Facebook graph API. This is the nearest I have gone to posting a picture on the feed. So if I have a ASIFormDataRequest *request = [ASIFormDataRequest requestWithURL:url]; The url is https://graph.facebook.com/me/feed Now to post a picture I do the following: [request setPostValue:@"My Message" forKey:@"message"]; [request setPostValue:@"somepic.png" forKey:@"picture"]; [request setPostValue:@"Some Name" forKey:@"name"]; [request setPostValue:@"Some

Integrate Facebook SDK inside my iOS Framework

◇◆丶佛笑我妖孽 提交于 2019-12-07 13:08:46
问题 I'm trying to integrate Facebook SDK inside my framework (which I publish to developers) but get a collision when users using my SDK already have Facebook SDK on their app. Is there any way around it? 回答1: I suggest you to only link Facebook SDK to your Custom Framework, but should not copy Facebook Framework inside your Custom Framework, you can also ship FacebookSDK.framework separately with your Custom Framework. So there will be no collision between two FacebookSDK as the user will only

Facebook Scores API not publishing open graph stories

∥☆過路亽.° 提交于 2019-12-07 10:14:29
问题 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

What is FacebookDisplayName used for?

流过昼夜 提交于 2019-12-07 06:43:08
问题 We are currently changing the name of an app that is using the Facebook SDK for sign-in (and nothing else really), which means that for non-updated users the name of the Facebook app will not match the value of FacebookDisplayName . During my testing I cannot find any impact on the value of FacebookDisplayName being incorrect, does anyone know what it is actually used for? 回答1: Your facebook app is uniquely defined by the app ID. The FacebookDisplayName is just a textual identifier. You can

FB 4.0 - FBSession openActiveSessionWithReadPermissions replacement

拟墨画扇 提交于 2019-12-07 06:33:32
问题 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. 回答1: Correct. You can convert over to using the following FBSDKLoginManager method: - (void)logInWithReadPermissions:(NSArray *)permissions handler:(FBSDKLoginManagerRequestTokenHandler)handler; Or if

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

心不动则不痛 提交于 2019-12-07 04:38:03
问题 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). 回答1: The parameters