I can't find facebook.m file from facebooksdk.framework 3.1 - ios

I am using phonegap facebook plugin.
When I tried to login from my app, fbAppAuth dialog and safariAuth occurs at the same time.
So, although I finished safariAuth , fbAppAuth dialog appears. I need to turn off one of them
and found solution from below link.
How to authorize user through a DIALOG with the NEW Facebook Connect iOS API?
But, I need to modify facebook.m file which is I don't have. I am using facebooksdk.framework 3.1
and there is only facebook.h file but no facebook.m file.
How can I find facebook.m file from my project? or.... is it something I should download?
any help will be appreciated..

In FBSession.h the enum FBSessionLoginBehavior is what you're looking for.
Replace all occurrences of the other values with FBSessionLoginBehaviorForcingWebView to force FB to open a WebView.
This took me hours to figure out. I hope this helps you.

The new FacebookSdk.framwork is in form of static library which you can't update or change and you have to use as it is.
But if you want to update facebook.m then you download sdk source from github where you can found the source files for the sdk where you can update files whichever you want. I am giving link below from where you can download the source.
https://github.com/facebook/facebook-ios-sdk
Optional:-(if you getting error with iOS 6.x)
once you download the source then open the Facebook-ios-sdk project file and build the files using armv7 and armv7s architecture if you want to use sdk with iOS 6.x

Related

Facebook SDK for iOS: Where is the wizard?

Trying to follow Facebook's instructions for adding the iOS SDK but they lost me at step 1.
The download is a zip file containing the following:
Anyone have any idea where this wizard is?
Hey there is nothing related with the wizard. Now you have the SDK containing the required framework. Now simply use those frameworks in your project. For further help follow "https://developers.facebook.com/docs/ios/getting-started".

How can I found facebookSDK.framework on facebookSDK v4.0.1?

So I've downloaded facebookSDK pkg, and I already installed it to on my document folder. But I can't find facebookSDK.framework inside the folder, I need it for my iOS project. Where I can find it?
Pretty sure the framework you are after is FBSDKCoreKit.framework. If you are manually adding the framework this is found in the folder you have installed in your documents folder. This includes the ability to see:
- Sharing
- Login with Facebook
- App Events
- Graph API calls
Information found on https://developers.facebook.com/docs/ios/getting-started
If you are working on an old app which is using FacebookSDK previous framework then you need to download that old version like 3.XX but if you are developing a new app and integrating new Facebook then you need to use FBSDKCoreKit.framework that is in v4.0.1
Some functions in never version are modified.
For details study the Facebook documentation
The above two answers are correct. Refer these if you want more clarification
First One
Second One

How to use GoogleDrive and GooglePlus API in one app in iOS?

I am developing an app that google-drive-sdk has been successfully integrated onto, but now I want to share my app on google-plus so I used Google+ SDK, and it conflicts with GoogleDrive SDK.
I used GTLDriveFile Class for GoogleDrive,
and I followed these steps for installing GoogleDrive.
It works fine with just GoogleDrive SDK. But if I add Google+ SDK then it'll conflict with GoogleDrive SDK. I've tried lots of time and searched on Google but I can't find anything.
I only found these links:
1: (SO) How to implement Google Drive and Google Plus sdk in ios project
2: (YouTube) Google Drive SDK: using the Google+ Sign-In button with Drive on iOS
Update:
It displays duplicate symbols for architecture i386
If I delete one file then it will display the same error in another file because in following folder
GTL->GTL Source->Common->Objects
which has all the files, which are already available in
GoogleOpenSource.framework
And if I deleted all the .h files from the GTL folder then it won't work either, it gives a 'file not found' error.
Can anyone help me?
Update
If I had not added GoogleOpenSource.framework but I added only GooglePlus.framework then it gives me error like....
Thanks in advance!
You should be able to drop the GoogleOpenSource.framework - that just includes the Plus relevant parts of GTL and GTM which you're likely to be bringing in as part of the Drive client library. If you need any files from it, you can find the source version of whats included within the original SDK zip you downloaded.
To be clear:
Delete GoogleOpenSource.framework from your projectList item
If there are any errors on missing files, bring those in individually from the open source folder in the Google+ SDK zip. Include both the .m and .h files
It's much more simpler than #Ian's answer. No offence #Ian. :)
SVN checkout from http://google-api-objectivec-client.googlecode.com/svn/trunk
After checkout completes, Go to Source folder and open GTL.xcodeproj.
See the image

undeclared identifier 'FBAppCall' 'FBDialogs'

I'm recently trying to update the Facebook SDK on our application. I had no worries following the steps fom the Upgrade guide by Facebook.
I was able to compile without issues.
However, when I quit XCode, reopen my project and try to recompile I get an error about 'FBAppCall' (undeclared identifier). All others classes from the SDK are working except this one and 'FBDialogs'.
I am able to solve those errors by deleting the Facebook framework and adding it again. But I must do it every time I quit XCode.
I've tried to check or uncheck "Copy items into destination group's folder (if needed)" with no luck. Also tried older versions of Facebook SDK but it didn't changed anything.
Also tried to clear all the Facebook SDK references from the project.pbxproj before readding the frameworks, in vain.
Thank you for helping me with this annoying issue..
Note: Already did all the configuration Facebook SDK is requiring in the Getting Started page.
Finally found the solution.
Since I was upgrading from an older Facebook SDK, I had to delete the older FacebookSDK.framework file from $(PROJECT_DIR)/Frameworks and then re-add it in XCode.
did you add
#import <FacebookSDK/FacebookSDK.h>
in your AppDelegate.m file?

Integrating Facebook Docset with Xcode

So I downloaded the latest 3.1 Facebook iOS sdk and under the scripts I found a build_documentation.sh which I ran. It completed and generated a com.facebook.Facebook-SDK-3_0-for-iOS.docset file. I am trying to get it to integrate nicely with XCode. I know that apple docs can create documentation that shows up in the quick help panel. My own custom documentation works great.
Does anyone know what I have to do to get the same kind of documentation integration with Facebook?
EDIT:
I tried adding the docset to the corresponding folder according to the instructions here
and restarted Xcode but it didn't work
If you install the SDK from the package you don't have to generate the docset yourself.
Go to https://developers.facebook.com/ios
Click on the Download SDK button
You can get the Facebook Documentation working with the following:
Build the Facebook Documentation with the provided shell scripts
Move the .docset to /Library/Developer/Shared/Documentation/DocSets
If it doesn't work, you may have to check, if you moved the docset to ~/Library/Developer/Shared/Documentation/DocSets. This is sometimes WRONG
Why does it work by installing the Facebook Framework directly from the .pkg?
It moves it to /Library/..., not to ~/Library/...

Resources