BB10, Phonegap 3.0.0 + Facebook

Hello

I am developing an application with Phonegap 3.0.0 and need to add the ability to post a message on Facebook. I thought that the best way to go was to create a plugin to be able to invoke the native Facebook application. But that was not a great success so far.

First, I tried to test the plugin with the plugin base Echo system (as seen in the Phonegap docs). I've downloaded, added the plugin, added the code and tried to run on the device. Unfortunately, I get the 404 error when trying to test the echo, but the plugin seems to init properly. Any suggestions?

And is there another way to call native Facebook share to Phonegap?

Thank you!

There is some information and and example linked here: http://devblog.blackberry.com/2013/02/twitter-and-facebook-cards/

You can post, even if the code is different, that the values are given here: https://developer.blackberry.com/cascades/documentation/device_platform/invocation/facebook.html

In addition, about plugins for PhoneGap, we have a model under review for releases in GitHub. It does more than the Echo thing, so it should be more valuable starting point. I guess it will go live sometime next week - when more people are back from vacation to examine it.

Tags: BlackBerry Developers

Similar Questions

  • BB10, Phonegap 3.0.0 + InAppBrowser

    Hello

    I'm developing an application with Phonegap 3.0.0 and I have a problem with the InAppBrowser, it just doesn't work. I added the plugin and still getting the 404 error. Then, I inspected the plugin and found that a readme file in the blackberry10 folder, indicating that the plugin is not necessary for BB10. However, it does not.

    I also tested in Phonegap 2.8.0 and oddly enough it does not work there.

    Suggestions?

    Thank you!

    Hey,.

    Thanks for your response!

    I have just solved the problem myself. :-)

    It seemed that the configuration of the automatic plugin of phonegap kept a reference to the InAppBrowser plugin in the file blackberry10.json, whereas it should not. Deleted manually and the problem was solved!

    The other 2 problems I posted are not yet resolved.

  • BB10, Phonegap 3.0.0 + FileTransfer

    Hello

    I'm developing an application with Phonegap 3.0.0 and I have a question about the file transfer.

    When the application loads, it checks for new files and download them. Downloaded files must then be stored locally.

    I get the system files like this:

    window.requestFileSystem (LocalFileSystem.PERSISTENT, 0, gotFS, error);

    After that, I get the file and transfer files. The files are stored in the root path: local: / / / persistent.

    The problem is that I have been able to show the files in a tag, because I don't understand where the files are actually or how to get them. I've tried local: / / / persistent/filename and file:///persistent/filename and none of them work, I have even tried/filename.

    What should I back up the files in a different way to be able to use them in a tag?

    Suggestions?

    Thank you!

    Hello

    I solved it, sort of. I used the House instead of dossier_partage and it worked!

    Thx for all the help!

  • any connection, for example?

    any connection, for example?

    I need of connection example and if it is possible with the facebook connect option.

    Thank you

    Looks like you're looking for information on OAuth (secure authentication used by sites like Facebook & other external services).

    Here is a code example that shows how to integrate Facebook in a BlackBerry WebWorks 10 app using OAuth

    https://github.com/BlackBerry/BB10-WebWorks-samples/tree/master/Facebook-OAuth-2

  • Cordova/Phonegap for WebSQL Storage API does not not on BB10

    I use the API of storage for WebSQL to Phonegap with BB10 but his does not work.

    And not able to see the logs in the web Inspector. I have test code on system Z10 bb OS 10.2.

    And cordova 3.1.

    Is there a sdcard is required in the device? Currently, there is no SD card in my camera.

    Or is there any other requirements. Please help me as soon as POSSIBLE.

    Please find my code below:

    index.html

    Sample contact

    Example of

    Database

    You use the document originally of a variable

    window.addEventListener('load', function () {
        document.addEventListener('deviceready', onDeviceReady, false);
    }, false);
    
  • Custom BB Webworks/Phonegap plugin for BB10

    Hello

    Can you please help me how to write Custom BB Webworks/Phonegap plugin for BB10? I knew for BB Java Smartphone (phonegap plugins).

    Hello

    We are working on the construction of full support for plugins to cordova, but for now, you must create a WebWorks extension and import it on the folder your PhoneGap project www.

    Here is a model to help you get started:

    https://github.com/BlackBerry/WebWorks-community-APIs/tree/master/BB10/template

  • PhoneGap / app example Cordova not launching by BB10 Simulator

    I am launching a Phonegap "Hello World" example app in the Simulator BB10.

    As much as I fear, everything has been done correctly. The icon sets even on the home screen, but when I run it I get a black screen with the BB 10 logo in the background and it just hangs.

    See photo:

    I changed the 'project.properties' file in the project by adding the IP address of the Simulator and pointing to the SDK software WebWorks BB 10.

    I do not add the password BB 10 Simulator, because as far as I am concerned it is not a.

    I followed all the directions on Apache Cordova heredocumentation.

    Any help would be appreciated!

    Thanks in advance!

    OK, the problem is that I didn't use the default setting for the installation of the SDK. You MUST use the parameter by default when you install the SDK software to:

    / Developer/SDK/Research In Motion/BlackBerry 10 WebWorks SDK 1.0.4.5

  • Development of a PhoneGap Plugin for BB10 (QNX)

    Hi all

    I'm playing a bit with phonegap 2.5 just to understand how it works with BB10... In addition to the basic steps, I still don't understand what I need to do in case I need to create a plugin custom..., according to the documentation, it seems that the reference language is Java, but as far as I know, the native extensions for BB10 must be developed in C++ and I strongly suspect that Java is for the old version of BB (torch etc.)

    Even if I dig into the sample project located within the archive zip Phonegap, I can't understand how extensions can be made.

    Can someone help me on this?

    Thank you very much

    -marco

    Hi Marco,.

    Yes, you are right! Once we have aligned with cordova, you will still generate native code in the same way, but we allow you to package it as a plugin of cordova rather WebWorks extension.

  • How to get the functionality of the Plugin BB10 webworks development using phonegap.

    Hi all

    How to get the functionality of the Plugin BB10 webworks development using phonegap.

    Thank you all

    Here is a link to the documentation specifically: http://docs.phonegap.com/en/2.6.0/guide_plugin-development_index.md.html

    We will update the things little when we adopt a more close relationship with Cordova.

  • When porting from iOS to WebWorks BB10/7, I have to keep phonegap?

    Hello

    I just get to work for an iOS phonegap app over ports at BB WW and I was wondering: is keeping phonegap is necessary or wise?

    The old app on iOS using phonegap 2.2 (recently upgraded to a very old version) and some plugins such as mapkit (uses that much, I can't just drag the mapping features - like view location on map and directions).

    Aura of the maintenance phonegap and using a version of BB of mapkit (when it exists) be easier than just porting to WebWorks?

    Also keep in mind that I want to port BB10 and OS7 and can - if it's easy - OS5 - 6 and I don't want to have very different code base for different versions of the BB OS.    I already have an older version of java application running on OS4 - 6, but it would be nice to put a new version for old devices also.

    I only did a webworks app but then I don't know much but so sorry if it's a bad question.

    Thank you

    PhoneGap/Cordova supports BlackBerry by calling WebWorks. Cordova doesn't support BB10 until 2.3.0 or 2.4.0, if so you need to update if you want to use. We're going to do also all Cordova the way standard and official to create HTML5 on BB10 applications, so stick to Cordova is sustainably good thing.

    However, I am not aware if there is a port on BB10 mapkit. Certainly, you can do the mapping, but you may need to take one of our samples of mapping and wrap it up in the same API if you want it to run perfectly.

    Now, porting to OS7 should be OK, but when you talk to will OS5 and 6, you may encounter more problems. At this point, those are very old devices. The engine of the browser in them is a good few years old - OS5 does not also WebKit. Memory and processors are half of what's available in devices OS7. You have to be very effective to make it work as you want.

    It is difficult to give really good advice without knowing your target market, demographics, and the region, and what kind of features you want to deliver (in addition to the maps). These factors will determine what kind of userbase you can expect on the different versions of the OS, and that it is better to port PhoneGap version for old phones, or update the Java version. Take a look at the BlackBerry World user stats that we publish and your own user base numbers. Generally, we found that users with the latest hardware equipment are also those who buy apps or spend money on them, and those with more recent or fairly recent devices is those who download. Make sure that you balance the available opportunity development times.

  • Update blackBerry Facebook App on BB10

    Hi guys,.

    I did the last update on blackberry for Faceband I no longer get the ook and he withdrew from hub.

    I get most any notification unless I configure sms and e-mail?

    I think the last update was essentially deleted facebook on the blackberry as an app. am I right?

    Thank you

    See...

    http://supportforums.BlackBerry.com/T5/downloaded-applications/update-required-for-Facebook-on-black...

    http://blogs.BlackBerry.com/2016/03/great-apps-on-BlackBerry-a-strong-commitment-to-the-BlackBerry-d...

  • BlackBerry Smartphones Facebook 10.4.0.12 - BB10 Z10 - update - message questions Page - not in the chronological order of interference - new messages appears...

    With regard to the Facebook application...

    Even since the last update (10.4.0.12) posts on all Pages FB and friend a calendar are out of chronological order (scrambled) and only show old messages (you can not see any new messages).

    It wasn't a problem with the preveious Facebook App version.   Blackberry users are extremely upset about this and require a type of Blackberry on a close challenge future communication or an option to revert to the previous version of the Facebook application.

    For Blackberry users who manage Facebook Pages for businesses on-the-go, this update has paralyzed the.

    Why the Blackberry would release an update with this feature huge setback?

    BlackBerry did not test the application before the launch of the update?

    Many Blackberry users are upset.  Many leave blackberry for android or iOS.  Just read the comments on the Facebook app in the Blackberry world.   BlackBerry might be able to save some of these Blackberry users by communicating to its customers and to ensure that there will be a fix in the near future.  Most of the users of BB, a Facebook application works correctly is crutial and their application more frequently used on their device.

    Once again, BLACKBERRY...  Communication please!...

    #1) Blackberry is working on a fix for this problem?  If so, when the update will be available?

    (#2) pour the moment, can users BB back to the previous version of the FB app?

    Thank you.

    #1) blackBerry is never forward-looking information.  Even if they were working on a fix (and I hope they are) they don't tell us.

    (#2) blackBerry gives no official method of decommissioning.  However, a quick Google search found this: http://forums.crackberry.com/blackberry-10-apps-f274/if-anyone-wants-go-back-facebook-10-3-0-2-here-...

    I recommend using Knowyou to load so it seems that it's just a bar file.  Here are some instructions for the use of Knowyou.  The instructions are for the snap-snap-in installation (which, if you haven't, I highly recommend if you are on OS 10.2.1.xxx) and you can use the same instructions for the installation of the file (s) Facebook bar

    http://supportforums.BlackBerry.com/T5/downloaded-applications-for/you-upgraded-to-OS-10-2-1-and-Wan...

    The other option is to use the snap to install the version of Android, Facebook.  I hear it works well.

  • ondeviceready not shooting in application phonegap bb10

    Hello

    I am developing a HTML5, JQuery basic application with corodova (phonegap), but several times, I found that app video plays (which is my fist in html5 section) and then app does not pass to the next article, I guess it's perhaps because of ondeviceready not firing I see newspapers on my debugger like this.

    ondeviceready not fired for more than 5secs.

    Please let me know, how it can be solved.this happens at least 4/10 times.

    Hi all
    This problem is now resolved.
    It is because in our application, I was first playing a video via the html5 video tag then go index.html, which stops because of error 'onstalled', which is common, so I solved by successcallback that i do the same thing for "onended" video event.
    Here there is no question of Cordoba at all, it was sometimes true, but sound as rare as 1 in 50 times.

  • An error not handled during construction or the app runnning a Cordova/PhoneGap BB10

    I'm trying to implement a project of 10 BlackBerry with Cordova/PhoneGap 3.0.0.

    It took me a long time to understand the Platform for BlackBerry 10 guide actually refers to the version available on http://cordova.apache.org/ and must be installed noted differently on the first page of the site Web PhoneGap.

    I have successfully created a project and added my Z10 camera as target.

    However, when you try to run 'build debug z10' or "run z10" I always get the following error message:

    events.js:72 throw er; // Unhandled 'error' event
    
    Error: spawn ENOENT
    at errnoException (child_process.js:980:11)
    at Process.ChildProcess._handle.onexit (child_process.js:771:34)
    

    Any solution to this?

    We've tracked down the cause of this error to the tools BlackBerry NDK is missing from the system path.

    After you have installed the BlackBerry native SDK, tools must be added to your system path. Manually add the bin directory to your path, or run the following scripts in the directory where you installed the NDK:

    Windows

    bbndk - env.bat

    Linux/Mac

    source bbndk - env.sh

    Note: the script execution will only add tools to your path for the current shell. If they persist, you must add the path to the bin directory using the Windows or Linux/Mac bash profile environment settings.

  • BlackBerry Facebook App Q10

    Good group, since my last update, my Facebook app did not work.

    Is it just me or this is common with the new update?

    My software/update is now 10.3.2.2474

    When I click on the application, it opens, minimizes then opened my browser and takes me to Facebook.com

    It's okay, I guess, but I don't get Facebook notifications on the phone, which is convenient.

    Any suggestions on how to fix this?

    Thanks in advance for any help!

    OK, "update" last month for Facebook was actually a killer app and installs a web launcher instead.

    Is your Facebook for BlackBerry app now ;(

    Explained here:

    Required update for Facebook on BlackBerry

    And if you want your Facebook contacts, follow these steps:

    How to get Facebook on BB10 contacts

Maybe you are looking for