Icenium and FaceBook Connect / FaceBook SDK

9 posts, 0 answers
  1. Ian
    Ian avatar
    14 posts
    Member since:
    Sep 2013

    Posted 28 Sep 2013 Link to this post

    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.
  2. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 30 Sep 2013 Link to this post

    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.
  3. Ian
    Ian avatar
    14 posts
    Member since:
    Sep 2013

    Posted 30 Sep 2013 Link to this post

    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. 
  4. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 03 Oct 2013 Link to this post

    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.
  5. Ian
    Ian avatar
    14 posts
    Member since:
    Sep 2013

    Posted 23 Nov 2013 Link to this post

    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 ?
  6. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 25 Nov 2013 Link to this post


    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.
  7. Il_maca
    Il_maca avatar
    8 posts
    Member since:
    Nov 2009

    Posted 30 Jan 2014 Link to this post

    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?
  8. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 30 Jan 2014 Link to this post

    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.

  9. Il_maca
    Il_maca avatar
    8 posts
    Member since:
    Nov 2009

    Posted 30 Jan 2014 in reply to Steve Link to this post

    Thank you very much! I've never found that post ;)
Back to Top