This is a migrated thread and some comments may be shown as answers.

Icenium and FaceBook Connect / FaceBook SDK

8 Answers 264 Views
Apache Cordova
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Ian
Top achievements
Rank 1
Ian asked on 28 Sep 2013, 11:33 PM
Are there and details regarding installation of FaceBook Connect / and FaceBook SDK for IOS? We have it working on XCode but would like to instal it on our app inside Icenium. Seems like we need to jump through a bunch of settings that are not readily accessable inside Icenium??

Thanks for the guidance from anyone who has succeeded at doing this.

8 Answers, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 30 Sep 2013, 04:10 PM
Hello Ian,

Custom Cordova plugins are handled in Icenium via Cordova Plugman. For more information refer to our documentation: Working with Custom Plugins. A plugin's plugin.xml should contain all the necessary transformations that need to take place in AndroidManifest.xml, Info.plist and config.xml, so no manually interventions are needed as per the plugins' Readme.

However, the FacebookConnect plugin is an exception. In FacebookConnect's plugin.xml there are two placeholder values that need to replaced with their actual value so that Icenium can build your app. When you open the plugin.xml file, look for these lines:
Copy Code
<preference name="APP_ID" />
<preference name="APP_NAME" />

They indicate to plugman that a couple of parameters should be passed when installing the plugin. Delete those two lines and replaces any occurrences of $APP_ID and $APP_NAME in the plugin.xml file with their actual values as obtained from the Facebook developer dashboard.

Other than that, the plugin should build fine for iOS. Please note that the plugin is not upgraded to work with Cordova 3.0 (or 2.7 for that matter), so if you plan to use it in Android as well, you should update it following the suggestion from this blog post: Why Don't My Plugins Work in PhoneGap Android 2.7? For your convenience we have modified the plugin and attached it to this thread. You can download it and import it (see Import Custom Plugins from Archive) into your Icenium project and it would build successfully.

Regards,
Steve
Telerik
You've missed the Icenium Visual Studio Integration keynote? It has been recorded and posted here.
Looking for tips & tricks directly from the Icenium team? Check out our blog!
Share feedback and vote for features on our Feedback Portal.
0
Ian
Top achievements
Rank 1
answered on 30 Sep 2013, 05:51 PM
Thanks.
I followed the instructions and imported the zip you provided. I then modified the index.html to include the js as referred to in the "target" attribute in the plugin.xml file. 

I still get a FB is not defined error... SO, i tried adding "alert('hello');" at the top of both of the JS files, and the system never executes that alert (it is never shown in the emulator).  It still appears that the JS is not loading correctly. 
0
Steve
Telerik team
answered on 03 Oct 2013, 01:28 PM
Hi Ian,

After some further changes to get it to work with Cordova 3.0, we've prepared a sample Icenium project that works correctly on iOS. You can import it in a blank project and deploy it on your iOS device in order to test it.

Please be aware that custom Cordova plugins do not work in Icenium Ion or simulator, you should build the app with Apple provision and deploy on actual device.

Regards,
Steve
Telerik
You've missed the Icenium Visual Studio Integration keynote? It has been recorded and posted here.
Looking for tips & tricks directly from the Icenium team? Check out our blog!
Share feedback and vote for features on our Feedback Portal.
0
Ian
Top achievements
Rank 1
answered on 23 Nov 2013, 10:19 PM
Just to clarify, using the icenium ion app on the phone wont work to test the faceBook connect custom plugin? So I need to get my developer provision certificate and the push it to my phone for testing this portion ?
0
Steve
Telerik team
answered on 25 Nov 2013, 03:40 PM

Yes Ian, that is exactly what you need to do in order to test any custom plugin on iOS device.

Regards,
Steve
Telerik
You've missed the Icenium Visual Studio Integration keynote? It has been recorded and posted here.
Looking for tips & tricks directly from the Icenium team? Check out our blog!
Share feedback and vote for features on our Feedback Portal.
0
Il_maca
Top achievements
Rank 1
answered on 30 Jan 2014, 12:02 PM
Hi, I apologize for having resurrected this post. But i've a problem. I've downloaded the .zip file posted from steve, I cleaned it, and now it's clean and working. But there are a little bug: the first time that i try login, is apparing an alert, then work:
"cordova facebook connect plugin fail on login! the app was removed please log in again".
What is the problem? Please, help me :D


I can share the public dropbox link of the project zip?
0
Steve
Telerik team
answered on 30 Jan 2014, 12:10 PM
Hi,

Please use the instructions and latest updated plugin provided in the following forum thread: Using FacebookConnect plugin.

Regards,
Steve
Telerik

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Il_maca
Top achievements
Rank 1
answered on 30 Jan 2014, 01:43 PM
Thank you very much! I've never found that post ;)
Tags
Apache Cordova
Asked by
Ian
Top achievements
Rank 1
Answers by
Steve
Telerik team
Ian
Top achievements
Rank 1
Il_maca
Top achievements
Rank 1
Share this question
or