facebook-ios-sdk

Facebook share content only shares URL in iOS 9

半世苍凉 提交于 2019-11-28 03:28:08
Share FBSDKShareLinkContent with FBSDKShareDialog works fine in iOS 8 but fails to share imageURL , contentTitle , contentDescription on iOS 9 devices. The app is built with iOS 9 SDK, Xcode 7, Facebook SDK 4.7.0, all actions mentioned in Preparing Your Apps for iOS9 are done. The app is currently not available in App Store and Facebook app is in dev mode. The code to present the dialog is pretty common (Swift 2.0): let content = FBSDKShareLinkContent() content.contentURL = <URL to the app in the App Store> content.imageURL = <valid image URL> content.contentTitle = <some title> content

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

拟墨画扇 提交于 2019-11-28 00:10:51
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 out that FBSession.activeSession.isOpen returns NO at some point even though the user is logged in with

issue using FBSDK in swift iOS application

亡梦爱人 提交于 2019-11-27 23:51:49
问题 I am coding an iOS 8 app in swift using the FBSDK to allow users to log in to my app. So far I have successfully implemented the login feature using the FBSDK v3.25 in swift using a Bridging-Header.h file and updating the info.plist accordingly to the instructions given on the FB developers website. Now I want to make an app (or update my current one) to FBSDK v4.01 but when I follow the same process of integrating it into my app I get the following errors: -> FBSDKAppLinkResolver.h /Users

Getting random “facebookErrDomain error 10000”

怎甘沉沦 提交于 2019-11-27 22:10:39
I am using the latest facebook IOS SDK, and I am getting random "facebookErrDomain error 10000" , when using the requestWithGraphPath . I can trigger the request from the UI and sometimes it runs fine, sometimes it gives me the error. Has anyone ran into a similar issue? The error object returned has the details about what's happening. I suggest to implement that method to get more infos: - (void)request:(FBRequest *)request didFailWithError:(NSError *)error { NSLog(@"%@", [error localizedDescription]); NSLog(@"Err details: %@", [error description]); }; For example for my problem gived me that

com.facebook.sdk error 2 on iOS

不想你离开。 提交于 2019-11-27 21:51:12
I have a Phonegap app that runs on both iOS and Android. The app has a Facebook login feature which worked until a few days ago. A few of our beta testers have reported an 'The operation couldn't be completed com.facebook.sdk error 2' error. The devices of these testers vary: iPhone 5, iPhone 4s, iPod Touch, iOS 5.1.1 and iOS 6.0. We use the latest Facebook SDK and a Phonegap Facebook login plugin ( https://github.com/davejohnson/phonegap-plugin-facebook-connect/ ). I've done some research and found the following reasons why this error could occur: BundleIdentifier and BundleURLName in my info

How to get photos of a facebook album in iPhone SDK?

|▌冷眼眸甩不掉的悲伤 提交于 2019-11-27 21:02:50
问题 I am developing a iPhone application which get facebook album with this URL https://graph.facebook.com/me/albums?access_token=2227470867|2.ZJr73vaEvFeN4fI_A70RFw__.3600.1297090800-100000566543036|WmgxdwULBgKXl8J7ksGIA1tyGik Now i want to get photos from this album. Any Idea will be appreciated. Thanks in Advance. 回答1: So /me/albums returns an array of Album objects, each of which has an id . If an album had an id of 99394368305, you can go to https://graph.facebook.com/99394368305/photos to

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

喜夏-厌秋 提交于 2019-11-27 20:03:25
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_IVAR_$_BFAppLinkTarget._appStoreId in: /Users/rynecheow/Development/THPopQuiz/Frameworks/FacebookSDK

Facebook share content only shares URL in iOS 9

怎甘沉沦 提交于 2019-11-27 19:14:26
问题 Share FBSDKShareLinkContent with FBSDKShareDialog works fine in iOS 8 but fails to share imageURL , contentTitle , contentDescription on iOS 9 devices. The app is built with iOS 9 SDK, Xcode 7, Facebook SDK 4.7.0, all actions mentioned in Preparing Your Apps for iOS9 are done. The app is currently not available in App Store and Facebook app is in dev mode. The code to present the dialog is pretty common (Swift 2.0): let content = FBSDKShareLinkContent() content.contentURL = <URL to the app in

IOS Facebook SDK - Post Open Graph and show on Timeline without clicking Activity Log

橙三吉。 提交于 2019-11-27 14:35:13
From the Facebook SDK sample code, when successfully post the open graph object to timeline, you have to click Show on Timeline in the Activity Log on Facebook website. How to ignore these steps and explicit share your OG to timeline? ---------------------------------------- The Answer Below: ---------------------------------------- Just add one more code to your FBOpenGraphAction Object: id<FBOpenGraphAction> action = (id<FBOpenGraphAction>) [FBGraphObject graphObject]; [action setObject: @"true" forKey: @"fb:explicitly_shared"]; // This is the key point! And you should enable the 'explicity

Facebook iOS SDK login native and UIWebView login

风流意气都作罢 提交于 2019-11-27 14:25:25
问题 For an app I'm working on I need the users to be able to login to Facebook using the native SDK, but there is also a separate part of the app using an FB comments widget in a webview. The problem is after the user logs in using native SDK they are not logged in within the webview comments widget. Is there a way to have the user login using the native iOS SDK and then also log them into Facebook in a UIWebView. I tried using openAccessTokenFromData:completionHandler: in the FBSession class