Facebook SDK for iOS: Where is the wizard? - ios

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".

Related

How to integrate Payfort SDK to iOS with Swift

I am trying to integrate payfort SDK to my iOS project.
I am using xcode 9.0 and swift 4.0.
I followed the instruction on payfort docs. But still can't see the module name of payfort in my project.
This is the guide https://docs.payfort.com/pdf/FORT_Mobile-SDK_iOS_Integration_Guide_v_2.0.pdf
But it showing only PayFortLogo.png when import module. See in below picture.
Payfort guide to integration ios mobile SDK
Please the doc first:
https://docs.payfort.com/pdf/FORT_Mobile-SDK_iOS_Integration_Guide_v_1.3.pdf
1- TO intregrate Payfort SKD follow the following steps. Don't use any other method.
 Downloaded iOS SDK from official link.
 Unzip the downloaded iOS SDK.
 Drag the PayFortSDK.framework & PayFortSDK.bundle to Frameworks in Project Navigator.
o Create a new group Frameworks if it does not exist.
o Choose Create groups for any added folders.
o Make Sure to select Copy files if needed.
2- Copy PayfortView2.xib & PayfortView2_ar.xib from the project view or ask Payfort support team for it, Now use them in your project.
3- Use your custom view for PayfortView by mapping it with PayfortView.h using Payfort framework Connect all outlets with your custom view.
paycontroller?.setPayFortCustomViewNib("PayFortView2")
4- Download "JVFloatLabeledTextField" library from github or use pod for it.
5- Use JVFloatLabeledTextField instead of PFKJVFloatLabeledTextField change PayfortView2.xib and PayfortView2_ar.xib class in "Identify Inspactor" from xcode.
6- Now open "PayFortView.h" from ~/PayFortSDK.framework/Header/PayFortView.h in your project change outlet PFKJVFloatLabeledTextField to JVFloatLabeledTextField
Bellow is the link that I have integrated to my demo project:
Change your payfort account.
https://github.com/bhoopend232/PayfortDemo.git
Just follow these below steps in swift4 and Objective-c we are easily acheive payfort sdk integrate to your projects.It will help full mostly.
.Downloaded iOS SDK from official link.
List item
Unzip the downloaded iOS SDK.
List itemDrag the PayFortSDK.framework & PayFortSDK.bundle to Frameworks in Project Navigator.
Copy PayfortView2.xib & PayfortView2_ar.xib from the project of github to drag into your project.
paycontroller?.setPayFortCustomViewNib("PayFortView2")
Download "JVFloatLabeledTextField" library from github Or use pod for it.
Use JVFloatLabeledTextField in place of PFKJVFloatLabeledTextField change PayfortView2.xib and PayfortView2_ar.xib in "Identify Inspactor" from xcode.
IF we are using sand box account and production account use seperate urls to use
For sandBox:
https://sbpaymentservices.payfort.com/FortAPI/paymentApi
For Production:
https://paymentservices.payfort.com/FortAPI/paymentApi
While check this below pdf file for passing parameters and response
https://docs.payfort.com/pdf/FORT_Mobile-SDK_iOS_Integration_Guide_v_2.9.pdf
just in the success response we call the xib file .Then it will automatically redirect to card details page.
If you want source code just check this below repository in swift4
https://github.com/SRReddy411/PayFortPaymentDemo
If you want objective c then we will check this one
https://github.com/SRReddy411/payfort-Objective-c
Read the docs properly. Section 4.2, page 10. The framework is written in Objective-C and you have a Swift project, so you need a Bridging-Header.
One of the hundreds of tutorial on how to setup a `Bridging-Header: https://youtu.be/lon5YVMUxHQ

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

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

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

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