Facebook chart request using Swift3 -

I am rewriting my graph requests with the latest Swift3. I am following the guide found here - https://developers.facebook.com/docs/swift/graph. fileprivate struct UserProfileRequest: GraphRequestProtocol { struct Response: GraphResponseProtocol { in

Type 'Any?' has no subscribers

This question already has an answer here: Type 'Any' has no subscript members (firebase) 2 answers I am trying to retrieve email id after fb login in my app. However I am getting an error when i try to get the value from result. The error is:Type 'An

FBInterstitialAd error showAdFromRootViewController

I am developing an iOS app and have recently integrated the Facebook SDK for iOS. Currently using version 4.11.0 with FBAdView and FBInterstitialAd for Facebook Audience Network ads. The implementation in my app is almost identical to that in the AdU

How to get the list of Facebook friends using FBSDK for iOS?

I want to fetch the list of friends from facebook in my app. I'm able to get the total_friends correctly, but the list of friends is not coming in the result. My current code that is not working: CODE: NSMutableString *facebookRequest = [NSMutableStr

Can not comply with FBSDKSharingDelegate

I cannot conform my GameViewController to FBSDKSharingDelegate and I don't know why. These are the function I think it need. func sharer(sharer: FBSDKSharing, didCompleteWithResults results: [NSObject : AnyObject]) { } func sharer(sharer: FBSDKSharin

iOS: How to Get Facebook Picker Photo Album

Is Facebook iOS SDK provide any default (Facebook) album Photo's picker like UIImagePickerController does? I heard of this so searched for it from long but couldn't find anything. Please let me know if someone have any thoughts on this. If its not, t

The Facebook login always returns as canceled. (iOS Swift)

I'm currently trying implement Facebook login using the 4.0 version of the SDK, this also happens with the 3.+ version. When I call logInWithReadPermissions (4.0 version) or openActiveSessionWithReadPermissions (3.+ version). The closure/block is cal

facebook app test for everyone

I have created a facebook app. I tested it in sandbox mode and it's fine. Now I want to let other people test this app in mobile phone, so I close sandbox mode and I found that iPhone-5 user can't login but it still work fine in android phone Here is

Handle cancel button in facebook iOS using session

I tried to search this but couldn't find anything useful. [FBSession setActiveSession:[[FBSession alloc] initWithPermissions:[NSArray arrayWithObjects:@"publish_actions,read_stream,user_hometown,user_birthday,email", nil]]]; [[FBSession activeSe

Photos uploaded to the page as a user are invisible to others

I have successfully uploaded photos to a Facebook Page that I am not the administrator of using the iOS FacebookSDK. However those photos are invisible to everyone except the uploader. The page has the "Everyone can post to Page's timeline" and

Post a message on my wall facebook ios sdk?

Hello everyone i am trying to post a message on my wall but while targeting a friend. Like we post on our wall @friendsname.I am using the code below NSMutableDictionary* params1 = [NSMutableDictionary dictionaryWithObjectsAndKeys: @"post", @&qu

Post to a friend's wall Facebook iOS SDK 3.1

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 g

Facebook iOS SDK pulling data problem of friends

I'm trying to implement Facebook iOS SDK 3.1.1 into my app and I'm having issues. When I try to run NSString *query = @"SELECT uid, name, pic_square FROM user WHERE uid IN " @"(SELECT uid2 FROM friend WHERE uid1 = me() LIMIT 25)"; // S

How to implement Login with FaceBook in the iOS app

I want to implement an app which uses FaceBook login to enter the app. How can I do this. I have seen few guidelines like this https://developers.facebook.com/docs/howtos/login-with-facebook-using-ios-sdk/ I want to support iOS 3.0 and above. But rea

Facebook integration with iOS6

I am using the following code to post something on Facebook. - (IBAction)post:(id)sender { if ([SLComposeViewController isAvailableForServiceType:SLServiceTypeFacebook]) { mySocialComposer = [[SLComposeViewController alloc]init]; mySocialComposer = [

IOS Facebook SDK V3.1 delegation methods

In Facebook SDK V2 there existed delegate methods to receive information ie when a user logged out the delegate method -(void)fbDidLogout was called. But I cannot find any information about delegate methods in Facebook SDK V3?in latest version of fac

Facebook SDK 3.1 presentShareDialogModally fails

I'm trying to test out the new built-in share "sheet" for Facebook on iOS 6 but when I run the sample code it doesn't show the sheet. Instead it posts a status for me without showing what it's going to post first. Also I thought Facebook didn't

Publish a photo from the Camera to Facebook page in iOS

I am using Facebook iOS SDK 3.0 in iOS 4+. I want to publish a Photo (either from my camera or from the stored photos in my ios device) to the wall in Facebook. I have checked http://developers.facebook.com/docs/tutorials/ios-sdk-tutorial/ the docume

Can I install the Facebook SDK on a Mac running OSX10.6.8?

I downloaded the Facebook iPhone sdk 3.0 on my mac where im developing my iPhone game but the installation failed two times. Is this because I have 10.6.8 on my computer? Here's the message I got Yes, you can install the SDK on OS 10.6.8. I have just

Sample Code Facebook SDK iOS does not compile

I downloaded the code from https://github.com/facebook/facebook-ios-sdk But none of the sample projects compile in Xcode. I have read the readme.txt and it doesn't help. The error is: 'FacebookSDK/FacebookSDK.h' file not found There is no folder call

How can I use the Facebook instance in a ViewController?

I'm having troubles developing an iOS 5 App with Facebook SDK integration. My App has many ViewsController and for each of them I want to get different data from Facebook using different requests (of course). At the moment I can get data only on the

iOS Facebook SDK isSessionValid returning null

With the Facebook iOS SDK code below, the log is always "(null)" facebook = [[Facebook alloc] initWithAppId:@"xxxxxxxxx" andDelegate:self]; NSLog(@"%@", [facebook isSessionValid]); Any ideas what could be going on?%@ is your

Post a photo on Facebook 'feed' from an iPhone application

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/