facebook-ios-sdk

FacebookSDK and Bolts conflicting each other (duplicate symbols) on build

旧街凉风 提交于 2019-11-27 04:25:46
问题 Not sure what is the problem.. 91 symbols found duplicated for armv7 Am on a Swift project targeting iOS 7.1. Both frameworks are of the latest versions . Tried cleaning project and removing derived data., but to no avail. duplicate symbol _OBJC_IVAR_$_BFAppLinkTarget._URL in: /Users/rynecheow/Development/THPopQuiz/Frameworks/FacebookSDK.framework/FacebookSDK(BFAppLinkTarget.o) /Users/rynecheow/Development/THPopQuiz/Frameworks/Bolts.framework/Bolts(BFAppLinkTarget.o) duplicate symbol _OBJC

First dialog after authenticating fails immediately and closes dialog

非 Y 不嫁゛ 提交于 2019-11-27 04:24:57
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 attempt this, the dialog appears and immediately closes, calling the dialog:didFailWithError:error delegate method.

How to send add friend request (to facebook user) from iOS application?

≡放荡痞女 提交于 2019-11-27 04:05:24
问题 I know there are lot of questions on this topic but none of those have satisfactory answers. Again I am not so confident about help as 2 of my last 3 questions are unanswered. Well Still, ma question is, Is there any way we can send friend request to any facebook user from one iOS application? Of course we have user id of that user. As I have googled much and went through many links including how send friend request to a person in Facebook through iPhone app? Can a facebook friend request be

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

家住魔仙堡 提交于 2019-11-27 03:55:30
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) Kalzem 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<FBGraphUserExtraFields>user Facebook is informed about this problem as of january 2013 : Bug Report

IOS Facebook SDK: login doesn't return email despite permissions granted

爱⌒轻易说出口 提交于 2019-11-27 03:16:28
问题 I'm trying to get information through the facebook sdk but so far I'm getting only the id and the name of the user, although I'm sure there is an email available, as it is my account. I've been looking at several answer here but none of them solved my problem so far. What am I doing wrong, and why is it not returning more data as I am requesting several permissions? Here is my code: fbLoginManager.logInWithReadPermissions(["public_profile", "email", "user_friends", "user_about_me", "user

WebApi ASP.NET Identity Facebook login

瘦欲@ 提交于 2019-11-27 02:44:28
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 access token? I understand this is not very secure but is it even possible? I don't know if you finally

How to comment or like a photo in facebook through FBconnect or Graph API in iPhone SDK?

放肆的年华 提交于 2019-11-27 02:25:02
问题 I am developing a iPhone application in which I want to Comment or Like a Photo on Facebook. For Facebook integration I am using FBConnect and Graph API. I am getting friends Photos on my wall in my application, now I want to Like or Comment on them through my iPhone Application. Please suggest me how can i obtain that. Thanks in Advance. 回答1: To "Like" a Photo (or everthing else with an ID) just post your Acces-Token to the Graph API, e.g. your photo has the ID 123456789. So you have to post

[Facebook-iOS-SDK 4.0]How to get user email address from FBSDKProfile

倖福魔咒の 提交于 2019-11-27 01:19:34
问题 I'm upgrading my app to Facebook-iOS-SDK-4.0 , but seems like I can't get user email from FBSDKProfile , since it only provide, username, userid, etc. 回答1: To fetch email you need to utilize the graph API, specifically providing the parameters field populated with the fields you want. Take a look at Facebook's Graph API explore tool, which can help to figure out the queries. https://developers.facebook.com/tools/explorer The code that worked for me to fetch email is the following, which

Facebook authorization fails on iOS6 when switching FB account on device

☆樱花仙子☆ 提交于 2019-11-26 21:39:58
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 openActiveSessionWithReadPermissions:nil allowLoginUI:allowLoginUI completionHandler:^(FBSession *session, FBSessionState state, NSError

FBSession.activeSession.isOpen returns NO even though the user logged-in

99封情书 提交于 2019-11-26 21:38:33
问题 I implemented the whole iOS Facebook login process in one of my iOS Game. In the app, you can either log-in with an email account or through Facebook. I occasionally present a view inviting the user to sync his account with Facebook if he logged-in with an email. Here is the code I'm using to determine wheither or not I should display this view to the user : if (FBSession.activeSession.isOpen) { // Present the view } else { // Go somewhere else } At first it seemed to work great but it turns