facebook-ios-sdk

FBSDKCoreKit.framework/FBSDKCoreKit: no matching architecture in universal wrapper

谁都会走 提交于 2019-12-09 17:56:39
问题 I'm trying to setup the core Facebook SDK into my project. My project is Swift based, yet the SDK is ObjectiveC. I copied both Bolts.framework and FBSDKCoreKit.Framework into my project. I setup a bridging file which works perfectly. Then I added the following to my AppDelegate.swift file: import FBSDKCoreKit func applicationDidBecomeActive(_ application: UIApplication) { FBSDKAppEvents.activateApp() } func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions:

Facebook iOS SDK 3.0: how to make comment to existing URL?

旧街凉风 提交于 2019-12-09 07:39:40
问题 Has anyone tried to use the new Facebook SDK to post a comment to an URL? i tried by using startForPostWithGraphPath like this (code snippet picked from Scrumptious project): id action = [FBGraphObject graphObject]; [action setValue:@"test from iOS app" forKey:@"message"]; // Create the request and post the action to my url path. [FBRequestConnection startForPostWithGraphPath:@"XXXXXXXXXXXXXXXXXXX/comments" graphObject:action completionHandler:^(FBRequestConnection *connection, id result,

Facebook iOS SDK - FWWebDialogs not rendering message

≡放荡痞女 提交于 2019-12-09 06:44:36
问题 I'm using the Facebook SDK in an iOS app. I'm logging in fine, pulling in friends lists, etc. I've added code to send a request: [FBWebDialogs presentRequestsDialogModallyWithSession:session message:@"Message" title:@"Title" parameters:params handler:^(FBWebDialogResult result, NSURL *resultURL, NSError *error) { // view cleanup here }]; The session is the FBSession stored in the class handling login. The params are suggestions , an array of friends to include. The issue described below

How to get the list of friend without opening FBFriendPickerViewController iOS

与世无争的帅哥 提交于 2019-12-09 03:34:28
问题 I am using Facebook sdk 3.2 for iOS, There are various sample project available for iOS But my problem is how can i get the list of friends without opening FBFriendPickerViewController. In fact i want all my friends facebook id and there Any help will be appreciated. Thanks in Advance 回答1: Try this: get friend list using **[FBRequest requestForMyFriends];** **FBRequest* friendsRequest = [FBRequest requestForMyFriends];** [friendsRequest startWithCompletionHandler: ^(FBRequestConnection

Publish picture with caption on application album whether it exists or not using Facebook SDK 3.1 for iOS

耗尽温柔 提交于 2019-12-08 14:52:10
问题 Using toblerpwn answer i manage to publish a picture to the application album as i wanted to. But this works only when the application album has already been created (because i need to specify the album id). In the other hand the requestForUploadPhoto convenience method creates the application album if it doesn't exists and publishes the picture. So could someone help me figure out how to merge this two beheviours? 回答1: Thanks to @deepak-lakshmanan i manage to solve my problem. The idea is to

Posting a photo to Facebook fan page as user. iOS Facebook SDK 3.1

孤街浪徒 提交于 2019-12-08 11:08:58
问题 I'm trying to post a photo to Facebook page from user using Facebook SDK 3.1. When I'm using the following code to create upload image request: FBRequest *uploadPhotoRequest = [FBRequest requestWithGraphPath:@"/${FAN_PAGE_ID}/photos/" parameters:[NSDictionary dictionaryWithObjectsAndKeys:self.imageToShare, @"source", nil] HTTPMethod:@"POST"]; Image goes directly to user's timeline , not the page's one. But when I'm posting a link: FBRequest *request = [FBRequest requestWithGraphPath:@"/${FAN

Facebook SDK Login in Iphone Application

妖精的绣舞 提交于 2019-12-08 07:34:04
问题 I am using FaceBook SDK for iOS. For login a UIWebView comes and we have to add username and password. I don't want to login like this. Can the login be done in the background or without opening the UIWebView if user provide the username and password from iOS Application? 回答1: FaceBook's SDK doesn't allow that.. they've implemented the oauth login method so that the user don't need to give username and password to the application, user directly input the credentials in the web view and get

Post to friend's wall Facebook iOS SDK 3.1

别来无恙 提交于 2019-12-08 07:26:38
问题 According to Facebook Developer Roadmap (https://developers.facebook.com/roadmap/), they are saying that we won't be able to post to a Friend Wall except using the Feed Dialog, but feed dialog is deprecated on iOS SDK 3.1 Which is the better way to go in my case? I need a User to select from his friend list, and then post a link to their wall. Thanks in advance 回答1: You can use feed dialog. I think FB is going to have to keep this around. My apps are using them fine right now. https:/

How do I get the full User object using Facebook Graph API and facebook ios sdk?

北城余情 提交于 2019-12-08 07:14:43
问题 I'm using the Facebook iOS SDK and Facebook Graph API. When I request "me", which should return all the properties of the current user, I'm only actually getting a small subset of the User object. What am I doing wrong? I'm also not getting the Allow / Don't Allow dialog when I log in, but perhaps that is because I am the app owner? In my header: #import <UIKit/UIKit.h> #import "Facebook.h" @interface FacebookAppViewController : UIViewController <FBRequestDelegate, FBDialogDelegate,

How do I get the full User object using Facebook Graph API and facebook ios sdk?

心不动则不痛 提交于 2019-12-08 03:16:24
I'm using the Facebook iOS SDK and Facebook Graph API. When I request "me", which should return all the properties of the current user, I'm only actually getting a small subset of the User object. What am I doing wrong? I'm also not getting the Allow / Don't Allow dialog when I log in, but perhaps that is because I am the app owner? In my header: #import <UIKit/UIKit.h> #import "Facebook.h" @interface FacebookAppViewController : UIViewController <FBRequestDelegate, FBDialogDelegate, FBSessionDelegate> { Facebook* facebook; NSArray* permissions; IBOutlet UILabel* JSONLabel; } @property (retain,