Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Facebook SDK 4.1 #1051

Open
wants to merge 36 commits into
base: develop
Choose a base branch
from

Conversation

mereformalities
Copy link

Here is an 'introductory' pull request to start the conversation of whether/how you'd like to see this branch modified/merged/contributed to. Sorry it took so long! Let me know how I can assist further.

Would you prefer to setup a facebook-sdk-4.1 branch at the base fork and continue work there? I could modify the pull request. I've pointed at develop as CONTRIBUTING.md suggested.

build.xml gets overwritten by cordova, so use the optional
custom_rules.xml to declare java version
Adapting the MethodSwizzle technique used by the Parse cordova plugin
(etc), we give ourselves access to methods from the AppDelegate,
injecting them with our own behavior.

Annoying that Cordova doesn’t provide this as part of their plugin
interface; more and more SDKs expect you to call their own customized
AppDelegate methods from the AppDelegate.
We don’t have an option here: to use the plugin on Android, the user
must create an Application class and add our plugin’s static setup call
to it.
@felquis
Copy link

felquis commented Jun 30, 2015

It's an awesome pull request 👍

I'll try it

@ersingencturk
Copy link

is this supporting deferred deep linking? https://developers.facebook.com/docs/app-ads/deep-linking

@Nicktho
Copy link

Nicktho commented Jul 2, 2015

What's the state of this branch? If I just need to use facebook's app invites (which I see you've added), will I run into any trouble?

@mereformalities
Copy link
Author

We're currently using login, logEvent, api, and showDialog (appinvites) from this branch in production.

The only functionality that is knowingly missing is related to the GameRequest and CreateAppGroup dialogs; they each have options that will require some explicit conversion (string to class type) to be populated from JSON.

@mereformalities
Copy link
Author

@ersingencturk, I didn't add any code to handle deferred deep linking, but this branch now contains the libraries necessary to do it (Bolts, FBSDKCoreKit), yes.

@Nicktho
Copy link

Nicktho commented Jul 3, 2015

@mereformalities Awesome, I'll give it a go then.

@ersingencturk
Copy link

@mereformalities, thanks for your response.I'll have a look

@jamielob
Copy link

@mereformalities Amazing work on getting this going. Anyone using this branch with success?

@Nicktho
Copy link

Nicktho commented Jul 14, 2015

@jamielob I've been using this branch for around 10 days as an in-place replacement and it has worked flawlessly!

@jamielob
Copy link

@Nicktho That's great! Are you using it for the login flow? If so, does it authenticate within the app without taking you away to the Facebook app?

@jeduan
Copy link

jeduan commented Jul 15, 2015

@mereformalities Great work. I'm kind of amazed we did the same work at roughly the same time! haha. Any interest in chatting about having one community-backed solution for Facebook SDK 4? (my fork is at https://github.com/jeduan/cordova-plugin-facebook4)

@Nicktho
Copy link

Nicktho commented Jul 21, 2015

@jamielob It bounces out to the native facebook app and then bounces back into the application.

@jamielob
Copy link

@Nicktho Thanks for letting me know.

@KeKs0r
Copy link

KeKs0r commented Jul 29, 2015

I am also very in favor of bringing the efforts together. Especially because of missing funcitonality (appinvites / other dialoges).

So +1 for publishing your branch in the meantime on NPM, that others can use it in their build process.

@mereformalities Does your version require Gradle for building and therefore phonegap-android > 4.0.0?

@manuelpaulo
Copy link

Any update? Thanks.

@mitiaptest
Copy link

@mereformalities @ersingencturk @jeduan

Can you give me code to handle deep linking?

@jeduan
Copy link

jeduan commented Sep 7, 2015

@mitiaptest That's currently not implemented in any plugin. If you want to take a stab at it, here's the docs on Facebook's end https://developers.facebook.com/docs/applinks/ios https://developers.facebook.com/docs/applinks/android

@anthony-ngu
Copy link

Are the setup instructions in need of an update in order to work with this? I can't seem to get either iOS or Browser platforms to even load properly.

@aogilvie
Copy link
Collaborator

@mereformalities would you mind giving this a small pull from master to update to the minor conflict in the readme? Also, would you be interested in helping to maintain this project?

@mereformalities
Copy link
Author

@aogilvie, working on resolving some conflicts with the develop branch. And yeah I'm interested!

@mereformalities
Copy link
Author

@jeduan, sorry I never got back to you! Great work. I'm available to help get a 4.x SDK solution finalized.

@yocontra
Copy link

@mereformalities BTW commits don't notify the maintainer, I don't think @jeduan ever saw that you did what they asked

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.