Dreamweaver CC - Phonegap - facebook connect

Need a simple tutorial on how to do this. can't seem to find one that i can get to work
atm iám trying to use - https://github.com/phonegap-build/FacebookConnect/blob/df97806027da5ba54ab94e093c6b3c0f2ec 5de5b/README.md
getting errors
--Cordova variable does not exisit - check that you have added cordova.js correctly (i have the cordova.js in the same folder)
--Having problems with my config file aswell    --error - (malformed config.xml)
config file--
<?xml version="1.0" encoding="UTF-8" ?>
<widget xmlns = "http://www.w3.org/ns/widgets"
    xmlns:gap = "http://phonegap.com/ns/1.0"
    id        = "com.phonegap.example"
    version   = "1.0.0">
<name>ChildBrowser Plugin - Adobe Ed Exchange</name>
<description>
This is a sample app for teachers and students who want to view website's and PDF's in their native application without using the web browser on the mobile device.
</description>
<author href="https://example.com" email="[email protected]">
Your Name
</author>
<preference name="fullscreen" value="true" />
<preference name="orientation" value="portrait" />
<gap:plugin name="com.phonegap.plugins.childbrowser" />
<gap:plugin name="com.phonegap.plugins.facebookconnect">
<param name="APP_ID" value="1234567890" />
<param name="APP_NAME" value="Appname" />
</gap:plugin>
<access origin="*" />  <!-- A wildcard - <access origin="*" /> - allows access to any external resource. -->
</widget>
HTML--------------------------
<!DOCTYPE html>
<html>
          <head>
    </head>
          <body>
              <button onclick="login()">Login</button>
                    <button onclick="me()">Me</button>
                    <!--<button onclick="getSession()">Get session</button>-->
                    <button onclick="getLoginStatus()">Get login</button>
                    <button onclick="logout()">Logout</button>
                    <button onclick="facebookWallPost()">facebookWallPost</button>
                    <button onclick="publishStoryFriend()">friendstory</button>
        <div id="data">loading ...</div>
        <!--<script src="http://localhost:8080/target/target-script-min.js#anonymous"></script>-->
        <div id="fb-root"></div>
        <!-- cordova -->
                    <script src="cordova.js"></script>
              <!-- cordova facebook plugin -->
                    <script src="cdv-plugin-fb-connect.js"></script>
              <!-- facebook js sdk -->
                    <script src="facebook-js-sdk.js"></script>
                    <script>
             <!-- These are the notifications that are displayed to the user through pop-ups if the above JS files does not exist in the same directory-->
            if ((typeof cordova == 'undefined') && (typeof cordova == 'undefined')) alert('Cordova variable does not exist. Check that you have included cordova.js correctly');
            if (typeof CDV == 'undefined') alert('CDV variable does not exist. Check that you have included cdv-plugin-fb-connect.js correctly');
            if (typeof FB == 'undefined') alert('FB variable does not exist. Check that you have included the Facebook JS SDK file.');
            FB.Event.subscribe('auth.login', function(response) {
                               alert('auth.login event');
            FB.Event.subscribe('auth.logout', function(response) {
                               alert('auth.logout event');
            FB.Event.subscribe('auth.sessionChange', function(response) {
                               alert('auth.sessionChange event');
            FB.Event.subscribe('auth.statusChange', function(response) {
                               alert('auth.statusChange event');
            /*function getSession() {
                alert("session: " + JSON.stringify(FB.getSession()));
            function getLoginStatus() {
                FB.getLoginStatus(function(response) {
                                  if (response.status == 'connected') {
                                  alert('logged in');
                                  } else {
                                  alert('not logged in');
            var friendIDs = [];
                              var fdata;
            function me() {
                FB.api('/me/friends', { fields: 'id, name, picture' },  function(response) {
                       if (response.error) {
                       alert(JSON.stringify(response.error));
                       } else {
                       var data = document.getElementById('data');
                                                     fdata=response.data;
                                                     console.log("fdata: "+fdata);
                       response.data.forEach(function(item) {
                                             var d = document.createElement('div');
                                             d.innerHTML = "<img src="+item.picture+"/>"+item.name;
                                             data.appendChild(d);
                                                  var friends = response.data;
                                                  console.log(friends.length);
                                                  for (var k = 0; k < friends.length && k < 200; k++) {
                                                var friend = friends[k];
                                                var index = 1;
                                                friendIDs[k] = friend.id;
                                                //friendsInfo[k] = friend;
                                                  console.log("friendId's: "+friendIDs);
            function logout() {
                FB.logout(function(response) {
                          alert('logged out');
            function login() {
                FB.login(
                         function(response) {
                         if (response.session) {
                         alert('logged in');
                         } else {
                         alert('not logged in');
                         { scope: "email" }
                              function facebookWallPost() {
                                  console.log('Debug 1');
                                        var params = {
                                            method: 'feed',
                                            name: 'Facebook Dialogs',
                                            link: 'https://developers.facebook.com/docs/reference/dialogs/',
                                            picture: 'http://fbrell.com/f8.jpg',
                                            caption: 'Reference Documentation',
                                            description: 'Dialogs provide a simple, consistent interface for applications to interface with users.'
                                        console.log(params);
                                  FB.ui(params, function(obj) { console.log(obj);});
                              function publishStoryFriend() {
                                        randNum = Math.floor ( Math.random() * friendIDs.length );
                                        var friendID = friendIDs[randNum];
                                        if (friendID == undefined){
                                                  alert('please click the me button to get a list of friends first');
                                        }else{
                                            console.log("friend id: " + friendID );
                                      console.log('Opening a dialog for friendID: ', friendID);
                                      var params = {
                                                method: 'feed',
                                          to: friendID.toString(),
                                          name: 'Facebook Dialogs',
                                          link: 'https://developers.facebook.com/docs/reference/dialogs/',
                                          picture: 'http://fbrell.com/f8.jpg',
                                          caption: 'Reference Documentation',
                                          description: 'Dialogs provide a simple, consistent interface for applications to interface with users.'
                                                  FB.ui(params, function(obj) { console.log(obj);});
            document.addEventListener('deviceready', function() {
                                      try {
                                      alert('Device is ready! Make sure you set your app_id below this alert.');
                                      FB.init({ appId: "appid", nativeInterface: CDV.FB, useCachedDialogs: false });
                                      document.getElementById('data').innerHTML = "";
                                      } catch (e) {
                                      alert(e);
                                      }, false);
            </script>
        <div id="log"></div>
          </body>
</html>

Hi xiaohuoche93,
Can you check if there are any special characters in your file name that could be causing this problem?
Thanks,
Preran

Similar Messages

  • Dreamweaver (cs6) Phonegap plugin

    Hi,
    I'm developing a phonegap application using dreamweaver and I'm trying to get the (phonegap) facebook plugin to work but am not succeeding! Given where I got to so far, I guess I have the following questions:
    How do I configure my application so that certain javascript code is only executed on specific platforms (e.g. iOS specific code is only called on iOS devices)
    How do I configure dreamweaver to use a PhoneGap plugin - which files (config.xml? / plugin.xml?) do I edit and what do I put in there
    Whilst researching this - I've seen similar questions asked frequently without any answers so maybe it's just not possible
    Thanks in advance
    Leon

    This forum is actually about the Cloud, not about using individual programs
    Once your program downloads and installs with no errors, you need the program forum
    If you start at the Forums Index http://forums.adobe.com/index.jspa
    You will be able to select a forum for the specific Adobe product(s) you use
    Click the "down arrow" symbol on the right (where it says ALL FORUMS) to open the drop down list and scroll
    http://forums.adobe.com/community/dreamweaver

  • Facebook connection error in Bridge CS6 - Windows 8.1

    Good evening all!
    I have an HP Pavillion Laptop with and i5 and 12gigs RAM running Windows 8.1
    CS6 Master Collection
    Action:
    Bridge / Export to Facebook
    From export panel select Facebook module.
    Select add present
    Select "Sign Into Facebook
    Error:"An error occurred when request Facebook Connection"
    I read in another forum that others were having this problem too but no solution and that post was from a year ago. I am hoping that this has be solved and one of you good folks knows how.
    Thank you for your attention

    CCSDSoftware wrote:
    We did not experience these issues at all on Windows 7.
    Thoughts?
    I'm trying my best here, but you are making it really difficult...

  • Dreamweaver can no longer connect to my sftp host

    I have been using Dreamweaver to connect an upload files to a GoDaddy server using sftp. One day last month, this stopped working. I get the error "An FTP error occurred - cannot make connection to host. FileZilla connects to my host with the same connections. I also downloaded the latest Dreamweaver from Creative Cloud and it connects no problem. I need to get Dreamweaver 5.5 to connect as the new version with the trial ran out.
    I have tried uninstalling and re-installing, using the AdobeCreativeCloud Cleaner Tool, using Revo uninstaller. When I re-install Dreamweaver 5.5, the site settings pop up again, so my thoughts are even in the uninstall, files remain that have some incorrect setting for this server. As a result, I renamed the configuration folder, reset the cache. No change. I cannot connect to this GoDaddy host and no matter what I do, Site Settings still hold details for my login.
    How can I completely wipe this installation and all settings so that whatever is stuck in the background clears?
    Or, can you suggest an alternative method? I read that it is possible that GoDaddy changed the IP address of their SSH server and that some folder or file called ssh_settings may have to be reset.

    I did that several times to no avail. But now, Dreamweaver will not install. Here are the details from the log:
    Exit Code: 6
    Please see specific errors and warnings below for troubleshooting. For example,  ERROR: DF012, DW063 ... WARNING: DW036 ...
    -------------------------------------- Summary --------------------------------------
    - 0 fatal error(s), 4 error(s), 1 warning(s)
    ----------- Payload: {0215A652-E081-4B09-9333-DC85AAB67FFA} Adobe Dreamweaver CS5.5 11.5.0.0 -----------
    ERROR: DF012: Unable to locate file at "C:\Program Files (x86)\Common Files\Adobe\Installers\adobeTemp\{0215A652-E081-4B09-9333-DC85AAB67FFA}\_9_a32edd88f7bfea 33d642e9b384fcce2b"(Seq 9)
    ERROR: DW063: Command ARKMoveFileCommand failed.(Seq 9)
    WARNING: DW036: Payload cannot be installed due to dependent operation failure
    ERROR: DW050: The following payload errors were found during install:
    ERROR: DW050:  - Adobe Dreamweaver CS5.5: Failed due to Language Pack installation failure
    ERROR: DW050:  - Adobe Dreamweaver CS5.5_AdobeDreamweaver11.5en_USLanguagePack: Install failed

  • Hosting my Website by Dreamweaver CS6, get me connected to my server. Ok!  But then when I click Site/Put nothing happens? what do I need to do to host my site? Benjamin

    I want to host my Dreamweaver files on my website. I get to where Dreamweaver is able to connect to my server. I press Ok, then Save, then Done. Then I press Site/Put--and nothing happens! I got all the information about Root Directory (leave blank) etc., from my server Godaddy. So what am I doing wrong? Benjamin

    Not sure if this is your problem, I have come across this on a number of occasions when I put the files.
    The problem occurs when I have Local view selected and the files are uploaded to the Testing server rather than the Remote server. In this case, I first select Remote server, wait until the files panel has been populated, then go back to Local view and put my files.

  • Trying to edit a wordpress then in dreamweaver cc with mamp but things don't work out. dreamweaver can't establish connection with my server.

    Trying to edit a wordpress then in dreamweaver cc with mamp but things don't work out. i've been searching through the net bt i didn't find an answer. i've followed many tutorials and did exactly the things that was asked but dreamweaver can't establish connection with my server. here's a few pics with the preferences i'm trying to establish a connection. Note that i tried it without "localhost" in the weburl. mamp is running with apache and mySql. Anyone please.

    Hi Gareth,
    See if the following link helps:
    <a href="https://www.sdn.sap.com/irj/sdn/thread?threadID=174271">https://www.sdn.sap.com/irj/sdn/thread?threadID=174271</a>
    Bye
    Ankur

  • IChat Facebook integration through AIM Facebook Connect

    This morning it was announced that Facebook and AIM had teamed up through Facebook connect to allow AIM to integrate Facebook chat into their service. I download AIM for Mac and got the two connected and all looked great. It got me thinking... could I simply login to iChat and have it show my Facebook buddies now? I opened iChat and it DID show the Facebook friends group, but none of the buddies were visible. I even changed the server settings to reflect what was in the new AIM program, but still nothing. I feel like we're really close to getting this going for iChat. Any thoughts? Has anyone else managed to get it to work? Is it even possible? Thanks..

    I figured out my problem. It had nothing to do with facebook. To check yours, make another account and try the iChat there. For me, it wouldn't work on my normal account, but as another user, it worked fine. If this is the case with you, you'll need to go to user/library/preferences and delete all four ichat plists. I also reinstalled iChat from the Snow Leopard system disk, but I don't think it was necessary. This completely reset my iChat settings, so make sure you know all of your account names, passwords, and settings.
    Hopefully this will work for everybody else.

  • Using Flash with Facebook Connect

    I was wondering if anyone has any information or resources on using Flash AS3 with facebook connect.  What I'm particularly looking for is how to do facebook authentication within the flash interface (so the user doesn't need to exit to the facebook website to connect) and also if there are any ways to make facebook calls from within flash once you have authenticated (rather than loading xml generated in PHP as I am currently doing).
    Any information or resources would be appreciated.

    The dial in process would be exactly the same as if you were dialing into the bridge as a participant. Most of the time it needs the following steps.
    Phone number:           800-555-5555
    Delay:                        3000 ms
    DTMF: (passcode)     123456#
    Delay:                        3000ms
    DTMF:                      1 or # (for a roll call or to join the bridge)
    However if the provider is not using a SIP compliant bridge, the Universal Voice tool will fail upon attempting to dial out.
    Also, for the hosted environment, the phone bridge must have a toll-free number.

  • Flash movie stealing keyboard input Facebook Connect app

    I have a Flash application that integrated Facebook friend connect. When the user initiates Facebook Friend Connect it pops up a new window that prompts the user to log into facebook.
    On internet explorer when I type in my username and password I intermittently lose key strokes. If I remove the flash page from the HTML content and do the same facebook connect on IE I don't lose the keystrokes.
    On Firefox this works completely fine.
    Is there something in flash that could be causing this behavior of intermittent keyboard focus stealing on IE?

    i would first try a different external keyboard if you have one. try other usb ports on the mbp as well. if another keyboard doesnt give you grief then you would want to go to a retail store and have them swap it out or call apple support for a replacement.

  • Bridge and Facebook connection error

    I am trying to use the export feature of Bridge C.04.05.11 to download photos to Facebook.  I continually get the error "Facebook connection error - An active access token must be used to query info about current user".  Has anyone else seen this error?
    Bob

    Hi Bob,
    Are you using Bridge CS5 4.0.5.11? Did you see the error when uploading via an old Facebook preset? If yes, you might need to create a new preset (login use your account again.) and delete the old one.
    By the way, we published a new Facebook service update for Bridge CS5. When you attempt to use Facebook service, the update will be automatically executed.
    Thanks
    Chenglong

  • Facebook Connect Option - FAQs

    Some FAQs on the new Facebook Connect option.
    What is Facebook Connect?
    Facebook Connect is an application which allows the authentication connection between Facebook and the community to work in both directions. Community members can connect their community accounts to their Facebook accounts and Facebook users can register in the community from Facebook.
    In both cases, this means users can sign in to both applications by logging in to either.  So if you log into the community and then bring up a tab for Facebook you will automatically be logged in. Similarly, if you log out of one, it automatically logs you out of the other.
    What should I do if I don’t want to connect my Facebook account to my community account?
    You don’t need to do anything.  This is an optional choice and no connection will be made unless you click on the link to connect the two.  You just continue logging into the community as normal.
    What should I do if I connected my Facebook account but have changed my mind?  I no longer want the two to be connected.
    You can easily disconnect this through your community settings.  This can be done at any time.
    Click on the link for ‘My Settings’ at the top right of you screen:
    Click on the tab called Social Connect.  If your account is connected you will see this screen:
    To disconnect, click on the blue link which says ‘Disconnect from your Facebook account’
    You will then see this confirmation message which means the two are no longer linked. 
    You will now need to sign in to the community and Facebook separately.
    Thx
    Kerry
    Retired BTCare Community Manager - StephanieG and SeanD are your new Community Managers
    If you like a post, or want to say thanks for a helpful answer, please click on the Ratings star on the left-hand side of the post.
    If someone answers your question correctly please let other members know by clicking on ’Mark as Accepted Solution’.

    I have.
    I got the 'like' button to work, but I can't seem to get the comments going.
    http://developers.facebook.com/docs/reference/plugins/comments
    That line of code does nothing in an HTML snippet.
    I also tried it with another iframe from another piece of code and it didn't do anything but re-size the box.

  • Community profile lost after switching from facebook-connected to email-based account?

    Hi there, apparently I do not have access to my old facebook-connected profile here in the community after switching to a new, e-mail based account. Is there a way to merge my new account (alexanderklar) with my old one (klar)? Or maybe reactivate access to my old account via my e-mail-based credentials? Thank you and best regardsAlexander Klar

    Hey , looks like your account is now ready! 
    Log in with "alexanderklar" and it will log you back into your old account automatically! :)

  • How do I use facebook connect with iweb?

    I am creating a Blog using iweb on my mac and I am wondering is their is a way to add facebook connect. (I have no knowledge on how to do it if its even possible) If soo could you please help.
    * you can also contact me directly at [email protected]

    I read in the  help section on Facebook which states *  video calling is no longer available to os x maverick users or the new windows system..(video calling) is un-available .... They didn't say they were working on it!  However An Apple Rep did tell me that Facebook is working around the clock to fix. I'm inclined to believe that they must be.. I have a Mac and have always had video calling in facebook.  If you go to the help section on Facebook and type in video calling, search a bit and you'll find it there. 
    I'm  praying they get it fixed soon .. That is how I contact Loved ones in England from USA... 

  • GA code and facebook connectivity

    In adobe air when the ga code and facebook connectivity will be implemented.
    if it is possible then please help.

    How do I enable "share my location with facebook"

  • Blackberry apps and Facebook connectivity

     greetings and salutations fellow believers ! I'd like to know all the apps which allow you share/post content to Facebook or even game saves for example all uken games  can be played on facebook and you can link your mobile account and the accuweather app can post updates as well as spotify  so please share some facebook connected apps.
    Isaiah 41:10 fear not, for I am with you; be not dismayed, for I am your God; I will strengthen you, I will help you, I will uphold you with my righteous right hand.

    How do I enable "share my location with facebook"

Maybe you are looking for

  • Best Practices for iPhone 6 Trade-In Promotion?

    I want to trade in an old iPhone 4 for this iPhone 6 trade-in promotion which would (in theory) net me a $200 gift card (or bill credit) as long as I purchase a new iPhone 6. Great, I'm all over it. I went to the nearby corporate store, iPhone 4 in h

  • While Installing Oracle10g database in OEL, ERROR

    Hi to all, While Installing Oracle10gDatabase in Oracle Linux in VMware server console, i found the below error:- Output generated from configuration assistant "Oracle Net Configuration Assistant". Command = /home/oracle/oracle/product/10.2.0/db_1/jd

  • HT1338 how do i get mac os x 10.5

    new to this hiw do I get the OS X 10.5 on my machine

  • Business Content - 0COUNTRY_BRAZIL

    Hello, Please help me to activate the 0COUNTRY_BRAZIL from Business Content. In the ODS 0NF_DS07 the monitor was red and I could not proceed. The messages were: - Infoobject 0PBUS_AREA do not existe in the version A - Infoobject 0ID_BUPLA do not exis

  • Adjust memory pool after application launched

    Hi, all Is it possible to change memory pool after application launched? For example, in command line 'javaw -Xms32m -Xmx64m' and I want to double it after launched. If it is possible, how can I do that? Thanks, Vincent Chen