Facebook JavaScript SDK(al.js) include error

HI All,
I am planning to integrate facebook with my InDesign plugin.
In my plugin I have a button "Share On facebook" clicking it will share a post on user wall.
To achieve this i read faceboook-developer tutorial and download JavaScript facebook SDK from http://connect.facebook.net/en_US/all.js
and saved it locally and try to include this in my code as follows
#include "all.js"
FB.init({ appId: xxxxxxx, status: true, cookie: true, xfbml:true });
But When I ran the above script in ExtendScriptToolkit then it gives compilation error for all.js
I also tried to convert all.js to its binary equivalent by open all.js in extendscripttoolkit and do File > Export As binary but it gives same error.
Please help me to fix all.js compilation issue.
Regards,
Alam

Hi Alam
Because  JavaScripts are meant for a specific engines there is no such thing as a JavaScript binary executable on your operating system.
Years ago iI connected InDesign to a server using JavaScript sockets. This was a showcase  just to show what is possible. Be sure not to violate the license agreement.
I dont know if that would work for you.
If you where on a Mac there is the possibility to work with applescript. Because applescript runs also on OS X there you could possibly connect InDesign to browser output. I’v never tried that though.
Kind Regards
Dani (from Switzerland)

Similar Messages

  • Getting an error prompt "the facebook server has returned an unknown error and is not able to fulfill your request. (2001)"

    Hi. I need help regarding facebook for blackberry. I cannot post any status update, i keep on receiving an error prompt "the facebook server has returned an unknown error and is not able to fulfill your request. (2001)".  it has been like this for the past 3 days. I already did the hard reboot many times, re-send service book though i do'nt think it's needed, and tried uninstalling and reinstalling the facebook application too but still getting the same error everytime i try to post a status update. I can comment to messages on my wall and other profiles, the news feed is updating in time too, i can also log-in and out to facebook with no problem, as well as other applications on my phone like foursquare, BBm, ubersocial, BB protect, BB app world, etc, are all working perfectly fine. And now I don't know what seems to be the problem.
    I've already contacted my network provider and told me that the error i'm getting is beyond their scope.
    Is anybody having the same problem as mine? 
    Can someone in BB support team help me regarding this issue and tell me what should I do?
    Thank you in advance. 

    I got the same issue !! Since I've updated my Facebook app 2 or 3 week ago !
    I can not  update my status and check-in ! It gives me "the facebook server has returned an unknown error and is not able to fulfill your request. (2001) "
    I can upload photo, put comment on people, like people status/picture. The news feed update perfectly !
    I also  tryied to uninstall reinstall the app, reboot etc etc ! I still can't update my status !!!! I've installed 3.0.0.17 this morning and the issue is still there...
    I've remarked one thing... On my facebook under "privacy setting/the Apps, Games and Websites" I used to have a "blackberry app" installed. It's not there anymore and I didn't remove it.
    I don't know how to reinstall it...

  • Application builder Error: Windows SDK function returned an error. (Error code -12) *** End Error Report

     try to create an installer in Labview 8.6.  The build fail and I got this message.
    CDK_CreateNewWizard_Invoke.vi.ProxyCaller >> CDK_CreateNewWizard_Invoke.vi >> CDK_InstallerConfiguration_Editor.vi 
    >> CDK_Build_Invoke.vi >> CDK_Engine_Main.vi >> CDK_Engine_Build.vi >> NI_MDF.lvlib:MDFBuildDist_Build.vi
    Loading product deployment information
    Loading product deployment information
    Loading product deployment information
    Loading product deployment information
    Adding files to installer
    Done adding files
    Preparing to build deployment
    Copying products from distributions
    Copying distribution 'NI LabVIEW 8.6.1 Datalogging and Supervisory Control Module' from: 
    D:\software\application\LabView\NI.LABVIEW\NI-Labview 8.6.1 DSC Module\ to: C:\Documents and Settings\Lidaoling\桌面
    \Builds\generate waveform\My Installer\
    Building deployment
    Copying setup files
    Setting merged database information
    Setting product information
    Setting developer part information
    Starting final build
    Validating...
    Copying files...
    Updating files...
    Creating merged database...
    *** Error: Windows SDK function returned an error. (Error code -12)
    *** End Error Report
    Done building deployment 

    Solution

  • Which facebook ios sdk or apple social framework better to use ?

    We have one mapping project now Iphone/Ipad. This time we want to integrate our application with facebook.
    Now for doing this we have two choices
    1. Using official facebook ios sdk
    2. Using Apple social framework
    Im new at social programming so Im comfused at choosing one or two.
    Can anyone can give me an advice
    Thank you very much

    You need to update iTunes to 11.1 on your PC

  • REPORT/PROGRAM statement missing, or program type is INCLUDE error upgrade.

    Hi Experts,
    I have done the recording for FK05 and created functionmodule for the same. But when I use that function module in my custom program or if I try directly execute the FM, I am getting dump like syntax error. So I did syntax check and tried to activate, I am getting "REPORT/PROGRAM statement missing, or program type is INCLUDE error upgrade" error.
    Please help me soon to resolve this issue.
    Thanks in advance.
    Shreyansh

    Hi
    Goto main function group include name attributes tab and double click.
    once the include is opened, try to activate it. if shows errors then fix.
    regards
    Shiva

  • Javascript in ABAP is throwing error

    Hi all,
    We are having some IAC applications, the older version is ECC 4.6 . All the applications are working fine there.
    Now that we have migrated from ECC 4.6C to  ECC 6.0, we have just copied all the IAC applications to the new system.
    When tested in the new system. one of the applcitions is throwing a Javascript error.(i.e., the ABAP dump is pointing to the Javascript ParseInt method.)
    The error is "0.00  could not be converted into numerical value"."ITS_EXPRESSION_NOT_NUM".
    My question is:
    Is there any possibility that ECC 6.0 is not recognizing the java script of 4.6C(specially the ParseInt functionality).
    is there any help documents which give us code samples for syntax to be followed when writing the java script in ABAP.
    Any clue to resolve the error would be greatly appreciated.
    Thanks & Regards,
    Kavitha

    Hi  Marcin,
    Thankyou for your quick reply.
    It is server side scripting only. but i have already chekced the link which u sent me. i did not find anything realted ... we are not able to debug the issue?
                This is the place where it is throwing the error:
           var lv_pct=`FREM-TBR_PCT[j]`
                       if (parseInt("`lv_pct`") == `i`)
    is the syntax of the code is correct?
    Do you want me to send the whole code to you?
    Also please tell me if there any way to debug the javascripts  for this IAC applications.
    Thanks & Regards,
    Kavitha.

  • I cant uninstall my itunes off my computer, i have followed instructions and i still have errors, including error 2330 and redundance cyclic. the only software i have left is itunes.exe and file es.lproj which is located in the ituneshelpresources folder

    I cant uninstall my itunes off my computer, i have followed instructions and i still have errors, including error 2330 and redundance cyclic. the only software i have left is itunes.exe and file es.lproj which is located in the ituneshelpresources folder. i recently installed a second hard drive and that let me uninstall everything. I just want to get itunes off my computer and reinstall itunes, i have deleted everything i can and i ran "chkdsk" this did nothing. I would have just updated the oild itunes to the newest version but it didnt ley me do that. installing/ uninstalling or deleting just lets me get half way and shows me these errors. Please help, thank you.
    JPHowarth

    the only software i have left is itunes.exe and file es.lproj which is located in the ituneshelpresources folder.
    If the chkdsk isn't fixing the damage, and those are the only iTunes that can't be deleted, try renaming the "iTunes" folder that they are contained in (in your Program files) to iTunesOLD.
    Now try another install. Does it go through without the 2330 this time?

  • When I try to view the Photos tab on Facebook, I get a pop-up error message.

    When I click on the Photos tab on Facebook, I get a pop-up error message, telling me to try again.
    == URL of affected sites ==
    http://facebook.com

    Troubleshooting extensions and themes
    * https://support.mozilla.com/en-US/kb/Troubleshooting%20extensions%20and%20themes
    Check and tell if its working.

  • Error: Windows SDK function returned an error. (Error code -12)

    I receive this error when attempting to build an installer for my Labview application.
    CDK_Item_OnDoProperties.vi.ProxyCaller >> CDK_Item_OnDoProperties.vi >> CDK_InstallerConfiguration_Editor.vi >> CDK_Build_Invoke.vi >> CDK_Engine_Main.vi >> CDK_Engine_Build.vi >> NI_MDF.lvlib:MDFDistCopyList_CopyItem.vi
    Loading product deployment information
    Loading product deployment information
    Adding files to installer
    Done adding files
    Preparing to build deployment
    Copying products from distributions
    Copying distribution 'NI-DAQ 8.0.1' from: D:\ to: C:\DARTS\ATS_TE_Project\DARTS_NI-DAQ_HP3561A_Dynamic_Signal_Analyzer\Installer\
    *** Error: Windows SDK function returned an error. (Error code -12)
    The system cannot find the file specified.
    *** End Error Report
    Done building deployment

    I was able to get the install builder to build an installer for my
    Application today 6/6/07. These are the steps I performed along with good amounts of trail and error.
    1) I attempted to re-install the NI-DAQ 8.0.1 drivers however I didn't
    perform this because it said it remove NI products which I didn't want
    removed. But it didn't tell me what it would remove.
    2) Instead, I copied the entire NI-DAQ 8.0.1 distribution to a directory on my hard drive.
    3) I set the NI-DAQ 8.3 install build type to FULL in install builder.
    4) In install builder when prompted for the components from the NI-DAQ
    8.0.1 I browsed to the NI-DAQ 8.0.1 directory on the hard drive and
    also un-checked the cache box.
    5) It through another error this time saying it couldn't find
    C:\NI-DAQ8_0_1\8.0.1\Products\LabVIEW_Broker71\LVBroker71Deu.mst (and,
    LVBroker71Fra.mst, LVBroker71jpn.mst, LVBroker1071Deu,
    LVBroker1071Fra.mst, LVBroker1071jpn.mst). It also could not find the
    LVBroker1071 files in the
    C:\NI-DAQ8_0_1\8.0.1\Products\LabVIEW_Broker1071 directory either.
    6) I performed a search for these files and they did not exist in the
    NI-DAQ 8.0.1 directory on my hard drive or the 8.0.1 CD I have.
    7) These files DID exist in my NI-DAQ 8.3 directory located on my hard drive.
    8) I copied the LVBrokerxxxx.mst (listed in 5 above) files from the
    NI-DAQ 8.3 directory on my hard drive to the corresponding location in
    the NI-8.0.1 directory on my hard drive.
    9) This time when I rebuilt the installer for my application the build was successful.
    Additional information:
    When I built my application I only selected English for language
    support. In Install builder in "Dialog Information I also selected
    English.
    I haven't attempted to try the installer on my target yet so I'm not
    quite sure how successful I really was but at least I have a installer.
    Let me know if this also works for you.
    Rich...

  • Install windows phone 8.0 sdk on win 10 error Windows Program Compatibility mode is on. Turn it off and then try Setup again.

    install windows phone 8.0 sdk on win
    10 error Windows Program Compatibility mode is on. Turn it off and then try Setup again.

    Also having this issue. I am unable to remove Windows Phone Emulator 8.0 on Windows 10 Technical Preview. Here is the relevant log file output
    [6554:4F4C][2014-10-31T13:33:53]: Condition 'NOT (CurrentOperation = "Uninstall")' evaluates to true.
    [6554:4F4C][2014-10-31T13:33:53]: Condition '(CurrentOperation = "Install") OR (CurrentOperation = "Repair")' evaluates to false.
    [6554:4F4C][2014-10-31T13:33:53]: Condition '(CurrentOperation = "Install") OR (CurrentOperation = "Repair")' evaluates to false.
    [6554:4F4C][2014-10-31T13:33:53]: Condition '(CurrentOperation = "Install") OR (CurrentOperation = "Repair")' evaluates to false.
    [6554:4F4C][2014-10-31T13:33:53]: Condition '(CurrentOperation = "Install")' evaluates to false.
    [6554:4F4C][2014-10-31T13:33:53]: Condition '(VersionNT < v6.1) OR ((VersionNT = v6.1) AND (NTProductType < 3)) OR (NOT VersionNT64)' evaluates to false.
    [6554:4F4C][2014-10-31T13:33:53]: Condition '(VersionNT = v6.2) AND (netfxfullredist_43_DetectKey < v4.5.50709)' evaluates to false.
    [6554:4F4C][2014-10-31T13:33:53]: Condition 'CompatibilityMode = 0' evaluates to true.
    [6554:4F4C][2014-10-31T13:33:53]: Condition 'ProfessionalVersion_DetectKey AND (NOT (ProfessionalVersion_DetectKey = "11.0.50727")) AND (CurrentOperation = "Install")' evaluates to false.
    [6554:4F4C][2014-10-31T13:33:53]: Condition '( VS11BETA_MSENV_DLL_EXISTS ) AND ( VS11BETA_MSENV_DLL_VERSION < v11.0.50324.0 ) AND (CurrentOperation = "Install")' evaluates to false.
    [6554:4F4C][2014-10-31T13:33:53]: Condition 'WPExpressVersion_DetectKey AND (WPExpressVersion_DetectKey < v11.0.50727) AND (CurrentOperation = "Install")' evaluates to false.
    [6554:4F4C][2014-10-31T13:33:53]: Condition 'WPExpressVersion_DetectKey AND (WPExpressVersion_DetectKey = v11.0.50727) AND (CurrentOperation = "Install") AND WPExpressQFEVersion_DetectKey AND (WPExpressQFEVersion_DetectKey < 38)' evaluates to false.
    [6554:4F4C][2014-10-31T13:33:53]: Condition 'WPExpress10_Exists AND (NOT SameLcidWPExpress10_Exists) AND CurrentOperation = "Install"' evaluates to false.
    [6554:4F4C][2014-10-31T13:33:53]: Condition 'WPExpress11_Exists AND (NOT SameLcidWPExpress11_Exists) AND CurrentOperation = "Install"' evaluates to false.
    [6554:4F4C][2014-10-31T13:33:53]: Condition 'NOT Privileged' evaluates to false.
    [6554:4F4C][2014-10-31T13:33:53]: MUX:  Stop Block: CompatibilityMode : Windows Program Compatibility mode is on. Turn it off and then try Setup again.
    [6554:4F4C][2014-10-31T13:33:53]: MUX:  Detect Completed
    [6554:4F4C][2014-10-31T13:33:53]: MUX:  Wait for View to be loaded
    [6554:40A0][2014-10-31T13:33:53]: MUX:  Detect Completed, now create view
    [6554:40A0][2014-10-31T13:33:54]: MUX:  Validate custom path failed: Empty Install path
    [6554:40A0][2014-10-31T13:33:54]: MUX:  Validate custom path failed: Empty Install path
    [6554:40A0][2014-10-31T13:33:54]: MUX:  User feedback control is Enable because opt-in value is NotDefined
    [6554:4F4C][2014-10-31T13:33:54]: MUX:  View loaded
    [6554:4F4C][2014-10-31T13:33:54]: MUX:  Go to Blocker page.
    [6554:4F4C][2014-10-31T13:33:54]: Detect complete, result: 0x0

  • Why do videos embedded in facebook and livejournal posts say "an error has occurred, please try again later" when I click on them?

    Videos embedded in facebook and livejournal posts say "an error has occurred, please try again later" when I click on them. (This doesn't happen in Internet Explorer.) I have the latest flash player, and the only firewall in use is Windows Firewall. Popups are blocked.

    mgpainter wrote :
    prince2012 wrote:
    Hi mgpainter
    Welcome to the Community
    Sorry I am not a RIM employee, But still regarding your problem have a look at this RIM Knowledge Base to resolve the error .Try it and see if it resolves your problem : KB25882 .
    Prince
    Click " Like " if you want to Thank someone.
    If Problem Resolves mark the post(s) as " Solution ", so that other can make use of it.
    Thanks for the welcome and the reply!
    I looked at KB25882 and my settings are good, so that didn't help.
    I had this problem over a year ago, and someone at RIM found a bit set that shouldn't have been set and fixed it (that is my terminology for what happened).
    I am really looking for a way to contact RIM directly.  I hate going through the mill with my carrier to get it escalated to RIM for resolution......  <sigh>
    Hi mgpainter 
                                Most easiest way to Contact RIM is through your Carrier but as you don't prefer that than there is another way of support called Incident Based Support but just want to inform you that its not free.If you want have a try  BlackBerry Incident Based Support .
    Good Luck
    Prince
    Click " Like " if you want to Thank someone.
    If Problem Resolves mark the post(s) as " Solution ", so that other can make use of it.
    Click " Like " if you want to Thank someone.
    If Problem Resolves mark the post(s) as " Solution ", so that other can make use of it.

  • Facebook iOS SDK: Data collection and Permissions

    What data points does the Facebook iOS SDK auto-collect?
    Meaning developer doesn’t need to use a setter method at all and SDK is just able to get the value automatically.
    Does Facebook iOS SDK automatically collect IFA without requiring it to be set manually?
    Does Facebook iOS SDK automatically collect latitude and longitude without requiring it to be set manually?
    What iTunes permissions does Facebook require implementing their iOS SDKs?

    Wouldn't it be more appropriate to ask Facebook about their iOS integration?

  • Hi,i am using iphone 4s,my problem is when i want to play video other than youtube file from facebook this message come out "An error occured while processing your request. Reference

    Hi,i am using iphone 4s,my problem is when i want to play video other than youtube file from facebook this message come out "An error occured while processing your request. Reference

    Is your friends phone jailbroke? Also are you using the facebook app? If so then you need to ask the developer of the app what the problem is.

  • While playing facebook games,  it keep getting the error SHOCKWAVE FLASH NOT RESPONGING  how do fix?

    while playing facebook games,  it keep getting the error SHOCKWAVE FLASH NOT RESPONsING  how do fix this?  this happens oftern then it crashes

    Did you read any of the other recent threads here before posting? You asked your question on the wrong forum - try one for the Flash Player

  • Port of facebook php-sdk to coldfusion.

    Hi,
    I just started porting the official facebook php-sdk to coldfusion. I have currently only done rudimentary testing.
    However the code is working fine with open bluedragon running on a tomcat server.
    Just thought i would put that out there, might save someone out there some work. I have attempted to keep the code as close to the php-version as possible to simplify porting any further changes that might be made to the php version.
    The code lives here.
    http://github.com/quicken/facebook-cfml-sdk
    cheers
    Marcel

    Thanks for the prompt reply.
    It still puzzles me that not one of (literally) one billion applications ever requires root privileges. I understand the potential security problems, though other sandboxes (e.g. in Java) allow an authentication mechanism to escape out the restrictions when needed.
    I guess that also libpcap is not accessible, as it would be of little/no use if you are not root.

Maybe you are looking for